diff options
| author | Ted Kremenek <kremenek@apple.com> | 2010-04-06 19:41:24 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2010-04-06 19:41:24 +0000 |
| commit | 7deb7050d541083b4214bc7be6f891e66123c11f (patch) | |
| tree | 235788f681c294178730acd8050ef1423c965b83 /clang/tools | |
| parent | df323a51f5943a12892e7d8d08a2e85ba8d16ccc (diff) | |
| download | bcm5719-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-x | clang/tools/scan-build/ccc-analyzer | 7 |
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; |

