summaryrefslogtreecommitdiffstats
path: root/clang/Driver/AnalysisConsumer.h
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-07-14 23:41:13 +0000
committerTed Kremenek <kremenek@apple.com>2008-07-14 23:41:13 +0000
commit3063b73773cfb08cd9361a7e011210965a0a4a9c (patch)
tree2eb8cf6793395f432751040b55170ecd180d21ea /clang/Driver/AnalysisConsumer.h
parent4015ae1d2c04c30f3b56193588257b2924011ffb (diff)
downloadbcm5719-llvm-3063b73773cfb08cd9361a7e011210965a0a4a9c.tar.gz
bcm5719-llvm-3063b73773cfb08cd9361a7e011210965a0a4a9c.zip
Break off declaration of Analysis enum into Analyses.def. The driver options in
clang.cpp now #include these definitions to create the command line options, and AnalysisConsumer #includes this file to generate the switch statement to create actions. Renamed -check-objc-methodsigs to -warn-objc-methodsigs. The "missing -dealloc" check is now optional: -warn-objc-missing-dealloc llvm-svn: 53575
Diffstat (limited to 'clang/Driver/AnalysisConsumer.h')
-rw-r--r--clang/Driver/AnalysisConsumer.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/clang/Driver/AnalysisConsumer.h b/clang/Driver/AnalysisConsumer.h
index 3a1278a3dae..dfabe79e56b 100644
--- a/clang/Driver/AnalysisConsumer.h
+++ b/clang/Driver/AnalysisConsumer.h
@@ -17,16 +17,11 @@
namespace clang {
enum Analyses {
- CFGDump,
- CFGView,
- WarnDeadStores,
- WarnUninitVals,
- DisplayLiveVariables,
- CheckerCFRef,
- CheckerSimple,
- CheckObjCMethSigs
+#define ANALYSIS(NAME, CMDFLAG, DESC) NAME,
+#include "Analyses.def"
+NumAnalyses
};
-
+
ASTConsumer* CreateAnalysisConsumer(Analyses* Beg, Analyses* End,
Diagnostic &diags, Preprocessor* pp,
PreprocessorFactory* ppf,
OpenPOWER on IntegriCloud