[PATCH] Improve clang-tidy diagnostic output and filtering.
Alexander Kornienko
alexfh at google.com
Thu Feb 6 03:14:40 PST 2014
Hi djasper,
This patch introduces several improvements to clang-tidy diagnostic;
1. Make filtering of messages from non-user code more reliable. Output an
error when it or any of the related notes touches user code. This fixes an
assertion when an error has a location in a system header, and one of the
notes relates to user code.
2. In order for 1. to work, subscribe to the static analyzer diagnostics using
a custom PathDiagnosticConsumer.
3. Enable colors on supported terminals.
4. Output FixItHints.
http://llvm-reviews.chandlerc.com/D2714
Files:
clang-tidy/ClangTidy.cpp
clang-tidy/ClangTidyDiagnosticConsumer.cpp
clang-tidy/ClangTidyDiagnosticConsumer.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2714.1.patch
Type: text/x-patch
Size: 12183 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140206/dcca7594/attachment.bin>
More information about the cfe-commits
mailing list