]> granicus.if.org Git - clang/commitdiff
[analyzer] Testing: test with all the non-experimental checker packages.
authorAnna Zaks <ganna@apple.com>
Tue, 8 Nov 2011 22:41:25 +0000 (22:41 +0000)
committerAnna Zaks <ganna@apple.com>
Tue, 8 Nov 2011 22:41:25 +0000 (22:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144142 91177308-0d34-0410-b5e6-96231b3b80d8

utils/analyzer/SATestBuild.py

index f0eb0b3de4a066dabb27ae7459ff40e1e4b8049b..124897a6f044be873adb74dd434973ee15013c0b 100755 (executable)
@@ -70,6 +70,10 @@ DiffsSummaryFileName = "diffs.txt"
 SBOutputDirName = "ScanBuildResults"
 SBOutputDirReferencePrefix = "Ref"
 
+# The list of checkers used during analyzes.
+# Currently, consists of all the non experimental checkers.
+Checkers="core,deadcode,cplusplus,security,unix,osx,cocoa"
+
 Verbose = 1
 
 IsReferenceBuild = False
@@ -119,7 +123,7 @@ def runScanBuild(Dir, SBOutputDir, PBuildLogFile):
         print "Error: build script is not defined: %s" % BuildScriptPath
         sys.exit(-1)       
     SBOptions = "-plist -o " + SBOutputDir + " "
-    SBOptions += "-enable-checker core,deadcode.DeadStores"    
+    SBOptions += "-enable-checker " + Checkers + " "  
     try:
         SBCommandFile = open(BuildScriptPath, "r")
         SBPrefix = "scan-build " + SBOptions + " "
@@ -157,7 +161,7 @@ def runAnalyzePreprocessed(Dir, SBOutputDir):
         raise Exception()       
 
     CmdPrefix = "clang -cc1 -analyze -analyzer-output=plist -w "
-    CmdPrefix += "-analyzer-checker=core "   
+    CmdPrefix += "-analyzer-checker=" + Checkers +" -fcxx-exceptions -fblocks "   
     
     PlistPath = os.path.join(Dir, SBOutputDir, "date")
     FailPath = os.path.join(PlistPath, "failures");