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

Function contextIsChildOrEqual

kdevplatform/language/duchain/ducontext.cpp:553–562  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

551
552namespace {
553bool contextIsChildOrEqual(const DUContext* childContext, const DUContext* context)
554{
555 if (childContext == context)
556 return true;
557
558 if (childContext->parentContext())
559 return contextIsChildOrEqual(childContext->parentContext(), context);
560 else
561 return false;
562}
563
564struct Checker
565{

Callers 1

Calls 1

parentContextMethod · 0.45

Tested by

no test coverage detected