remove dump files in cppcheck build dir after usage

This commit is contained in:
Daniel Marjamäki 2023-04-07 11:07:43 +02:00
parent 0d6575da15
commit 1ac6c3e2ea
1 changed files with 1 additions and 1 deletions

View File

@ -1426,7 +1426,7 @@ void CppCheck::executeAddons(const std::string& dumpFile)
if (!dumpFile.empty()) { if (!dumpFile.empty()) {
std::vector<std::string> f{dumpFile}; std::vector<std::string> f{dumpFile};
executeAddons(f); executeAddons(f);
if (!mSettings.dump && mSettings.buildDir.empty()) if (!mSettings.dump)
std::remove(dumpFile.c_str()); std::remove(dumpFile.c_str());
} }
} }