diff options
| author | Ahmed Bougacha <ahmed.bougacha@gmail.com> | 2015-05-06 02:08:27 +0000 |
|---|---|---|
| committer | Ahmed Bougacha <ahmed.bougacha@gmail.com> | 2015-05-06 02:08:27 +0000 |
| commit | 5191911a579d32148a9e30f18451d8552f2f1782 (patch) | |
| tree | e654f78b22c69fa6828d031a36c5696e6ae93985 | |
| parent | ed363c5dcb3838ee1078cc74605710322a78514c (diff) | |
| download | bcm5719-llvm-5191911a579d32148a9e30f18451d8552f2f1782.tar.gz bcm5719-llvm-5191911a579d32148a9e30f18451d8552f2f1782.zip | |
Revert "[analyzer] scan-build: support spaces in compiler path and arguments."
This reverts commit r236423 and its followup r236533, as indiscriminate
quoting makes for too much quoting (and clang doesn't like both '"-c"'
and -D"FOO=bar").
llvm-svn: 236562
| -rwxr-xr-x | clang/tools/scan-build/ccc-analyzer | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/clang/tools/scan-build/ccc-analyzer b/clang/tools/scan-build/ccc-analyzer index 8e12126e793..4549b29a806 100755 --- a/clang/tools/scan-build/ccc-analyzer +++ b/clang/tools/scan-build/ccc-analyzer @@ -145,7 +145,7 @@ sub ProcessClangFailure { print OUT "@$Args\n"; close OUT; `uname -a >> $PPFile.info.txt 2>&1`; - `"$Compiler" -v >> $PPFile.info.txt 2>&1`; + `$Compiler -v >> $PPFile.info.txt 2>&1`; rename($ofile, "$PPFile.stderr.txt"); return (basename $PPFile); } @@ -180,10 +180,6 @@ sub GetCCArgs { # Strip leading and trailing whitespace characters. $line =~ s/^\s+|\s+$//g; my @items = quotewords('\s+', 0, $line); - # Wrap arguments that have spaces with quotes. - foreach (@items) { - $_ = qq/"$_"/ if (/\s+/); - } my $cmd = shift @items; die "cannot find 'clang' in 'clang' command\n" if (!($cmd =~ /clang/)); return \@items; |

