kdevplatform/language/duchain
topducontext.h
Go to the documentation of this file.
187 Identity = 4
192 Empty = 0, //Only the top-context structure (imports etc.) is built, but no declarations and no contexts
193 SimplifiedVisibleDeclarationsAndContexts = 2, //The top-context should only contain publically simplified accessible declarations and contexts, without doing type look-up,
194 //without extended information like function-argument declarations, etc., imported contexts can be parsed with 'Empty' features
196 VisibleDeclarationsAndContexts = SimplifiedVisibleDeclarationsAndContexts + 4, //Default: The top-context should only contain publically accessible declarations and contexts
197 AllDeclarationsAndContexts = VisibleDeclarationsAndContexts + 8, //The top-context should also contain non-public declarations and contexts, but no uses
198 AllDeclarationsContextsAndUses = 16 + AllDeclarationsAndContexts, //The top-context should contain uses and all declarations + contexts
200 AllDeclarationsContextsUsesAndAST = AST | AllDeclarationsContextsAndUses, //Convenience flag, combining AST and AllDeclarationsContextsAndUses
203 Recursive = 64, //Request the given features on all recursively imported contexts. Only the features are applied recursively (including AST)
205 ForceUpdateRecursive = ForceUpdate | 256, //Enforce updating the top-context and all its imports
208 LastFeature = 512
277 virtual void addImportedParentContexts(const QVector<QPair<TopDUContext*, CursorInRevision>>& contexts,
289 using IndexedRecursiveImports = Utils::StorableSet<IndexedTopDUContext, IndexedTopDUContextIndexConversion, RecursiveImportRepository,
322 bool findDeclarationsInternal(const SearchItem::PtrList& identifiers, const CursorInRevision& position,
335 void applyAliases(const SearchItem::PtrList& identifiers, Acceptor& accept, const CursorInRevision& position,
352 bool applyAliases(const QualifiedIdentifier& previous, const SearchItem::Ptr& identifier, Acceptor& acceptor,
387 KDEVPLATFORMLANGUAGE_EXPORT QVector<RangeInRevision> allUses(TopDUContext* context, Declaration* declaration,
Allows simple indirect access to top-contexts with on-demand loading.
Definition: indexedtopducontext.h:35
An object representing a problem in preprocessing, parsing, definition-use chain compilation,...
Definition: problem.h:129
KDevelop can unload unused top-context at any time.
Definition: topducontext.h:59
A smart-pointer similar class that conveniently wraps around DUChainPointerData without too many dyna...
Definition: duchainpointer.h:90
Utils::StorableSet< IndexedTopDUContext, IndexedTopDUContextIndexConversion, RecursiveImportRepository, true > IndexedRecursiveImports
Definition: topducontext.h:290
#define DUCHAIN_DECLARE_DATA(Class)
Use this to declare the data functions in your DUChainBase based class.
Definition: duchainbase.h:41
Represents a single declaration in a definition-use chain.
Definition: declaration.h:51
This class contains dynamic data of a top-context, and also the repository that contains all the data...
Definition: topducontextdynamicdata.h:37
TopDUContext * operator->() const
Definition: topducontext.h:87
bool operator!=(const ReferencedTopDUContext &rhs) const
Definition: topducontext.h:82
Represents a DUContext within a TopDUContext, without storing the TopDUContext(It must be given to da...
Definition: localindexedducontext.h:33
Definition: topducontextdata.h:51
Represents a declaration only by its global indices.
Definition: indexeddeclaration.h:33
QVector< RangeInRevision > allUses(DUContext *context, int declarationIndex, bool noEmptyUses)
Collects all uses of the given declarationIndex.
Definition: ducontext.cpp:1519
bool operator==(const ReferencedTopDUContext &rhs) const
Definition: topducontext.h:77
The top context in a definition-use chain for one source file.
Definition: topducontext.h:113
Q_DECLARE_TYPEINFO(KDevelop::ReferencedTopDUContext, Q_MOVABLE_TYPE)
This represents all information about a specific parsed file that is needed to match the file to a pa...
Definition: parsingenvironment.h:118
Represents a declaration only by its index within the top-context.
Definition: localindexeddeclaration.h:32
Definition: abstractfunctiondeclaration.cpp:27
Represents a problem only by its index within the top-context.
Definition: problem.h:44
A single context in source code, represented as a node in a directed acyclic graph.
Definition: ducontext.h:72
class TopDUContextDynamicData * m_dynamicData
Definition: topducontext.h:381
Represents a context only by its global indices.
Definition: indexedducontext.h:35
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.