llvm-project/clang-tools-extra/test/clang-tidy
Alexander Kornienko 09952d2d71 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
2014-03-20 09:38:22 +00:00
..
arg-comments.cpp Add an argument comment checker to clang-tidy. 2014-03-18 04:46:45 +00:00
basic.cpp Add the check name to the clang-tidy diagnostic output. 2014-01-13 10:50:51 +00:00
deduplication.cpp Deduplicate clang-tidy error messages by file, offset and message. 2014-03-10 09:45:49 +00:00
diagnostic.cpp Post-filter clang-tidy diagnostic messages. 2014-03-20 09:38:22 +00:00
fix.cpp
macros.cpp Use DiagnosticRenderer to convert clang diagnostics to clang-tidy ones. 2014-03-10 13:11:17 +00:00
nolint.cpp Added a naive NOLINT implementation. 2014-02-28 00:27:50 +00:00
select-checks.cpp Use more specific checks filter in the test. 2014-03-06 08:31:03 +00:00
static-analyzer.cpp Consume checker names from clang static analyzer. 2014-02-12 09:52:07 +00:00