[cfe-commits] r144142 - /cfe/trunk/utils/analyzer/SATestBuild.py

Anna Zaks ganna at apple.com
Tue Nov 8 14:41:26 PST 2011


Author: zaks
Date: Tue Nov  8 16:41:25 2011
New Revision: 144142

URL: http://llvm.org/viewvc/llvm-project?rev=144142&view=rev
Log:
[analyzer] Testing: test with all the non-experimental checker packages.

Modified:
    cfe/trunk/utils/analyzer/SATestBuild.py

Modified: cfe/trunk/utils/analyzer/SATestBuild.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/analyzer/SATestBuild.py?rev=144142&r1=144141&r2=144142&view=diff
==============================================================================
--- cfe/trunk/utils/analyzer/SATestBuild.py (original)
+++ cfe/trunk/utils/analyzer/SATestBuild.py Tue Nov  8 16:41:25 2011
@@ -70,6 +70,10 @@
 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 @@
         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 @@
         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");





More information about the cfe-commits mailing list