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

kdevelop/kdevplatform/language/duchain

  • extragear
  • kdevelop
  • kdevelop
  • kdevplatform
  • language
  • duchain
declarationdata.h
Go to the documentation of this file.
1 /* This file is part of KDevelop
2  Copyright 2006 Hamish Rodda <[email protected]>
3  Copyright 2007-2008 David Nolden <[email protected]>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License version 2 as published by the Free Software Foundation.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18  */
19 
20 #ifndef KDEVPLATFORM_DECLARATION_DATA_H
21 #define KDEVPLATFORM_DECLARATION_DATA_H
22 
23 #include "duchainbase.h"
24 
25 #include "declaration.h"
26 #include "declarationid.h"
27 #include "ducontext.h"
28 #include "topducontext.h"
29 #include "duchainlock.h"
30 #include "duchain.h"
31 #include <language/languageexport.h>
32 #include "types/indexedtype.h"
33 
34 namespace KDevelop {
35 class KDEVPLATFORMLANGUAGE_EXPORT DeclarationData
36  : public DUChainBaseData
37 {
38 public:
39  DeclarationData();
40  DeclarationData(const DeclarationData& rhs) = default;
41 
42  IndexedDUContext m_internalContext;
43  IndexedType m_type;
44  IndexedIdentifier m_identifier;
45 
47  //Holds the declaration id for this definition, if this is a definition with separate declaration
48  DeclarationId m_declaration;
49 
50  //Index in the comment repository
51  uint m_comment = 0;
52 
53  Declaration::Kind m_kind = Declaration::Instance;
54 
55  bool m_isDefinition : 1;
56  bool m_inSymbolTable : 1;
57  bool m_isTypeAlias : 1;
58  bool m_anonymousInContext : 1; //Whether the declaration was added into the parent-context anonymously
59  bool m_isDeprecated : 1;
60  bool m_alwaysForceDirect : 1;
61  bool m_isAutoDeclaration : 1;
62  bool m_isExplicitlyDeleted : 1;
63  bool m_isExplicitlyTyped : 1;
64 };
65 }
66 
67 #endif
KDevelop::DeclarationData::m_declaration
DeclarationId m_declaration
Definition: declarationdata.h:48
KDevelop::m_inSymbolTable
bool m_inSymbolTable
Definition: ducontextdata.h:75
duchain.h
KDevelop::DeclarationData::m_identifier
IndexedIdentifier m_identifier
Definition: declarationdata.h:44
KDevelop::Declaration::Kind
Kind
Enumeration of the types of declarations.
Definition: declaration.h:63
KDevelop::DeclarationData::m_type
IndexedType m_type
Definition: declarationdata.h:43
declaration.h
KDevelop::Declaration::Instance
An instance of a type is declared("MyClass m;")
Definition: declaration.h:65
ducontext.h
topducontext.h
KDevelop::DeclarationId
Allows clearly identifying a Declaration.
Definition: declarationid.h:50
KDevelop::DeclarationData
Definition: declarationdata.h:35
KDevelop::IndexedDUContext
Represents a context only by its global indices.
Definition: indexedducontext.h:35
indexedtype.h
duchainlock.h
KDevelop::DUChainBaseData
Definition: duchainbase.h:59
KDevelop::IndexedType
Indexed type pointer.
Definition: indexedtype.h:36
KDevelop::DeclarationData::m_internalContext
IndexedDUContext m_internalContext
Definition: declarationdata.h:42
duchainbase.h
declarationid.h
KDevelop::IndexedIdentifier
A helper-class to store an identifier by index in a type-safe way.
Definition: identifier.h:55
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Fri Dec 13 2019 03:34:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kdevelop/kdevplatform/language/duchain

Skip menu "kdevelop/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