kdevplatform/language/duchain
definitions.cpp
Go to the documentation of this file.
64 //We only compare the declaration. This allows us implementing a map, although the item-repository
148 qout << " " << decl.data()->qualifiedIdentifier() << "in" << decl.data()->url().byteArray() << "at" <<
192 //Check whether the item is already in the mapped list, else copy the list into the new created item
207 void Definitions::removeDefinition(const DeclarationId& id, const IndexedDeclaration& definition)
void addDefinition(const DeclarationId &id, const IndexedDeclaration &definition)
Assigns.
Definition: definitions.cpp:180
QTextStream &(*)(QTextStream &) TextStreamFunction
Definition: definitions.cpp:31
#define DEFINE_LIST_MEMBER_HASH(container, member, type)
Definition: appendedlist.h:218
Global mapping of one Declaration-Ids to multiple Definitions, protected through DUChainLock.
Definition: definitions.h:40
void removeDefinition(const DeclarationId &id, const IndexedDeclaration &definition)
Definition: definitions.cpp:207
void dump(const QTextStream &out)
Dump contents of the definitions repository to stream out.
Definition: definitions.cpp:254
Represents a declaration only by its global indices.
Definition: indexeddeclaration.h:33
#define FOREACH_FUNCTION(item, container)
Foreach macro that takes a container and a function-name, and will iterate through the vector returne...
Definition: appendedlist.h:213
KDevVarLengthArray< IndexedDeclaration > definitions(const DeclarationId &id) const
Gets all the known definitions assigned to id.
Definition: definitions.cpp:233
Definition: abstractfunctiondeclaration.cpp:27
#define START_APPENDED_LISTS(container)
use this if the class does not have a base class that also uses appended lists
Definition: appendedlist.h:250
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.