[cfe-commits] r126026 - /cfe/trunk/lib/Driver/Tools.cpp
Argyrios Kyrtzidis
akyrtzi at gmail.com
Sat Feb 19 00:03:21 PST 2011
Author: akirtzidis
Date: Sat Feb 19 02:03:21 2011
New Revision: 126026
URL: http://llvm.org/viewvc/llvm-project?rev=126026&view=rev
Log:
[analyzer] '-analyzer-check-objc-mem' can go through the llvm/clang codebase without crashing; enable it for C++.
Modified:
cfe/trunk/lib/Driver/Tools.cpp
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=126026&r1=126025&r2=126026&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Sat Feb 19 02:03:21 2011
@@ -938,14 +938,11 @@
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
More information about the cfe-commits
mailing list