kdevplatform/language/duchain
ducontext.h
Go to the documentation of this file.
91 explicit DUContext(const RangeInRevision& range, DUContext* parent = nullptr, bool anonymous = false);
103 Global ,
104 Namespace ,
105 Class ,
106 Function ,
107 Template ,
108 Enum ,
109 Helper ,
113 Other
117 NoSearchFlags = 0 ,
118 InImportedParentContext = 1 ,
119 OnlyContainerTypes = 2 ,
120 DontSearchInParent =
122 NoUndefinedTemplateParams =
124 DirectQualifiedLookup =
126 NoFiltering =
128 OnlyFunctions =
130 NoImportsCheck =
132 NoSelfLookUp =
134 DontResolveAliases = 512 ,
135 LastSearchFlag = 1024
264 explicit Import(const DeclarationId& id, const CursorInRevision& position = CursorInRevision::invalid());
689 Identity = 2
755 QVector<QualifiedIdentifier> toList(const QualifiedIdentifier& prefix = QualifiedIdentifier()) const;
855 void applyAliases(const SearchItem::PtrList& identifiers, SearchItem::PtrList& targetIdentifiers,
867 virtual void applyUpwardsAliases(SearchItem::PtrList& identifiers, const TopDUContext* source) const;
869 DUContext(DUContextData& dd, const RangeInRevision& range, DUContext* parent = nullptr, bool anonymous = false);
961 KDEVPLATFORMLANGUAGE_EXPORT QDebug operator<<(QDebug dbg, const KDevelop::DUContext::Import& import);
KDEVPLATFORMLANGUAGE_EXPORT QDebug operator<<(QDebug dbg, const KDevelop::DUContext::Import &import)
Definition: ducontext.cpp:60
Q_DECLARE_TYPEINFO(KDevelop::DUContext::Import, Q_MOVABLE_TYPE)
IndexedDUContext indexedContext() const
Definition: ducontext.h:286
KDevVarLengthArray< Ptr, 256 > PtrList
Definition: ducontext.h:706
Represents multiple qualified identifiers in a way that is better to manipulate and allows applying n...
Definition: ducontext.h:702
A helper-class to store an identifier by index in a type-safe way.
Definition: identifier.h:55
bool operator==(const Import &rhs) const
Definition: ducontext.h:266
#define DUCHAIN_DECLARE_DATA(Class)
Use this to declare the data functions in your DUChainBase based class.
Definition: duchainbase.h:41
A helper-class to store an identifier by index in a type-safe way.
Definition: identifier.h:95
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
Represents a position in a document where a specific declaration is used.
Definition: use.h:47
Represents a DUContext within a TopDUContext, without storing the TopDUContext(It must be given to da...
Definition: localindexedducontext.h:33
const IndexedIdentifier & globalIndexedImportIdentifier()
This is the identifier that can be used to search namespace-import declarations, and should be used t...
Definition: ducontext.cpp:96
QVector< RangeInRevision > allUses(DUContext *context, int declarationIndex, bool noEmptyUses)
Collects all uses of the given declarationIndex.
Definition: ducontext.cpp:1519
uint topContextIndex() const
Returns the top-context index, if this import is not a specialization import.
Definition: ducontext.h:281
DeclarationId indirectDeclarationId() const
If this import is indirect, returns the imported declaration-id.
Definition: ducontext.h:302
The top context in a definition-use chain for one source file.
Definition: topducontext.h:113
const Identifier & globalImportIdentifier()
We leak here, to prevent a possible crash during destruction, as the destructor of Identifier is not ...
Definition: ducontext.cpp:84
Definition: declarationdata.h:35
This class contains data that is only runtime-dependent and does not need to be stored to disk.
Definition: ducontextdynamicdata.h:46
Definition: ducontext.h:49
Definition: abstractfunctiondeclaration.cpp:27
A single context in source code, represented as a node in a directed acyclic graph.
Definition: ducontext.h:72
const Identifier & globalAliasIdentifier()
This is the identifier that can be used to search namespace-alias declarations.
Definition: ducontext.cpp:90
const IndexedIdentifier & globalIndexedAliasIdentifier()
This is the identifier that can be used to search namespace-alias declarations.
Definition: ducontext.cpp:102
bool isExplicitlyGlobal
Definition: ducontext.h:759
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 Tue Jan 19 2021 23:36:33 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Jan 19 2021 23:36:33 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.