Code: Select all
void ClangTUCache::RemoveEntry(const wxString& filename)
{
std::map<wxString, ClangCacheEntry>::iterator iter = m_cache.find(filename);
if(iter != m_cache.end()) {
CL_DEBUG(wxT("clang_disposeTranslationUnit for TU: %p"), (void*)iter->second.TU);
clang_disposeTranslationUnit(iter->second.TU);
m_cache.erase(iter);
wxLogNull nolog;
wxRemoveFile(iter->second.fileTU);
}
}