summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/google/GoogleTidyModule.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2014-03-20 09:38:22 +0000
committerAlexander Kornienko <alexfh@google.com>2014-03-20 09:38:22 +0000
commit09952d2d7108857e555086154120937058b8a55c (patch)
tree02cf76e96e86959efc111085570dfd189a08ff52 /clang-tools-extra/clang-tidy/google/GoogleTidyModule.cpp
parent9e1450bce9da25ac04b0105d9c15c20960f2fa24 (diff)
downloadbcm5719-llvm-09952d2d7108857e555086154120937058b8a55c.tar.gz
bcm5719-llvm-09952d2d7108857e555086154120937058b8a55c.zip
Post-filter clang-tidy diagnostic messages.
Summary: This patch implements filtering of clang-tidy diagnostic messages by the check name, so that "clang-tidy -checks=^llvm-" won't output any clang warnings, for example. This is also helpful to run specific static-analyzer checks: static analyzer always needs core checks to be enabled, but the user may be interested only in the checks he asked for. This patch also exposes warning option names for built-in diagnostics. We need to have a namespace for these names to avoid collisions and to allow convenient filtering, so I prefix them with "-W". I'm not sure it's the best thing to do, and maybe "W" or "clang-diagnostic-" or something like this would be better. Reviewers: klimek Reviewed By: klimek CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D3121 llvm-svn: 204321
Diffstat (limited to 'clang-tools-extra/clang-tidy/google/GoogleTidyModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud