MCPcopy Create free account
hub / github.com/KDE/kdevelop / clearItems

Method clearItems

kdevplatform/language/duchain/topducontextdynamicdata.cpp:221–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219
220template <class Item>
221void TopDUContextDynamicData::DUChainItemStorage<Item>::clearItems()
222{
223 //Due to template specialization it's possible that a declaration is not reachable through the normal context structure.
224 //For that reason we have to check here, and delete all remaining declarations.
225 qDeleteAll(temporaryItems);
226 temporaryItems.clear();
227 qDeleteAll(items);
228 items.clear();
229}
230
231namespace KDevelop {
232template <>

Callers 2

clearMethod · 0.80
clearProblemsMethod · 0.80

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected