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

Method inheriters

kdevplatform/language/duchain/duchainutils.cpp:507–516  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

505}
506
507QList<Declaration*> DUChainUtils::inheriters(const Declaration* decl, uint& maxAllowedSteps, bool collectVersions)
508{
509 auto inheriters = inheritersInternal(decl, maxAllowedSteps, collectVersions);
510
511 // remove duplicates
512 std::sort(inheriters.begin(), inheriters.end());
513 inheriters.erase(std::unique(inheriters.begin(), inheriters.end()), inheriters.end());
514
515 return inheriters;
516}
517
518QList<Declaration*> DUChainUtils::overriders(const Declaration* currentClass, const Declaration* overriddenDeclaration, uint& maxAllowedSteps) {
519 QList<Declaration*> ret;

Callers

nothing calls this directly

Calls 4

inheritersInternalFunction · 0.85
sortFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected