]> granicus.if.org Git - clang/commitdiff
Turn on idempotent operations checker when using --analyze.
authorTed Kremenek <kremenek@apple.com>
Tue, 10 Aug 2010 18:03:13 +0000 (18:03 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 10 Aug 2010 18:03:13 +0000 (18:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110695 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.cpp

index 7e44ac491f34f0558fe2c258231169947b8502fc..8ca3c4391d62d5cb6560f641c6cb0d5c57f53429 100644 (file)
@@ -859,6 +859,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
       // Do not enable the missing -dealloc check.
       // '-analyzer-check-objc-missing-dealloc',
       CmdArgs.push_back("-analyzer-check-objc-unused-ivars");
+      CmdArgs.push_back("-analyzer-check-idempotent-operations");
     }
 
     // Set the output format. The default is plist, for (lame) historical