From: Ted Kremenek Date: Fri, 24 Jul 2009 20:03:11 +0000 (+0000) Subject: Have 'clang --analyze' run syntactic static analysis security checks. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=11727519fbdaec68f526ae7c54a83d0a4601f561;p=clang Have 'clang --analyze' run syntactic static analysis security checks. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76996 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 2fe2aa1896..e3612c71bd 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -241,6 +241,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, // Add default argument set. if (!Args.hasArg(options::OPT__analyzer_no_default_checks)) { CmdArgs.push_back("-warn-dead-stores"); + CmdArgs.push_back("-warn-security-syntactic"); CmdArgs.push_back("-checker-cfref"); CmdArgs.push_back("-analyzer-eagerly-assume"); CmdArgs.push_back("-warn-objc-methodsigs");