Skip to content

Commit cd0022b

Browse files
authored
CppCheck: delete cppcheck-addon-ctu-file-list after usage (danmar#6984)
1 parent eea05df commit cd0022b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/cppcheck.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1423,8 +1423,11 @@ void CppCheck::executeAddons(const std::vector<std::string>& files, const std::s
14231423
std::string fileList;
14241424

14251425
if (files.size() >= 2 || endsWith(files[0], ".ctu-info")) {
1426+
// TODO: can this conflict when using -j?
14261427
fileList = Path::getPathFromFilename(files[0]) + FILELIST;
14271428
std::ofstream fout(fileList);
1429+
filesDeleter.addFile(fileList);
1430+
// TODO: check if file could be created
14281431
for (const std::string& f: files)
14291432
fout << f << std::endl;
14301433
}

0 commit comments

Comments
 (0)