[PATCH] D25659: [clang-tidy] Avoid running aliased checks twice
Malcolm Parsons via cfe-commits
cfe-commits at lists.llvm.org
Sun Oct 16 07:39:15 PDT 2016
malcolm.parsons created this revision.
malcolm.parsons added reviewers: aaron.ballman, klimek, alexfh.
malcolm.parsons added a subscriber: cfe-commits.
Herald added a subscriber: nemanjai.
It is easy to configure clang-tidy with both aliased and original
checks enabled. This causes the check to be appear under both names
in -list-checks and -dump-config, and the check is run twice.
This changeset tells the CheckFactory about aliases so that an alias
is only enabled when the original is not enabled.
https://reviews.llvm.org/D25659
Files:
clang-tidy/ClangTidy.cpp
clang-tidy/ClangTidyModule.cpp
clang-tidy/ClangTidyModule.h
clang-tidy/cert/CERTTidyModule.cpp
clang-tidy/cppcoreguidelines/CppCoreGuidelinesTidyModule.cpp
clang-tidy/google/GoogleTidyModule.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25659.74797.patch
Type: text/x-patch
Size: 8330 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161016/87581ab9/attachment.bin>
More information about the cfe-commits
mailing list