kdevplatform/language/duchain
duchainutils.h
Go to the documentation of this file.
52 KDEVPLATFORMLANGUAGE_EXPORT KTextEditor::CodeCompletionModel::CompletionProperties completionProperties(
54 KDEVPLATFORMLANGUAGE_EXPORT QIcon iconForProperties(KTextEditor::CodeCompletionModel::CompletionProperties p);
81 KDEVPLATFORMLANGUAGE_EXPORT ItemUnderCursor itemUnderCursor(const QUrl& url, const KTextEditor::Cursor& cursor);
88 KDEVPLATFORMLANGUAGE_EXPORT Declaration* declarationInLine(const KTextEditor::Cursor& cursor, KDevelop::DUContext* ctx);
113 KDEVPLATFORMLANGUAGE_EXPORT QList<Declaration*> inheriters(const Declaration* decl, uint& maxAllowedSteps,
126 KDEVPLATFORMLANGUAGE_EXPORT uint contextCountUses(DUContext* context, Declaration* declaration);
135 KDEVPLATFORMLANGUAGE_EXPORT QVector<KDevelop::Problem::Ptr> allProblemsForContext(const ReferencedTopDUContext& top);
KDEVPLATFORMLANGUAGE_EXPORT ItemUnderCursor itemUnderCursor(const QUrl &url, const KTextEditor::Cursor &cursor)
Returns 1.
Definition: duchainutils.cpp:332
KDEVPLATFORMLANGUAGE_EXPORT KDevelop::TopDUContext * standardContextForUrl(const QUrl &url, bool preferProxyContext=false)
Asks the language-plugins for standard-contexts for the given url, and returns one if available.
Definition: duchainutils.cpp:273
KDevelop can unload unused top-context at any time.
Definition: topducontext.h:59
KDEVPLATFORMLANGUAGE_EXPORT QList< IndexedDeclaration > collectAllVersions(Declaration *decl)
Uses the persistent symbol table to find all occurrences of this declaration, based on its identifier...
Definition: duchainutils.cpp:454
KDEVPLATFORMLANGUAGE_EXPORT QIcon iconForProperties(KTextEditor::CodeCompletionModel::CompletionProperties p)
Definition: duchainutils.cpp:161
KDEVPLATFORMLANGUAGE_EXPORT TopDUContext * contentContextFromProxyContext(TopDUContext *top)
Returns the content-context associated to the given proxy-contex.
Definition: duchainutils.cpp:247
KDEVPLATFORMLANGUAGE_EXPORT Declaration * declarationInLine(const KTextEditor::Cursor &cursor, KDevelop::DUContext *ctx)
Returns the first declaration in the given line.
Definition: duchainutils.cpp:365
KDEVPLATFORMLANGUAGE_EXPORT uint contextCountUses(DUContext *context, Declaration *declaration)
Returns the total count of uses of the given declaration under the given context.
Definition: duchainutils.cpp:583
KDEVPLATFORMLANGUAGE_EXPORT QList< Declaration * > overriders(const Declaration *currentClass, const Declaration *overriddenDeclaration, uint &maxAllowedSteps)
Gets all functions that override the function overriddenDeclaration, starting the search at currentCl...
Definition: duchainutils.cpp:530
Represents a single declaration in a definition-use chain.
Definition: declaration.h:51
KDEVPLATFORMLANGUAGE_EXPORT DUContext * argumentContext(Declaration *decl)
Definition: duchainutils.cpp:439
KDEVPLATFORMLANGUAGE_EXPORT void collectItems(DUContext *context, DUChainItemFilter &filter)
walks a context, all its sub-contexts, and all its declarations in exactly the order they appear in t...
Definition: duchainutils.cpp:393
KDEVPLATFORMLANGUAGE_EXPORT Declaration * overridden(const Declaration *decl)
Returns the declaration that is overridden by the given one, or zero.
Definition: duchainutils.cpp:587
The top context in a definition-use chain for one source file.
Definition: topducontext.h:113
KDEVPLATFORMLANGUAGE_EXPORT QVector< KDevelop::Problem::Ptr > allProblemsForContext(const ReferencedTopDUContext &top)
Definition: duchainutils.cpp:626
Definition: duchainbase.h:29
KDEVPLATFORMLANGUAGE_EXPORT DUContext * functionContext(Declaration *decl)
If the given declaration is a function-declaration, this follows the context-structure up to the func...
Definition: duchainutils.cpp:610
KDEVPLATFORMLANGUAGE_EXPORT QList< Declaration * > inheriters(const Declaration *decl, uint &maxAllowedSteps, bool collectVersions=true)
If the given declaration is a class, this gets all classes that inherit this one.
Definition: duchainutils.cpp:519
Declaration * declaration
Definition: duchainutils.h:73
Definition: abstractfunctiondeclaration.cpp:27
A single context in source code, represented as a node in a directed acyclic graph.
Definition: ducontext.h:72
KDEVPLATFORMLANGUAGE_EXPORT KTextEditor::CodeCompletionModel::CompletionProperties completionProperties(const Declaration *dec)
Definition: duchainutils.cpp:52
KDEVPLATFORMLANGUAGE_EXPORT Declaration * declarationForDefinition(Declaration *definition, TopDUContext *topContext=nullptr)
If the given declaration is a definition, and has a real declaration attached, returns that declarati...
Definition: duchainutils.cpp:348
KDEVPLATFORMLANGUAGE_EXPORT QIcon iconForDeclaration(const Declaration *dec)
Definition: duchainutils.cpp:242
KDEVPLATFORMLANGUAGE_EXPORT bool contextHasUse(DUContext *context, Declaration *declaration)
Returns whether the given context or any of its child-contexts contain a use of the given declaration...
Definition: duchainutils.cpp:561
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.