]> granicus.if.org Git - clang/commitdiff
Fix ccc-analyzer's handling of quoted arguments in the build command. Fixes PR 6791.[B
authorTed Kremenek <kremenek@apple.com>
Tue, 6 Apr 2010 19:41:24 +0000 (19:41 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 6 Apr 2010 19:41:24 +0000 (19:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100551 91177308-0d34-0410-b5e6-96231b3b80d8

tools/scan-build/ccc-analyzer

index daf5f7f9ef48810fdbc316319e2463624c8dd26f..391ea57faa23e952aea6d3357f7dfce37a896854 100755 (executable)
@@ -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;