diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-02-19 08:03:21 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-02-19 08:03:21 +0000 |
commit | 8899ab01d43ca7359cd852e58c5c3182cd0979c5 (patch) | |
tree | bc30f1e4cd926577c4561afc3440fbf428e0f31b /lib/Driver/Tools.cpp | |
parent | b14175a5371a6c71f3b2dbe4e7aa14803ac38c54 (diff) |
[analyzer] '-analyzer-check-objc-mem' can go through the llvm/clang codebase without crashing; enable it for C++.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126026 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r-- | lib/Driver/Tools.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 8328982ae9..75e0b3dfb9 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -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 |