• 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
use.h
Go to the documentation of this file.
1 /* This file is part of KDevelop
2  Copyright 2008 David Nolden<[email protected]>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License version 2 as published by the Free Software Foundation.
7 
8  This library is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  Library General Public License for more details.
12 
13  You should have received a copy of the GNU Library General Public License
14  along with this library; see the file COPYING.LIB. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17  */
18 
19 #ifndef KDEVPLATFORM_DEFINITIONUSE_H
20 #define KDEVPLATFORM_DEFINITIONUSE_H
21 
22 #include <limits>
23 
24 #include "../editor/rangeinrevision.h"
25 
26 #include <language/languageexport.h>
27 
28 namespace KDevelop {
29 class TopDUContext;
30 class Declaration;
47 class KDEVPLATFORMLANGUAGE_EXPORT Use
48 {
49 public:
50 
51  explicit Use(const RangeInRevision& range = RangeInRevision::invalid(),
52  int declarationIndex = std::numeric_limits<int>::max())
53  : m_range(range)
54  , m_declarationIndex(declarationIndex)
55  {
56  }
57 
58  Declaration* usedDeclaration(TopDUContext* topContext) const;
59 
60  RangeInRevision m_range;
61  int m_declarationIndex;
62 };
63 }
64 
65 Q_DECLARE_TYPEINFO(KDevelop::Use, Q_MOVABLE_TYPE);
66 
67 #endif // KDEVPLATFORM_DEFINITIONUSE_H
Q_DECLARE_TYPEINFO
Q_DECLARE_TYPEINFO(KDevelop::Use, Q_MOVABLE_TYPE)
KDevelop::Use::m_declarationIndex
int m_declarationIndex
Definition: use.h:61
KDevelop::Use::Use
Use(const RangeInRevision &range=RangeInRevision::invalid(), int declarationIndex=std::numeric_limits< int >::max())
Definition: use.h:51
KDevelop::Declaration
Represents a single declaration in a definition-use chain.
Definition: declaration.h:51
KDevelop::Use
Represents a position in a document where a specific declaration is used.
Definition: use.h:47
KDevelop::Use::m_range
RangeInRevision m_range
Definition: use.h:60
KDevelop::TopDUContext
The top context in a definition-use chain for one source file.
Definition: topducontext.h:113
KDevelop
Definition: abstractfunctiondeclaration.cpp:27
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

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