]> granicus.if.org Git - clang/commitdiff
Don't strip quotes in compiler line for -D arguments.
authorTed Kremenek <kremenek@apple.com>
Fri, 15 May 2009 04:07:18 +0000 (04:07 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 15 May 2009 04:07:18 +0000 (04:07 +0000)
Fixes PR 4205.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71835 91177308-0d34-0410-b5e6-96231b3b80d8

utils/ccc-analyzer

index 89c638d4647f9521ab116019c0ff3844c8774212..1b1dc194f59f7bc05886d2f092e3cf3042f49b68 100755 (executable)
@@ -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;