aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2013-01-24 23:07:59 +0000
committerJordan Rose <jordan_rose@apple.com>2013-01-24 23:07:59 +0000
commit33e9500784a6b8dc7f01ae5c85ebf0883fbc6662 (patch)
tree0ac9f39127fa8e74a18ed09676db3f75b2722ab6 /utils
parent75c12bf46d5175060d0adeab992a886f22ef7ef8 (diff)
scan-build: Add a --keep-empty option for better testing.
SATestBuild expects to compare output directories for each invocation of scan-build that it runs, but scan-build clears out empty directories by default. We were coincidentally not getting that behavior until r173294. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173383 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rwxr-xr-xutils/analyzer/SATestBuild.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/analyzer/SATestBuild.py b/utils/analyzer/SATestBuild.py
index 36199cb281..067be162e2 100755
--- a/utils/analyzer/SATestBuild.py
+++ b/utils/analyzer/SATestBuild.py
@@ -206,6 +206,7 @@ def runScanBuild(Dir, SBOutputDir, PBuildLogFile):
SBOptions = "--use-analyzer " + Clang + " "
SBOptions += "-plist-html -o " + SBOutputDir + " "
SBOptions += "-enable-checker " + Checkers + " "
+ SBOptions += "--keep-empty "
try:
SBCommandFile = open(BuildScriptPath, "r")
SBPrefix = "scan-build " + SBOptions + " "