• 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
aliasdeclaration.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_ALIASDECLARATION_H
20 #define KDEVPLATFORM_ALIASDECLARATION_H
21 
22 #include "classmemberdeclaration.h"
23 #include "classmemberdeclarationdata.h"
24 #include "duchainpointer.h"
25 #include "declarationdata.h"
26 
27 namespace KDevelop {
28 class KDEVPLATFORMLANGUAGE_EXPORT AliasDeclarationData
29  : public ClassMemberDeclarationData
30 {
31 public:
32  AliasDeclarationData() {}
33  AliasDeclarationData(const AliasDeclarationData& rhs)
34  : ClassMemberDeclarationData(rhs)
35  , m_aliasedDeclaration(rhs.m_aliasedDeclaration)
36  {
37  }
38  ~AliasDeclarationData() = default;
39  AliasDeclarationData& operator=(const AliasDeclarationData& rhs) = delete;
40 
41  IndexedDeclaration m_aliasedDeclaration;
42 };
48 class KDEVPLATFORMLANGUAGE_EXPORT AliasDeclaration
49  : public ClassMemberDeclaration
50 {
51 public:
53  AliasDeclaration(const AliasDeclaration& rhs);
60  AliasDeclaration(const RangeInRevision& range, DUContext* context);
61 
62  explicit AliasDeclaration(AliasDeclarationData& data);
64  ~AliasDeclaration() override;
65 
66  AliasDeclaration& operator=(const AliasDeclaration& rhs) = delete;
67 
73  void setAbstractType(AbstractType::Ptr type) override;
74 
80  void setAliasedDeclaration(const IndexedDeclaration& decl);
81 
87  IndexedDeclaration aliasedDeclaration() const;
88 
89  QString toString() const override;
90 
91  enum {
92  Identity = 6
93  };
94 
95 private:
96  Declaration* clonePrivate() const override;
97  DUCHAIN_DECLARE_DATA(AliasDeclaration)
98 };
99 }
100 
101 #endif // KDEVPLATFORM_FUNCTIONDECLARATION_H
duchainpointer.h
KDevelop::AliasDeclarationData::m_aliasedDeclaration
IndexedDeclaration m_aliasedDeclaration
Definition: aliasdeclaration.h:41
KDevelop::TypePtr< AbstractType >
classmemberdeclaration.h
DUCHAIN_DECLARE_DATA
#define DUCHAIN_DECLARE_DATA(Class)
Use this to declare the data functions in your DUChainBase based class.
Definition: duchainbase.h:41
KDevelop::Declaration
Represents a single declaration in a definition-use chain.
Definition: declaration.h:51
KDevelop::AliasDeclarationData::AliasDeclarationData
AliasDeclarationData()
Definition: aliasdeclaration.h:32
KDevelop::IndexedDeclaration
Represents a declaration only by its global indices.
Definition: indexeddeclaration.h:33
declarationdata.h
QString
KDevelop::ClassMemberDeclaration
Represents a single class member definition in a definition-use chain.
Definition: classmemberdeclaration.h:32
KDevelop::AliasDeclarationData
Definition: aliasdeclaration.h:28
KDevelop::ClassMemberDeclarationData
Definition: classmemberdeclarationdata.h:29
classmemberdeclarationdata.h
KDevelop
Definition: abstractfunctiondeclaration.cpp:27
KDevelop::DUContext
A single context in source code, represented as a node in a directed acyclic graph.
Definition: ducontext.h:72
KDevelop::AliasDeclarationData::AliasDeclarationData
AliasDeclarationData(const AliasDeclarationData &rhs)
Definition: aliasdeclaration.h:33
KDevelop::AliasDeclaration
An alias declaration maps one declaration to another.
Definition: aliasdeclaration.h:48
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Jan 20 2021 23:38:35 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