[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:
Argyrios Kyrtzidis 2011-02-19 08:03:21 +00:00
Родитель b14175a537
Коммит 8899ab01d4
1 изменённых файлов: 4 добавлений и 7 удалений

Просмотреть файл

@ -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