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

Method clearImportedParentContexts

kdevplatform/language/duchain/ducontext.cpp:1448–1460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1446}
1447
1448void DUContext::clearImportedParentContexts()
1449{
1450 ENSURE_CAN_WRITE
1451 DUCHAIN_D_DYNAMIC(DUContext);
1452
1453 while (d->m_importedContextsSize() != 0) {
1454 DUContext* ctx = d->m_importedContexts()[0].context(nullptr, false);
1455 if (ctx)
1456 ctx->m_dynamicData->removeImportedChildContext(this);
1457
1458 d->m_importedContextsList().removeOne(d->m_importedContexts()[0]);
1459 }
1460}
1461
1462void DUContext::cleanIfNotEncountered(const QSet<DUChainBase*>& encountered)
1463{

Callers 5

openContextInternalMethod · 0.45
clearImportsMethod · 0.45
buildDUChainMethod · 0.45
startVisitingMethod · 0.45
visitMethod · 0.45

Calls 3

removeOneMethod · 0.80
contextMethod · 0.45

Tested by 1

clearImportsMethod · 0.36