Have 'clang --analyze' run syntactic static analysis security checks.

llvm-svn: 76996
This commit is contained in:
Ted Kremenek 2009-07-24 20:03:11 +00:00
parent c26c76ec1d
commit 9c3952c03e
1 changed files with 1 additions and 0 deletions

View File

@ -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");