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

Method clearImportedParentContexts

kdevplatform/language/duchain/topducontext.cpp:1039–1055  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1037}
1038
1039void TopDUContext::clearImportedParentContexts()
1040{
1041 if (usingImportsCache()) {
1042 d_func_dynamic()->m_importsCache = IndexedRecursiveImports();
1043 d_func_dynamic()->m_importsCache.insert(IndexedTopDUContext(this));
1044 }
1045
1046 DUContext::clearImportedParentContexts();
1047
1048 m_local->clearImportedContextsRecursively();
1049
1050 Q_ASSERT(m_local->m_recursiveImports.count() == 0);
1051
1052 Q_ASSERT(m_local->m_indexedRecursiveImports.count() == 1);
1053
1054 Q_ASSERT(imports(this, CursorInRevision::invalid()));
1055}
1056
1057void TopDUContext::addImportedParentContext(DUContext* context, const CursorInRevision& position, bool anonymous,
1058 bool temporary)

Callers

nothing calls this directly

Calls 5

IndexedTopDUContextClass · 0.70
invalidFunction · 0.50
insertMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected