aboutsummaryrefslogtreecommitdiff
path: root/lib/Checker/AnalysisConsumer.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-12-03 01:17:19 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-12-03 01:17:19 +0000
commita599ae8826b01c0160a519b0fc5a4871f599bf04 (patch)
treee526df88c75048e6df9e856a62b02a9d2a7b28dc /lib/Checker/AnalysisConsumer.cpp
parenta427b49f99bd2416731de0d4f8bdec12b4807e7c (diff)
Remove leftover code and use the text path diagnostic client even without a specified output file since
it just uses diagnostic notes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120773 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Checker/AnalysisConsumer.cpp')
-rw-r--r--lib/Checker/AnalysisConsumer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Checker/AnalysisConsumer.cpp b/lib/Checker/AnalysisConsumer.cpp
index 47dd7fa186..52dd068034 100644
--- a/lib/Checker/AnalysisConsumer.cpp
+++ b/lib/Checker/AnalysisConsumer.cpp
@@ -108,6 +108,10 @@ public:
case PD_##NAME: PD = CREATEFN(OutDir, PP); break;
#include "clang/Frontend/Analyses.def"
}
+ } else if (Opts.AnalysisDiagOpt == PD_TEXT) {
+ // Create the text client even without a specified output file since
+ // it just uses diagnostic notes.
+ PD = createTextPathDiagnosticClient("", PP);
}
// Create the analyzer component creators.