diff --git a/tools/scan-build/ccc-analyzer b/tools/scan-build/ccc-analyzer index 8e12126e79307dc1ccc6bb4e7ed42cb43c7257cc..4549b29a806e8e0be844723c5f4e9c0020bf71c9 100755 --- a/tools/scan-build/ccc-analyzer +++ b/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;