diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-01-23 20:06:20 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-01-23 20:06:20 +0000 |
commit | c472d79e3aa3a81825f0e0c358dfd0317d6060ed (patch) | |
tree | cc06c663c65620e9611dd132a95f7ee967f56c20 /Driver/AnalysisConsumer.cpp | |
parent | d013f4a9945964db3b67eb1d64528a7fe9966f7a (diff) |
When using -analyzer-output-plist always output a plist file even if it contains no error reports.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62871 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver/AnalysisConsumer.cpp')
-rw-r--r-- | Driver/AnalysisConsumer.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Driver/AnalysisConsumer.cpp b/Driver/AnalysisConsumer.cpp index 1ada515c10..236cc1d865 100644 --- a/Driver/AnalysisConsumer.cpp +++ b/Driver/AnalysisConsumer.cpp @@ -207,7 +207,7 @@ namespace { if (C.PD.get() == 0 && !C.HTMLDir.empty()) { switch (C.DC) { default: -#define ANALYSIS_DIAGNOSTICS(NAME, CMDFLAG, DESC, CREATEFN)\ +#define ANALYSIS_DIAGNOSTICS(NAME, CMDFLAG, DESC, CREATEFN, AUTOCREATE)\ case PD_##NAME: C.PD.reset(CREATEFN(C.HTMLDir, C.PP, C.PPF)); break; #include "Analyses.def" } @@ -288,6 +288,15 @@ case PD_##NAME: C.PD.reset(CREATEFN(C.HTMLDir, C.PP, C.PPF)); break; CreateConstraintMgr = ManagerRegistry::ConstraintMgrCreator; else CreateConstraintMgr = CreateBasicConstraintManager; + + // Some DiagnosticClients should be created all the time instead of + // lazily. Create those now. + switch (C.DC) { + default: break; +#define ANALYSIS_DIAGNOSTICS(NAME, CMDFLAG, DESC, CREATEFN, AUTOCREATE)\ +case PD_##NAME: if (AUTOCREATE) getPathDiagnosticClient(); break; +#include "Analyses.def" + } } }; |