From: Ted Kremenek Date: Fri, 15 May 2009 04:07:18 +0000 (+0000) Subject: Don't strip quotes in compiler line for -D arguments. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=621cc4ebccad2426c383286dfbba6f1c5e45a0ed;p=clang Don't strip quotes in compiler line for -D arguments. Fixes PR 4205. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71835 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/ccc-analyzer b/utils/ccc-analyzer index 89c638d464..1b1dc194f5 100755 --- a/utils/ccc-analyzer +++ b/utils/ccc-analyzer @@ -120,7 +120,11 @@ sub GetCCArgs { chomp $line; $line =~ s/^\s+//; - my @items = quotewords('\s+', 0, $line); + my @items = quotewords('\s+', 1, $line); + for (my $i = 0 ; $ i < scalar(@items); ++$i) { + $items[$i] =~ s/^\"//; + $items[$i] =~ s/\"$//; + } my $cmd = shift @items; die "cannot find 'clang-cc' in 'clang' command\n" if (!($cmd =~ /clang-cc/)); return \@items;