]> granicus.if.org Git - clang/commitdiff
[analyzer] Revert a regression introduced in r133104(The ARC Migration Tool..) due...
authorAnna Zaks <ganna@apple.com>
Wed, 31 Aug 2011 23:53:24 +0000 (23:53 +0000)
committerAnna Zaks <ganna@apple.com>
Wed, 31 Aug 2011 23:53:24 +0000 (23:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138919 91177308-0d34-0410-b5e6-96231b3b80d8

tools/scan-build/ccc-analyzer

index 383210fc2f8b2efb6801c9d5b9bcfa00dfdad879..7793a8db49b1e48fadd7c5d608eeb87e11d4b689 100755 (executable)
@@ -365,9 +365,11 @@ my %LangMap = (
   'cp'  => 'c++',
   'cpp' => 'c++',
   'cc'  => 'c++',
+  'ii'  => 'c++',
   'i'   => 'c-cpp-output',
   'm'   => 'objective-c',
-  'mi'  => 'objective-c-cpp-output'
+  'mi'  => 'objective-c-cpp-output',
+  'mm'  => 'objective-c++'
 );
 
 my %UniqueOptions = (
@@ -618,9 +620,9 @@ if ($Action eq 'compile' or $Action eq 'link') {
       push @AnalyzeArgs, "-analyzer-constraints=$ConstraintsModel";
     }
     
-#    if (defined $Analyses) {
-#      push @AnalyzeArgs, split '\s+', $Analyses;
-#    }
+    if (defined $Analyses) {
+      push @AnalyzeArgs, split '\s+', $Analyses;
+    }
 
     if (defined $OutputFormat) {
       push @AnalyzeArgs, "-analyzer-output=" . $OutputFormat;