Enable C++ static analysis support in ccc-analyzer.

llvm-svn: 129392
This commit is contained in:
Ted Kremenek 2011-04-12 21:46:57 +00:00
parent 960eef3db3
commit 79c4c2baa9
1 changed files with 4 additions and 6 deletions

View File

@ -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.
##----------------------------------------------------------------------------##