From 09a173022b66269939a627f7685e3000a2ee3f38 Mon Sep 17 00:00:00 2001 From: firewave Date: Fri, 1 Nov 2024 16:05:18 +0100 Subject: [PATCH] CppCheck: delete `cppcheck-addon-ctu-file-list` after usage --- lib/cppcheck.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; }