kdevplatform/language/duchain
abstractincludenavigationcontext.cpp
Go to the documentation of this file.
52 && (duchain == nullptr || ctx->localDeclarations().count() > duchain->localDeclarations().count())) {
115 QStringLiteral("%1: %2 %3: %4").arg(labelHighlight(i18nc("Files included into this file", "Includes"))).arg(
133 void AbstractIncludeNavigationContext::addDeclarationsFromContext(KDevelop::DUContext* ctx, bool& first,
144 while (childIterator != children.constEnd() || declarationIterator != declarations.constEnd()) {
177 (*childIterator)->type() == DUContext::Namespace /*|| (*childIterator)->type() == DUContext::Class*/)
178 addDeclarationsFromContext(*childIterator, first, addedDeclarations, indent + QLatin1Char(' '));
Customized read locker for the definition-use chain.
Definition: duchainlock.h:114
A context that declares functions, namespaces or classes.
Definition: ducontext.h:103
QVector< Import > importedParentContexts() const override
Returns the list of imported parent contexts for this context.
Definition: topducontext.cpp:1024
const_iterator constEnd() const
TopDUContext * pickContextWithData(const QList< TopDUContext * > &duchains, uint maxDepth, const ParsingEnvironmentType &type, bool forcePick=true)
Definition: abstractincludenavigationcontext.cpp:37
Represents a single declaration in a definition-use chain.
Definition: declaration.h:51
QString toString(QFlags< QUrl::FormattingOption > options) const
QVector< DUContext * > importers() const override
Returns the list of contexts importing this context.
Definition: topducontext.cpp:1007
The top context in a definition-use chain for one source file.
Definition: topducontext.h:113
bool contains(const T &value) const
bool isEmpty() const
QVector< DUContext * > childContexts() const
Returns the list of immediate child contexts for this context.
Definition: ducontext.cpp:479
Definition: abstractfunctiondeclaration.cpp:27
A single context in source code, represented as a node in a directed acyclic graph.
Definition: ducontext.h:72
const_iterator constBegin() const
virtual QVector< Declaration * > localDeclarations(const TopDUContext *source=nullptr) const
Returns all local declarations.
Definition: ducontext.cpp:967
DUChainPointer< Declaration > DeclarationPointer
Definition: duchainpointer.h:200
QList< TopDUContext * > chainsForDocument(const QUrl &document) const
Return all chains for the given document that are currently in memory.
Definition: duchain.cpp:1459
const QObjectList & children() const
ParsingEnvironmentType
Just an enumeration of a few parsing-environment types.
Definition: parsingenvironment.h:43
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Mar 3 2021 00:37:28 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Mar 3 2021 00:37:28 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.