Catch internal error during whole program analysis
This commit is contained in:
parent
32a0641365
commit
731928a3b6
|
@ -1435,7 +1435,12 @@ void CppCheck::executeAddonsWholeProgram(const std::map<std::string, std::size_t
|
||||||
ctuInfoFiles.push_back(getCtuInfoFileName(dumpFileName));
|
ctuInfoFiles.push_back(getCtuInfoFileName(dumpFileName));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
executeAddons(ctuInfoFiles);
|
executeAddons(ctuInfoFiles);
|
||||||
|
catch (const InternalError& e) {
|
||||||
|
internalError("", "Internal error during whole program analysis: " + std::string(e.what()));
|
||||||
|
mExitCode = 1;
|
||||||
|
}
|
||||||
|
|
||||||
for (const std::string &f: ctuInfoFiles) {
|
for (const std::string &f: ctuInfoFiles) {
|
||||||
std::remove(f.c_str());
|
std::remove(f.c_str());
|
||||||
|
|
Loading…
Reference in New Issue