diff options
author | Balazs Keri <1.int32@gmail.com> | 2019-07-23 07:04:20 +0000 |
---|---|---|
committer | Balazs Keri <1.int32@gmail.com> | 2019-07-23 07:04:20 +0000 |
commit | 2904ab8f62e5eb1d81050050a9bffa8fcb1aa5a9 (patch) | |
tree | 2a66a890dc7cf750ca82abfa0638a8cc07a04e5d /lib/StaticAnalyzer/Core/SarifDiagnostics.cpp | |
parent | 7407f17f7409135e4b0388055b831b2c939f7409 (diff) | |
download | clang-2904ab8f62e5eb1d81050050a9bffa8fcb1aa5a9.tar.gz |
[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
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@366782 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core/SarifDiagnostics.cpp')
-rw-r--r-- | lib/StaticAnalyzer/Core/SarifDiagnostics.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/StaticAnalyzer/Core/SarifDiagnostics.cpp b/lib/StaticAnalyzer/Core/SarifDiagnostics.cpp index d1faf3f4de..fd6d5010db 100644 --- a/lib/StaticAnalyzer/Core/SarifDiagnostics.cpp +++ b/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)); } |