From d2ddc694ff94743d9735aaf07edcaf6db8aaca04 Mon Sep 17 00:00:00 2001 From: Artem Dergachev Date: Wed, 6 Jan 2021 06:35:09 -0800 Subject: Revert "Revert "[analyzer] NFC: Move path diagnostic consumer implementations to libAnalysis."" This reverts commit 5663bf201f5c444d6fb56fb1bd471bc53c17d837. The cyclic dependency problem is addressed now. This is the ~fifth attempt to land this change. --- clang/lib/Frontend/CompilerInvocation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Frontend/CompilerInvocation.cpp') diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index f9bce6a..57027ce 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -547,7 +547,7 @@ static bool ParseAnalyzerArgs(AnalyzerOptions &Opts, ArgList &Args, AnalysisDiagClients Value = llvm::StringSwitch(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) -- cgit v1.1