mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 03:56:16 +08:00
[analyzer] '-analyzer-check-objc-mem' can go through the llvm/clang codebase without crashing; enable it for C++.
llvm-svn: 126026
This commit is contained in:
@@ -938,14 +938,11 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
|
||||
CmdArgs.push_back("-analyzer-checker=cocoa");
|
||||
}
|
||||
|
||||
// Checks to perform for all languages *except* C++.
|
||||
if (!types::isCXX(InputType)) {
|
||||
// NOTE: Leaving -analyzer-check-objc-mem here is intentional.
|
||||
// It also checks C code.
|
||||
CmdArgs.push_back("-analyzer-check-objc-mem");
|
||||
// NOTE: Leaving -analyzer-check-objc-mem here is intentional.
|
||||
// It also checks C code.
|
||||
CmdArgs.push_back("-analyzer-check-objc-mem");
|
||||
|
||||
CmdArgs.push_back("-analyzer-eagerly-assume");
|
||||
}
|
||||
CmdArgs.push_back("-analyzer-eagerly-assume");
|
||||
}
|
||||
|
||||
// Set the output format. The default is plist, for (lame) historical
|
||||
|
||||
Reference in New Issue
Block a user