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 | 2aefcb2e8b8b37529807945b3ecedda76e75c831 (patch) | |
tree | 53d6b6c0547a4df17e4fade5a1c2b6b90a2f53a2 | |
parent | 22f569918dd599eb6d810e066eddc4ae74c6b2b0 (diff) |
Fix ccc-analyzer's handling of quoted arguments in the build command. Fixes PR 6791.[B
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100551 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-x | tools/scan-build/ccc-analyzer | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/tools/scan-build/ccc-analyzer b/tools/scan-build/ccc-analyzer index daf5f7f9ef..391ea57faa 100755 --- a/tools/scan-build/ccc-analyzer +++ b/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; |