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

Method clearOwnIndex

kdevplatform/language/duchain/declaration.cpp:338–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336}
337
338void Declaration::clearOwnIndex()
339{
340 if (!m_indexInTopContext)
341 return;
342
343 if (!context() || (!d_func()->m_anonymousInContext && !context()->isAnonymous())) {
344 ENSURE_CAN_WRITE
345 }
346
347 if (m_indexInTopContext) {
348 Q_ASSERT(m_topContext);
349 m_topContext->m_dynamicData->clearDeclarationIndex(this);
350 }
351 m_indexInTopContext = 0;
352}
353
354void Declaration::allocateOwnIndex()
355{

Callers

nothing calls this directly

Calls 3

contextFunction · 0.85
clearDeclarationIndexMethod · 0.80
isAnonymousMethod · 0.45

Tested by

no test coverage detected