projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8da8716
)
[scan-build] Add quotes around clang executable name to handle path withs spaces...
author
Ted Kremenek
<kremenek@apple.com>
Thu, 21 Feb 2013 20:28:59 +0000
(20:28 +0000)
committer
Ted Kremenek
<kremenek@apple.com>
Thu, 21 Feb 2013 20:28:59 +0000
(20:28 +0000)
llvm-svn: 175790
clang/tools/scan-build/scan-build
patch
|
blob
|
history
diff --git
a/clang/tools/scan-build/scan-build
b/clang/tools/scan-build/scan-build
index
bebed55
..
de28d90
100755
(executable)
--- a/
clang/tools/scan-build/scan-build
+++ b/
clang/tools/scan-build/scan-build
@@
-1553,7
+1553,8
@@
if ($displayHelp) {
$ClangCXX = $Clang;
$ClangCXX =~ s/\-\d+\.\d+$//;
$ClangCXX .= "++";
-$ClangVersion = HtmlEscape(`$Clang --version`);
+# Make sure to use "" to handle paths with spaces.
+$ClangVersion = HtmlEscape(`"$Clang" --version`);
# Determine where results go.
$CmdArgs = HtmlEscape(join(' ', map(ShellEscape($_), @ARGV)));