diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 7b59a56c0..686ba350d 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -1391,6 +1391,9 @@ void CppCheck::executeAddons(const std::vector& files) reportErr(errmsg); } } + + if (!fileList.empty()) + std::remove(fileList.c_str()); } void CppCheck::executeAddonsWholeProgram(const std::map &files) @@ -1405,6 +1408,10 @@ void CppCheck::executeAddonsWholeProgram(const std::map