diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-01-26 01:26:50 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-01-26 01:26:50 +0000 |
commit | bd5a94e263137dc3ce7c100485626bae025cf58e (patch) | |
tree | bccdb91bff347b676837b0c008af3e43f39a3163 /lib/Driver/Tools.cpp | |
parent | a4356adfd4a79bd63f86e2b30878795ce7b9b0a6 (diff) |
[analyzer] Enable the self-init checker under command-line option '-analyzer-check-objc-self-init' which by default
is enabled by the driver for '--analyze'.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124266 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r-- | lib/Driver/Tools.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index e245f78870..90ed5d45ae 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -910,6 +910,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, if (types::isObjC(InputType)) { CmdArgs.push_back("-analyzer-check-objc-methodsigs"); CmdArgs.push_back("-analyzer-check-objc-unused-ivars"); + CmdArgs.push_back("-analyzer-check-objc-self-init"); // Do not enable the missing -dealloc check. // '-analyzer-check-objc-missing-dealloc', } |