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

Method allDeclarations

kdevplatform/language/duchain/ducontext.cpp:942–956  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

940}
941
942QVector<QPair<Declaration*, int>> DUContext::allDeclarations(const CursorInRevision& position,
943 const TopDUContext* topContext,
944 bool searchInParents) const
945{
946 ENSURE_CAN_READ
947
948 QVector<QPair<Declaration*, int>> ret;
949
950 QHash<const DUContext*, bool> hadContexts;
951 // Iterate back up the chain
952 mergeDeclarationsInternal(ret, position, hadContexts, topContext ? topContext : this->topContext(),
953 searchInParents);
954
955 return ret;
956}
957
958QVector<Declaration*> DUContext::localDeclarations(const TopDUContext* source) const
959{

Callers 3

completionsInContextMethod · 0.80
completionInvokedMethod · 0.80

Calls 1

topContextMethod · 0.95

Tested by

no test coverage detected