[cfe-commits] r100551 - /cfe/trunk/tools/scan-build/ccc-analyzer

Ted Kremenek kremenek at apple.com
Tue Apr 6 12:41:24 PDT 2010


Author: kremenek
Date: Tue Apr  6 14:41:24 2010
New Revision: 100551

URL: http://llvm.org/viewvc/llvm-project?rev=100551&view=rev
Log:
Fix ccc-analyzer's handling of quoted arguments in the build command.  Fixes PR 6791.[B

Modified:
    cfe/trunk/tools/scan-build/ccc-analyzer

Modified: cfe/trunk/tools/scan-build/ccc-analyzer
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/scan-build/ccc-analyzer?rev=100551&r1=100550&r2=100551&view=diff
==============================================================================
--- cfe/trunk/tools/scan-build/ccc-analyzer (original)
+++ cfe/trunk/tools/scan-build/ccc-analyzer Tue Apr  6 14:41:24 2010
@@ -139,12 +139,7 @@
   # 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;





More information about the cfe-commits mailing list