diff options
| author | Ted Kremenek <kremenek@apple.com> | 2008-07-14 23:41:13 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2008-07-14 23:41:13 +0000 |
| commit | 3063b73773cfb08cd9361a7e011210965a0a4a9c (patch) | |
| tree | 2eb8cf6793395f432751040b55170ecd180d21ea /clang/Driver/clang.cpp | |
| parent | 4015ae1d2c04c30f3b56193588257b2924011ffb (diff) | |
| download | bcm5719-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/clang.cpp')
| -rw-r--r-- | clang/Driver/clang.cpp | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/clang/Driver/clang.cpp b/clang/Driver/clang.cpp index d92d5d62e63..7ce730150e2 100644 --- a/clang/Driver/clang.cpp +++ b/clang/Driver/clang.cpp @@ -162,21 +162,10 @@ AnalyzeAll("checker-opt-analyze-headers", static llvm::cl::list<Analyses> AnalysisList(llvm::cl::desc("Available Source Code Analyses:"), llvm::cl::values( -clEnumValN(CFGDump, "cfg-dump", "Display Control-Flow Graphs"), -clEnumValN(CFGView, "cfg-view", "View Control-Flow Graphs using GraphViz"), -clEnumValN(DisplayLiveVariables, "dump-live-variables", - "Print results of live variable analysis"), -clEnumValN(WarnDeadStores, "warn-dead-stores", - "Flag warnings of stores to dead variables"), -clEnumValN(WarnUninitVals, "warn-uninit-values", - "Flag warnings of uses of unitialized variables"), -clEnumValN(CheckObjCMethSigs, "check-objc-methodsigs", - "Check the Objective-C method signatures for type incompatibilities."), -clEnumValN(CheckerSimple, "checker-simple", - "Perform simple path-sensitive checks."), -clEnumValN(CheckerCFRef, "checker-cfref", - "Run the [Core] Foundation reference count checker"), -clEnumValEnd)); +#define ANALYSIS(NAME, CMDFLAG, DESC)\ +clEnumValN(NAME, CMDFLAG, DESC), +#include "Analyses.def" +clEnumValEnd)); //===----------------------------------------------------------------------===// // Language Options |

