Skip to content

Commit aa73427

Browse files
committed
cleanup ctu-info when project import is used
1 parent ab24e3a commit aa73427

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/cppcheck.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1849,5 +1849,10 @@ void CppCheck::removeCtuInfoFiles(const std::map<std::string, std::size_t> &file
18491849
const std::string &ctuInfoFileName = getCtuInfoFileName(dumpFileName);
18501850
std::remove(ctuInfoFileName.c_str());
18511851
}
1852+
for (const auto& fs: mSettings.project.fileSettings) {
1853+
const std::string &dumpFileName = getDumpFileName(mSettings, fs.filename);
1854+
const std::string &ctuInfoFileName = getCtuInfoFileName(dumpFileName);
1855+
std::remove(ctuInfoFileName.c_str());
1856+
}
18521857
}
18531858
}

0 commit comments

Comments
 (0)