From: Ted Kremenek Date: Mon, 8 Mar 2010 19:06:44 +0000 (+0000) Subject: Don't enable static analysis support for C++ by default. Users are X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f6f8d5a47c314ee9ffeca744250f3430540bdf36;p=clang 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97960 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/scan-build/ccc-analyzer b/tools/scan-build/ccc-analyzer index e3db5eab32..daf5f7f9ef 100755 --- a/tools/scan-build/ccc-analyzer +++ b/tools/scan-build/ccc-analyzer @@ -380,13 +380,20 @@ my %UniqueOptions = ( '-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. ##----------------------------------------------------------------------------##