]> granicus.if.org Git - clang/commitdiff
Remove more old references to clang-cc.
authorTed Kremenek <kremenek@apple.com>
Fri, 11 Dec 2009 23:12:52 +0000 (23:12 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 11 Dec 2009 23:12:52 +0000 (23:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91177 91177308-0d34-0410-b5e6-96231b3b80d8

tools/scan-build/ccc-analyzer

index 48dfaace415dea81701fe530a77c553f3dbc5f4b..9fca4326f3c1a0f96c39780a1803244c8b70e5e5 100755 (executable)
@@ -106,14 +106,14 @@ sub GetCCArgs {
   close(TO_PARENT);
   my $line;
   while (<FROM_CHILD>) {
-    next if (!/clang-cc/);
+    next if (!/-cc1/);
     $line = $_;
   }
 
   waitpid($pid,0);
   close(FROM_CHILD);
   
-  die "could not find clang-cc line\n" if (!defined $line);
+  die "could not find clang line\n" if (!defined $line);
   # Strip the newline and initial whitspace
   chomp $line;  
   $line =~ s/^\s+//;
@@ -124,7 +124,7 @@ sub GetCCArgs {
     $items[$i] =~ s/\"$//;
   }
   my $cmd = shift @items;
-  die "cannot find 'clang-cc' in 'clang' command\n" if (!($cmd =~ /clang-cc/));
+  die "cannot find 'clang' in 'clang' command\n" if (!($cmd =~ /clang/));
   return \@items;
 }