[PATCH] D72284: [clang-tidy] Factor out renaming logic from readability-identifier-naming

Logan Smith via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 14 11:23:11 PST 2020


logan-5 marked an inline comment as done.
logan-5 added inline comments.


================
Comment at: clang-tools-extra/clang-tidy/utils/RenamerClangTidyCheck.h:29
+public:
+  RenamerClangTidyCheck(StringRef CheckName, ClangTidyContext *Context);
+  ~RenamerClangTidyCheck();
----------------
njames93 wrote:
> Should this be protected as this class should never be instantiated directly. Also the definition could be moved inline as its just a delegating constructor
The constructor (and destructor) can't be inline, since they need to be able to see the specialization of `DenseMapInfo<NamingCheckId>` in the cpp.

I could change it to `protected` to clean up the interface -- though it won't strictly change anything, since the class already has pure virtual functions so it's not instantiable.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D72284/new/

https://reviews.llvm.org/D72284





More information about the cfe-commits mailing list