From cd0022b66594a30f57a91199629f57badeef6128 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Mon, 2 Dec 2024 06:43:53 +0100 Subject: [PATCH] CppCheck: delete `cppcheck-addon-ctu-file-list` after usage (#6984) --- lib/cppcheck.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 435f1b17ecb..2751b12a201 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -1423,8 +1423,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; }