aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-03-08 19:06:44 +0000
committerTed Kremenek <kremenek@apple.com>2010-03-08 19:06:44 +0000
commitf6f8d5a47c314ee9ffeca744250f3430540bdf36 (patch)
tree87cb078f19e069c38a0b9468fef94cdb826e7c53
parent07425c9ae12e62572eebc541522c70a73a819c2b (diff)
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
-rwxr-xr-xtools/scan-build/ccc-analyzer13
1 files changed, 10 insertions, 3 deletions
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.
##----------------------------------------------------------------------------##