Factor out renaming logic from readability-identifier-naming
authorLogan Smith <logan.r.smith0@gmail.com>
Thu, 16 Jan 2020 21:29:19 +0000 (16:29 -0500)
committerAaron Ballman <aaron@aaronballman.com>
Thu, 16 Jan 2020 21:34:56 +0000 (16:34 -0500)
commitd5c6b8407c12d39a78f42a216369407cb2d7b511
treed51e8b191e4dc96d95f28a70cbb8c34166e6d044
parentc299d1981deaf822dfaa06c791f3158bd6801e20
Factor out renaming logic from readability-identifier-naming

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).
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 [new file with mode: 0644]
clang-tools-extra/clang-tidy/utils/RenamerClangTidyCheck.h [new file with mode: 0644]