diff options
author | Artem Dergachev <artem.dergachev@gmail.com> | 2020-07-30 08:52:22 -0700 |
---|---|---|
committer | Artem Dergachev <artem.dergachev@gmail.com> | 2020-10-13 10:53:10 -0700 |
commit | 44b7cf2983b6a8373c99a9b254f8c3f944e03f35 (patch) | |
tree | da853a66b0ab3f3e2158a89ca30b3aa22ef49116 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | b76dc111dd02672488df794570d82e3edbbfa5d8 (diff) | |
download | llvm-44b7cf2983b6a8373c99a9b254f8c3f944e03f35.zip llvm-44b7cf2983b6a8373c99a9b254f8c3f944e03f35.tar.gz llvm-44b7cf2983b6a8373c99a9b254f8c3f944e03f35.tar.bz2 |
[analyzer] NFC: Move path diagnostic consumer implementations to libAnalysis.
With this change, we're more or less ready to allow users outside
of the Static Analyzer to take advantage of path diagnostic consumers
for emitting their warnings in different formats.
Differential Revision: https://reviews.llvm.org/D67422
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index a4c56cc..747b8a9 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -301,7 +301,7 @@ static bool ParseAnalyzerArgs(AnalyzerOptions &Opts, ArgList &Args, AnalysisDiagClients Value = llvm::StringSwitch<AnalysisDiagClients>(Name) #define ANALYSIS_DIAGNOSTICS(NAME, CMDFLAG, DESC, CREATFN) \ .Case(CMDFLAG, PD_##NAME) -#include "clang/StaticAnalyzer/Core/Analyses.def" +#include "clang/Analysis/PathDiagnosticConsumers.def" .Default(NUM_ANALYSIS_DIAG_CLIENTS); if (Value == NUM_ANALYSIS_DIAG_CLIENTS) { Diags.Report(diag::err_drv_invalid_value) |