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

Method addImportedParentContext

kdevplatform/language/duchain/ducontext.cpp:833–855  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

831}
832
833void DUContext::addImportedParentContext(DUContext* context, const CursorInRevision& position, bool anonymous,
834 bool /*temporary*/)
835{
836 ENSURE_CAN_WRITE
837
838 if (context == this) {
839 qCDebug(LANGUAGE) << "Tried to import self";
840 return;
841 }
842 if (!context) {
843 qCDebug(LANGUAGE) << "Tried to import invalid context";
844 return;
845 }
846
847 Import import(context, this, position);
848 if (addIndirectImport(import))
849 return;
850
851 if (!anonymous) {
852 ENSURE_CAN_WRITE_(context)
853 context->m_dynamicData->addImportedChildContext(this);
854 }
855}
856
857void DUContext::removeImportedParentContext(DUContext* context)
858{

Callers 8

importMethod · 0.45
contextImportDeclFunction · 0.45
buildDUChainMethod · 0.45
startVisitingMethod · 0.45
declareFieldMemberMethod · 0.45
importDirectoryMethod · 0.45
runMethod · 0.45

Calls 1

Tested by 1

importMethod · 0.36