diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index cafbf152500..182c0f31e08 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -1420,8 +1420,11 @@ void CppCheck::executeAddons(const std::vector& files, const std::s std::string fileList; if (files.size() >= 2 || endsWith(files[0], ".ctu-info")) { + // TODO: can this conflict when using -j? fileList = Path::getPathFromFilename(files[0]) + FILELIST; std::ofstream fout(fileList); + filesDeleter.addFile(fileList); + // TODO: check if file could be created for (const std::string& f: files) fout << f << std::endl; }