cleanup ctu-info when project import is used

This commit is contained in:
Daniel Marjamäki 2023-04-06 20:17:19 +02:00
parent ab24e3a3c8
commit aa73427699
1 changed files with 5 additions and 0 deletions

View File

@ -1849,5 +1849,10 @@ void CppCheck::removeCtuInfoFiles(const std::map<std::string, std::size_t> &file
const std::string &ctuInfoFileName = getCtuInfoFileName(dumpFileName);
std::remove(ctuInfoFileName.c_str());
}
for (const auto& fs: mSettings.project.fileSettings) {
const std::string &dumpFileName = getDumpFileName(mSettings, fs.filename);
const std::string &ctuInfoFileName = getCtuInfoFileName(dumpFileName);
std::remove(ctuInfoFileName.c_str());
}
}
}