]> granicus.if.org Git - clang/commitdiff
[analyzer] SATestBuild.py: Handle spaces in path passed to --use-analyzer.
authorDevin Coughlin <dcoughlin@apple.com>
Fri, 22 Jan 2016 18:45:22 +0000 (18:45 +0000)
committerDevin Coughlin <dcoughlin@apple.com>
Fri, 22 Jan 2016 18:45:22 +0000 (18:45 +0000)
I missed this one in r258493.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@258517 91177308-0d34-0410-b5e6-96231b3b80d8

utils/analyzer/SATestBuild.py

index 913b77bbf41e4b42a698b40c021ff5fd684230e0..9c830933728890c3268f08ded899631492309d2a 100755 (executable)
@@ -285,8 +285,8 @@ def runScanBuild(Dir, SBOutputDir, PBuildLogFile):
     # Run scan-build from within the patched source directory.
     SBCwd = os.path.join(Dir, PatchedSourceDirName)
 
-    SBOptions = "--use-analyzer " + Clang + " "
-    SBOptions += "-plist-html -o '" + SBOutputDir + "' "
+    SBOptions = "--use-analyzer '%s' " %  Clang
+    SBOptions += "-plist-html -o '%s' " % SBOutputDir
     SBOptions += "-enable-checker " + AllCheckers + " "
     SBOptions += "--keep-empty "
     # Always use ccc-analyze to ensure that we can locate the failures