kdevplatform/language/duchain
#include "duchainutils.h"
#include <algorithm>
#include <interfaces/icore.h>
#include <interfaces/ilanguagecontroller.h>
#include "../interfaces/ilanguagesupport.h"
#include "../assistant/staticassistantsmanager.h"
#include <debug.h>
#include "declaration.h"
#include "classfunctiondeclaration.h"
#include "ducontext.h"
#include "duchain.h"
#include "use.h"
#include "duchainlock.h"
#include "classmemberdeclaration.h"
#include "functiondefinition.h"
#include "specializationstore.h"
#include "persistentsymboltable.h"
#include "classdeclaration.h"
#include "parsingenvironment.h"
#include <QStandardPaths>
Include dependency graph for duchainutils.cpp:

Go to the source code of this file.
Macros | |
#define | RETURN_CACHED_ICON(name) |
Functions | |
static uint | countUses (DUContext *context, int usedDeclarationIndex) |
static bool | hasUse (DUContext *context, int usedDeclarationIndex) |
static QList< Declaration * > | inheritersInternal (const Declaration *decl, uint &maxAllowedSteps, bool collectVersions) |
ItemUnderCursorInternal | itemUnderCursorInternal (const CursorInRevision &c, DUContext *ctx, RangeInRevision::ContainsBehavior behavior) |
Macro Definition Documentation
◆ RETURN_CACHED_ICON
#define RETURN_CACHED_ICON | ( | name | ) |
Value:
QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral("kdevelop/pics/" name ".png"))\
).pixmap(QSize(16, 16)));\
return icon;}
We have to construct the item from the pixmap, else the icon will be marked as "load on demand", and for some reason will be loaded every time it's used(this function returns a QIcon marked "load on demand" each time this is called).
And the loading is very slow. Seems like a bug somewhere, it cannot be ment to be that slow.
Definition at line 156 of file duchainutils.cpp.
Function Documentation
◆ countUses()
|
static |
Definition at line 565 of file duchainutils.cpp.
◆ hasUse()
|
static |
Definition at line 547 of file duchainutils.cpp.
◆ inheritersInternal()
|
static |
Definition at line 471 of file duchainutils.cpp.
◆ itemUnderCursorInternal()
ItemUnderCursorInternal itemUnderCursorInternal | ( | const CursorInRevision & | c, |
DUContext * | ctx, | ||
RangeInRevision::ContainsBehavior | behavior | ||
) |
Definition at line 301 of file duchainutils.cpp.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Apr 9 2021 23:29:59 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Apr 9 2021 23:29:59 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.