[PATCH] D61487: [clang-tidy] Make the plugin honor NOLINT
Nikolai Kosjar via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri May 3 04:00:18 PDT 2019
nik created this revision.
Herald added subscribers: cfe-commits, xazax.hun.
Herald added a project: clang.
The clang-tidy standalone tool implements the NOLINT filtering in
ClangTidyDiagnosticConsumer::HandleDiagnostic. For the plugin case no
ClangTidyDiagnosticConsumer is set up as it would have side effects with
the already set up diagnostic consumer.
This change introduces filtering in ClangTidyContext::diag() and returns
an active dummy DiagnosticBuilder in case the check was NOLINT-ed, so
that no check needs to be adapted. The filtering in HandleDiagnostic
needs to stay there as it is still relevant for non-tidy diagnostics.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D61487
Files:
clang-tidy/ClangTidyDiagnosticConsumer.cpp
clang-tidy/ClangTidyDiagnosticConsumer.h
test/clang-tidy/nolint-plugin.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61487.197952.patch
Type: text/x-patch
Size: 11716 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190503/fcff6d86/attachment.bin>
More information about the cfe-commits
mailing list