diff options
| author | Anna Zaks <ganna@apple.com> | 2011-11-08 22:41:25 +0000 |
|---|---|---|
| committer | Anna Zaks <ganna@apple.com> | 2011-11-08 22:41:25 +0000 |
| commit | 26573c558583dea4f7e4b6637b9705aa25cffd83 (patch) | |
| tree | cace4075d9ad19d81d4768e8512b3e972a2e516c | |
| parent | a1b56e2aa3b08b02b14ceb721d9d5f6e66c7be16 (diff) | |
| download | bcm5719-llvm-26573c558583dea4f7e4b6637b9705aa25cffd83.tar.gz bcm5719-llvm-26573c558583dea4f7e4b6637b9705aa25cffd83.zip | |
[analyzer] Testing: test with all the non-experimental checker packages.
llvm-svn: 144142
| -rwxr-xr-x | clang/utils/analyzer/SATestBuild.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/clang/utils/analyzer/SATestBuild.py b/clang/utils/analyzer/SATestBuild.py index f0eb0b3de4a..124897a6f04 100755 --- a/clang/utils/analyzer/SATestBuild.py +++ b/clang/utils/analyzer/SATestBuild.py @@ -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"); |

