Fixed #10529 (Cleanup dump and ctu-info files)

This commit is contained in:
Daniel Marjamäki 2021-10-15 20:43:30 +02:00
parent 3b3ae419a7
commit 328fa49981
1 changed files with 7 additions and 0 deletions

View File

@ -1391,6 +1391,9 @@ void CppCheck::executeAddons(const std::vector<std::string>& files)
reportErr(errmsg);
}
}
if (!fileList.empty())
std::remove(fileList.c_str());
}
void CppCheck::executeAddonsWholeProgram(const std::map<std::string, std::size_t> &files)
@ -1405,6 +1408,10 @@ void CppCheck::executeAddonsWholeProgram(const std::map<std::string, std::size_t
}
executeAddons(ctuInfoFiles);
for (const std::string &f: ctuInfoFiles) {
std::remove(f.c_str());
}
}
Settings &CppCheck::settings()