[cfe-commits] r71835 - /cfe/trunk/utils/ccc-analyzer

Ted Kremenek kremenek at apple.com
Thu May 14 21:07:29 PDT 2009


Author: kremenek
Date: Thu May 14 23:07:18 2009
New Revision: 71835

URL: http://llvm.org/viewvc/llvm-project?rev=71835&view=rev
Log:
Don't strip quotes in compiler line for -D arguments.

Fixes PR 4205.

Modified:
    cfe/trunk/utils/ccc-analyzer

Modified: cfe/trunk/utils/ccc-analyzer
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/ccc-analyzer?rev=71835&r1=71834&r2=71835&view=diff

==============================================================================
--- cfe/trunk/utils/ccc-analyzer (original)
+++ cfe/trunk/utils/ccc-analyzer Thu May 14 23:07:18 2009
@@ -120,7 +120,11 @@
   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;





More information about the cfe-commits mailing list