aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp
diff options
context:
space:
mode:
authorKirstóf Umann <dkszelethus@gmail.com>2020-05-20 01:36:06 +0200
committerKirstóf Umann <dkszelethus@gmail.com>2020-05-20 01:36:06 +0200
commitfe1a3a7e8c8be33968b9a768666489823dabab10 (patch)
treec88d0bc220329c105e0e5102fa04411f7c25077f /clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp
parenta3609b0ec68522cb417ffe36ce9eb2e25ca61578 (diff)
downloadllvm-fe1a3a7e8c8be33968b9a768666489823dabab10.zip
llvm-fe1a3a7e8c8be33968b9a768666489823dabab10.tar.gz
llvm-fe1a3a7e8c8be33968b9a768666489823dabab10.tar.bz2
[analyzer] Change the default output type to PD_TEXT_MINIMAL in the frontend, error if an output loc is missing for PathDiagConsumers that need it
The title and the included test file sums everything up -- the only thing I'm mildly afraid of is whether anyone actually depends on the weird behavior of HTMLDiagnostics pretending to be TextDiagnostics if an output directory is not supplied. If it is, I guess we would need to resort to tiptoeing around the compatibility flag. Differential Revision: https://reviews.llvm.org/D76510
Diffstat (limited to 'clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp b/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp
index 74c6897..988774f 100644
--- a/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp
+++ b/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp
@@ -23,6 +23,7 @@
#include "clang/Analysis/PathDiagnostic.h"
#include "clang/Basic/SourceManager.h"
#include "clang/CrossTU/CrossTranslationUnit.h"
+#include "clang/Driver/DriverDiagnostic.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Lex/Preprocessor.h"
#include "clang/Rewrite/Core/Rewriter.h"