]> granicus.if.org Git - clang/commitdiff
Enable C++ static analysis support in ccc-analyzer.
authorTed Kremenek <kremenek@apple.com>
Tue, 12 Apr 2011 21:46:57 +0000 (21:46 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 12 Apr 2011 21:46:57 +0000 (21:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129392 91177308-0d34-0410-b5e6-96231b3b80d8

tools/scan-build/ccc-analyzer

index 5697b214a2d74390436dce7f50dc203c55857e40..6f6d3cf1a737f7d177a2fba7fb0033534b5f64be 100755 (executable)
@@ -365,6 +365,7 @@ my %LangMap = (
   'cp'  => 'c++',
   'cpp' => 'c++',
   'cc'  => 'c++',
+  'ii'  => 'c++',
   'i'   => 'c-cpp-output',
   'm'   => 'objective-c',
   'mi'  => 'objective-c-cpp-output'
@@ -380,14 +381,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.
 ##----------------------------------------------------------------------------##