summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.h
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2016-03-03 08:58:12 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2016-03-03 08:58:12 +0000
commit8f5eb56df37566187e9132fb905d7fcbd9fd4732 (patch)
treee124d35779d854a010ce85572f217307267ebf70 /clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.h
parent3d78271eacf88f9ceed2bab446942077c868aeb5 (diff)
downloadbcm5719-llvm-8f5eb56df37566187e9132fb905d7fcbd9fd4732.tar.gz
bcm5719-llvm-8f5eb56df37566187e9132fb905d7fcbd9fd4732.zip
[clang-tidy] Add "clang-tidy as a clang plugin" skeleton.
This doesn't really do much at the moment. You can load it via libclang and set the -checks via an extra command line argument as illustrated in the test case. Support for other options (including headers check) is currently missing. Also when using this with libclang some checks may not work with the precompiled preamble in place. This can be used to easily show clang-tidy warnings in an editor integration as all that's needed is adding command line flags that are passed into libclang. Warnings and FixIts are exposed via the existing CXDiagnostic machinery. Differential Revision: http://reviews.llvm.org/D17807 llvm-svn: 262595
Diffstat (limited to 'clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.h')
-rw-r--r--clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.h b/clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.h
index 0adfe2f8c86..8d46a2988ee 100644
--- a/clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.h
+++ b/clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.h
@@ -221,6 +221,7 @@ public:
private:
// Calls setDiagnosticsEngine() and storeError().
friend class ClangTidyDiagnosticConsumer;
+ friend class ClangTidyPluginAction;
/// \brief Sets the \c DiagnosticsEngine so that Diagnostics can be generated
/// correctly.
OpenPOWER on IntegriCloud