From: Ted Kremenek Date: Tue, 6 Apr 2010 19:41:24 +0000 (+0000) Subject: Fix ccc-analyzer's handling of quoted arguments in the build command. Fixes PR 6791.[B X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2aefcb2e8b8b37529807945b3ecedda76e75c831;p=clang 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 --- 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;