зеркало из https://github.com/microsoft/clang-1.git
[analyzer] '-analyzer-check-objc-mem' can go through the llvm/clang codebase without crashing; enable it for C++.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126026 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
b14175a537
Коммит
8899ab01d4
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче