]> granicus.if.org Git - clang/commitdiff
Quote invocation of clang in pipe to handle paths with spaces.
authorTed Kremenek <kremenek@apple.com>
Fri, 18 Jul 2008 23:11:33 +0000 (23:11 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 18 Jul 2008 23:11:33 +0000 (23:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53775 91177308-0d34-0410-b5e6-96231b3b80d8

utils/scan-build

index a58751caf7c2d591d0a599ca0add2c5cb3db65c2..3c434a4d86acb4889be2c191e5e4ca79cc053d9e 100755 (executable)
@@ -69,7 +69,7 @@ if (! -x $ClangSB) {
 my %AvailableAnalyses;
 
 # Query clang for analysis options.
-open(PIPE, "$Clang --help |") or
+open(PIPE, "'$Clang's --help |") or
   DieDiag("Cannot execute '$Clang'");
   
 my $FoundAnalysis = 0;