From: Ted Kremenek Date: Tue, 10 Aug 2010 18:03:13 +0000 (+0000) Subject: Turn on idempotent operations checker when using --analyze. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=79a79f5d323155ac99155c621a360ef8a68055a8;p=clang Turn on idempotent operations checker when using --analyze. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110695 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 7e44ac491f..8ca3c4391d 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -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