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

Ted Kremenek kremenek at apple.com
Mon Mar 8 11:06:44 PST 2010


Author: kremenek
Date: Mon Mar  8 13:06:44 2010
New Revision: 97960

URL: http://llvm.org/viewvc/llvm-project?rev=97960&view=rev
Log:
Don't enable static analysis support for C++ by default.  Users are
accidentally using it without realizing that it is nowhere close
to being generally usable and are reporting crashes that we
already know about.

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=97960&r1=97959&r2=97960&view=diff
==============================================================================
--- cfe/trunk/tools/scan-build/ccc-analyzer (original)
+++ cfe/trunk/tools/scan-build/ccc-analyzer Mon Mar  8 13:06:44 2010
@@ -380,13 +380,20 @@
   '-isysroot' => 0  
 );
 
+##----------------------------------------------------------------------------##
+# Languages accepted.
+##----------------------------------------------------------------------------##
+
 my %LangsAccepted = (
   "objective-c" => 1,
-  "c" => 1,
-  "c++" => 1,
-  "objective-c++" => 1
+  "c" => 1
 );
 
+if (defined $ENV{'CCC_ANALYZER_CPLUSPLUS'}) {
+  $LangsAccepted{"c++"} = 1;
+  $LangsAccepted{"objective-c++"} = 1;
+}
+
 ##----------------------------------------------------------------------------##
 #  Main Logic.
 ##----------------------------------------------------------------------------##





More information about the cfe-commits mailing list