summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Core/SarifDiagnostics.cpp
diff options
context:
space:
mode:
authorBalazs Keri <1.int32@gmail.com>2019-07-23 07:04:20 +0000
committerBalazs Keri <1.int32@gmail.com>2019-07-23 07:04:20 +0000
commit32f220c5fbe5f0f2d821c93f46de6cbb95877050 (patch)
tree6a4b5ec5552973e5f75103a7444056ba98b48fed /clang/lib/StaticAnalyzer/Core/SarifDiagnostics.cpp
parent2d654df763c51a12a42d2d47dd3a5ff8d8f13383 (diff)
downloadbcm5719-llvm-32f220c5fbe5f0f2d821c93f46de6cbb95877050.tar.gz
bcm5719-llvm-32f220c5fbe5f0f2d821c93f46de6cbb95877050.zip
[CrossTU] Added CTU argument to diagnostic consumer create fn.
Summary: The PListDiagnosticConsumer needs a new CTU parameter that is passed through the create functions. Reviewers: NoQ, Szelethus, xazax.hun, martong Reviewed By: Szelethus Subscribers: rnkovacs, dkrupp, Szelethus, gamesh411, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D64635 llvm-svn: 366782
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/SarifDiagnostics.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Core/SarifDiagnostics.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/SarifDiagnostics.cpp b/clang/lib/StaticAnalyzer/Core/SarifDiagnostics.cpp
index d1faf3f4dea..fd6d5010db5 100644
--- a/clang/lib/StaticAnalyzer/Core/SarifDiagnostics.cpp
+++ b/clang/lib/StaticAnalyzer/Core/SarifDiagnostics.cpp
@@ -43,10 +43,10 @@ public:
};
} // end anonymous namespace
-void ento::createSarifDiagnosticConsumer(AnalyzerOptions &AnalyzerOpts,
- PathDiagnosticConsumers &C,
- const std::string &Output,
- const Preprocessor &) {
+void ento::createSarifDiagnosticConsumer(
+ AnalyzerOptions &AnalyzerOpts, PathDiagnosticConsumers &C,
+ const std::string &Output, const Preprocessor &,
+ const cross_tu::CrossTranslationUnitContext &) {
C.push_back(new SarifDiagnostics(AnalyzerOpts, Output));
}
OpenPOWER on IntegriCloud