gribozavr added inline comments.
================
Comment at: clang-tools-extra/clang-tidy/utils/TransformerTidy.h:32
+// };
+class TransformerTidy : public ClangTidyCheck {
+public:
----------------
ymandel wrote:
> gribozavr wrote:
> > I'd prefer a name like "TransformerClangTidyCheck", it will only appear in
> > a few places, but is much more clear.
> will do, but should I also rename the files correspondingly?
Yes please.
================
Comment at: clang-tools-extra/clang-tidy/utils/TransformerTidy.h:38
+
+ void registerMatchers(ast_matchers::MatchFinder *Finder) override;
+ void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
----------------
ymandel wrote:
> gribozavr wrote:
> > I'd suggest to add comments telling users to not override these methods in
> > subclasses.
> sure. would marking them as `final` make sense, then?
Right, that's the perfect tool for the job.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D61386/new/
https://reviews.llvm.org/D61386
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits