[PATCH] Post-filter clang-tidy diagnostic messages.
Alexander Kornienko
alexfh at google.com
Wed Mar 19 09:35:17 PDT 2014
Hi klimek,
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.
http://llvm-reviews.chandlerc.com/D3121
Files:
clang-tidy/ClangTidy.cpp
clang-tidy/ClangTidy.h
clang-tidy/ClangTidyDiagnosticConsumer.cpp
clang-tidy/ClangTidyDiagnosticConsumer.h
clang-tidy/ClangTidyModule.cpp
test/clang-tidy/diagnostic.cpp
unittests/clang-tidy/ClangTidyTest.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3121.1.patch
Type: text/x-patch
Size: 11752 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140319/b1f6bbca/attachment.bin>
More information about the cfe-commits
mailing list