[analyzer] Change the default output type to PD_TEXT_MINIMAL in the frontend, error...
authorKirstóf Umann <dkszelethus@gmail.com>
Tue, 19 May 2020 23:36:06 +0000 (01:36 +0200)
committerKirstóf Umann <dkszelethus@gmail.com>
Tue, 19 May 2020 23:36:06 +0000 (01:36 +0200)
commitfe1a3a7e8c8be33968b9a768666489823dabab10
treec88d0bc220329c105e0e5102fa04411f7c25077f
parenta3609b0ec68522cb417ffe36ce9eb2e25ca61578
[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
clang/include/clang/Basic/DiagnosticDriverKinds.td
clang/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h
clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp
clang/lib/StaticAnalyzer/Core/SarifDiagnostics.cpp
clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp
clang/test/Analysis/output_types.cpp [new file with mode: 0644]