[cfe-commits] r49089 - /cfe/trunk/utils/scan-build

Ted Kremenek kremenek at apple.com
Wed Apr 2 08:34:14 PDT 2008


Author: kremenek
Date: Wed Apr  2 10:34:12 2008
New Revision: 49089

URL: http://llvm.org/viewvc/llvm-project?rev=49089&view=rev
Log:
Do equality testing, not regex, when the build command is gcc.  This matches
better with what compiler invocations that ccc-analyzer actually intercepts.

Fixes suggested by Sam Bishop!

Modified:
    cfe/trunk/utils/scan-build

Modified: cfe/trunk/utils/scan-build
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/scan-build?rev=49089&r1=49088&r2=49089&view=diff

==============================================================================
--- cfe/trunk/utils/scan-build (original)
+++ cfe/trunk/utils/scan-build Wed Apr  2 10:34:12 2008
@@ -150,7 +150,7 @@
   my $Args = shift;
   my $Cmd = $Args->[0];
   
-  if ($Cmd =~ /gcc/ or $Cmd eq "cc" or $Cmd =~ /"llvm-gcc"/) {
+  if ($Cmd eq "gcc" or $Cmd eq "cc" or $Cmd eq "llvm-gcc") {
     shift @$Args;
     unshift @$Args, "ccc-analyzer"
   }





More information about the cfe-commits mailing list