• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdevelop API Reference
  • KDE Home
  • Contact Us
 

kdevplatform/language/duchain

  • sources
  • kfour-appscomplete
  • kdevelop
  • kdevplatform
  • language
  • duchain
Macros | Functions
duchainutils.cpp File Reference
#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:
{static QIcon icon(QIcon( \
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 uint countUses ( DUContext *  context,
int  usedDeclarationIndex 
)
static

Definition at line 565 of file duchainutils.cpp.

◆ hasUse()

static bool hasUse ( DUContext *  context,
int  usedDeclarationIndex 
)
static

Definition at line 547 of file duchainutils.cpp.

◆ inheritersInternal()

static QList<Declaration*> inheritersInternal ( const Declaration *  decl,
uint &  maxAllowedSteps,
bool  collectVersions 
)
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.

QSize
QIcon
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

KDE's Doxygen guidelines are available online.

kdevplatform/language/duchain

Skip menu "kdevplatform/language/duchain"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdevelop API Reference

Skip menu "kdevelop API Reference"
  • kdevplatform
  •   debugger
  •   documentation
  •   interfaces
  •   language
  •     assistant
  •     backgroundparser
  •     checks
  •     classmodel
  •     codecompletion
  •     codegen
  •     duchain
  •     editor
  •     highlighting
  •     interfaces
  •     util
  •   outputview
  •   project
  •   serialization
  •   shell
  •   sublime
  •   tests
  •   util
  •   vcs

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal