From: Devin Coughlin Date: Fri, 22 Jan 2016 18:45:22 +0000 (+0000) Subject: [analyzer] SATestBuild.py: Handle spaces in path passed to --use-analyzer. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=84b659738b0e151d63a1c4e6c264527635ba8f17;p=clang [analyzer] SATestBuild.py: Handle spaces in path passed to --use-analyzer. I missed this one in r258493. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@258517 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/analyzer/SATestBuild.py b/utils/analyzer/SATestBuild.py index 913b77bbf4..9c83093372 100755 --- a/utils/analyzer/SATestBuild.py +++ b/utils/analyzer/SATestBuild.py @@ -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