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

Method contextHasUse

kdevplatform/language/duchain/duchainutils.cpp:549–551  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

547}
548
549bool DUChainUtils::contextHasUse(DUContext* context, Declaration* declaration) {
550 return hasUse(context, context->topContext()->indexForUsedDeclaration(declaration, false));
551}
552
553static uint countUses(DUContext* context, int usedDeclarationIndex) {
554 if(usedDeclarationIndex == std::numeric_limits<int>::max())

Callers

nothing calls this directly

Calls 3

hasUseFunction · 0.85
topContextMethod · 0.45

Tested by

no test coverage detected