summaryrefslogtreecommitdiffstats
path: root/clang/tools
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-04-06 19:41:24 +0000
committerTed Kremenek <kremenek@apple.com>2010-04-06 19:41:24 +0000
commit7deb7050d541083b4214bc7be6f891e66123c11f (patch)
tree235788f681c294178730acd8050ef1423c965b83 /clang/tools
parentdf323a51f5943a12892e7d8d08a2e85ba8d16ccc (diff)
downloadbcm5719-llvm-7deb7050d541083b4214bc7be6f891e66123c11f.tar.gz
bcm5719-llvm-7deb7050d541083b4214bc7be6f891e66123c11f.zip
Fix ccc-analyzer's handling of quoted arguments in the build command. Fixes PR 6791.[B
llvm-svn: 100551
Diffstat (limited to 'clang/tools')
-rwxr-xr-xclang/tools/scan-build/ccc-analyzer7
1 files changed, 1 insertions, 6 deletions
diff --git a/clang/tools/scan-build/ccc-analyzer b/clang/tools/scan-build/ccc-analyzer
index daf5f7f9ef4..391ea57faa2 100755
--- a/clang/tools/scan-build/ccc-analyzer
+++ b/clang/tools/scan-build/ccc-analyzer
@@ -139,12 +139,7 @@ sub GetCCArgs {
# Strip the newline and initial whitspace
chomp $line;
$line =~ s/^\s+//;
-
- my @items = quotewords('\s+', 1, $line);
- for (my $i = 0 ; $ i < scalar(@items); ++$i) {
- $items[$i] =~ s/^\"//;
- $items[$i] =~ s/\"$//;
- }
+ my @items = quotewords('\s+', 0, $line);
my $cmd = shift @items;
die "cannot find 'clang' in 'clang' command\n" if (!($cmd =~ /clang/));
return \@items;
OpenPOWER on IntegriCloud