summaryrefslogtreecommitdiffstats
path: root/clang/Driver/clang.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-03-06 00:08:09 +0000
committerTed Kremenek <kremenek@apple.com>2008-03-06 00:08:09 +0000
commitea6507fe0473c595b7fd7f45ef116355c5804939 (patch)
tree403f8836587a79e779359a352182031c8d4e4a26 /clang/Driver/clang.cpp
parentdcabdb1b3854d9eb61c50f1124c9e5a8308af6ea (diff)
downloadbcm5719-llvm-ea6507fe0473c595b7fd7f45ef116355c5804939.tar.gz
bcm5719-llvm-ea6507fe0473c595b7fd7f45ef116355c5804939.zip
Added boilerplate to execute the CF reference count checker (which isn't yet implemented).
llvm-svn: 47982
Diffstat (limited to 'clang/Driver/clang.cpp')
-rw-r--r--clang/Driver/clang.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/Driver/clang.cpp b/clang/Driver/clang.cpp
index f5790df482e..216e669ccca 100644
--- a/clang/Driver/clang.cpp
+++ b/clang/Driver/clang.cpp
@@ -71,6 +71,7 @@ enum ProgActions {
AnalysisLiveVariables, // Print results of live-variable analysis.
AnalysisGRSimpleVals, // Perform graph-reachability constant prop.
AnalysisGRSimpleValsView, // Visualize results of path-sens. analysis.
+ CheckerCFRef, // Run the Core Foundation Ref. Count Checker.
WarnDeadStores, // Run DeadStores checker on parsed ASTs.
WarnDeadStoresCheck, // Check diagnostics for "DeadStores".
WarnUninitVals, // Run UnitializedVariables checker.
@@ -119,6 +120,8 @@ ProgAction(llvm::cl::desc("Choose output type:"), llvm::cl::ZeroOrMore,
"Perform path-sensitive constant propagation."),
clEnumValN(AnalysisGRSimpleValsView, "grsimple-view",
"View results of path-sensitive constant propagation."),
+ clEnumValN(CheckerCFRef, "check-cfref",
+ "Run the Core Foundation reference count checker."),
clEnumValN(TestSerialization, "test-pickling",
"Run prototype serializtion code."),
clEnumValN(EmitLLVM, "emit-llvm",
@@ -1038,6 +1041,9 @@ static ASTConsumer* CreateASTConsumer(const std::string& InFile,
case AnalysisGRSimpleValsView:
return CreateGRSimpleVals(Diag, AnalyzeSpecificFunction, true);
+ case CheckerCFRef:
+ return CreateCFRefChecker(Diag, AnalyzeSpecificFunction);
+
case TestSerialization:
return CreateSerializationTest(Diag, FileMgr, LangOpts);
OpenPOWER on IntegriCloud