]> granicus.if.org Git - clang/commitdiff
[analyzer] '-analyzer-check-objc-mem' can go through the llvm/clang codebase without...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 19 Feb 2011 08:03:21 +0000 (08:03 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 19 Feb 2011 08:03:21 +0000 (08:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126026 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.cpp

index 8328982ae92c347a61c7cfd5c69b0ddfe44b62b1..75e0b3dfb967f94ecf4a0d9bdd99c2d22261cccb 100644 (file)
@@ -938,14 +938,11 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
         CmdArgs.push_back("-analyzer-checker=cocoa");
       }
 
-      // Checks to perform for all languages *except* C++.
-      if (!types::isCXX(InputType)) {
-        // NOTE: Leaving -analyzer-check-objc-mem here is intentional.
-        // It also checks C code.
-        CmdArgs.push_back("-analyzer-check-objc-mem");
+      // NOTE: Leaving -analyzer-check-objc-mem here is intentional.
+      // It also checks C code.
+      CmdArgs.push_back("-analyzer-check-objc-mem");
 
-        CmdArgs.push_back("-analyzer-eagerly-assume");
-      }
+      CmdArgs.push_back("-analyzer-eagerly-assume");
     }
 
     // Set the output format. The default is plist, for (lame) historical