cppcheck: keep ctu-info files if there is a cppcheck build dir
This commit is contained in:
parent
47c2a01392
commit
a93c2c5263
|
@ -1439,7 +1439,8 @@ void CppCheck::executeAddonsWholeProgram(const std::map<std::string, std::size_t
|
||||||
mExitCode = 1;
|
mExitCode = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const std::string &f: ctuInfoFiles) {
|
if (mSettings.buildDir.empty()) {
|
||||||
|
for (const std::string &f: ctuInfoFiles)
|
||||||
std::remove(f.c_str());
|
std::remove(f.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue