[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
Mon Jan 6 09:37:32 PST 2020
logan-5 created this revision.
logan-5 added reviewers: alexfh, hokein, aaron.ballman.
logan-5 added a project: clang-tools-extra.
Herald added subscribers: cfe-commits, xazax.hun, mgorny.
Herald added a project: clang.
Before this patch, `readability-identifier-naming` contained a significant amount of logic for (a) checking the style of identifiers, followed by (b) renaming/applying fix-its. This patch factors out (b) into a separate base class so that it can be reused by other checks that want to do renaming. This also cleans up `readability-identifier-naming` significantly, since now it only needs to be concerned with the interesting details of (a).
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D72284
Files:
clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.cpp
clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.h
clang-tools-extra/clang-tidy/utils/CMakeLists.txt
clang-tools-extra/clang-tidy/utils/RenamerClangTidyCheck.cpp
clang-tools-extra/clang-tidy/utils/RenamerClangTidyCheck.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72284.236395.patch
Type: text/x-patch
Size: 43432 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200106/3b72866c/attachment-0001.bin>
More information about the cfe-commits
mailing list