]> granicus.if.org Git - clang/commitdiff
scan-build: enable C++ support by default.
authorTed Kremenek <kremenek@apple.com>
Thu, 11 Aug 2011 22:47:20 +0000 (22:47 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 11 Aug 2011 22:47:20 +0000 (22:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137382 91177308-0d34-0410-b5e6-96231b3b80d8

tools/scan-build/ccc-analyzer

index 5697b214a2d74390436dce7f50dc203c55857e40..383210fc2f8b2efb6801c9d5b9bcfa00dfdad879 100755 (executable)
@@ -380,14 +380,11 @@ my %UniqueOptions = (
 
 my %LangsAccepted = (
   "objective-c" => 1,
-  "c" => 1
+  "c" => 1,
+  "c++" => 1,
+  "objective-c++" => 1
 );
 
-if (defined $ENV{'CCC_ANALYZER_CPLUSPLUS'}) {
-  $LangsAccepted{"c++"} = 1;
-  $LangsAccepted{"objective-c++"} = 1;
-}
-
 ##----------------------------------------------------------------------------##
 #  Main Logic.
 ##----------------------------------------------------------------------------##