• 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
ducontextdata.h
Go to the documentation of this file.
1 /***************************************************************************
2 * This file is part of KDevelop *
3 * Copyright 2006 Hamish Rodda <[email protected]> *
4 * Copyright 2007-2008 David Nolden <[email protected]>*
5 * *
6 * This program is free software; you can redistribute it and/or modify *
7 * it under the terms of the GNU Library General Public License as *
8 * published by the Free Software Foundation; either version 2 of the *
9 * License, or (at your option) any later version. *
10 * *
11 * This program is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU Library General Public *
17 * License along with this program; if not, write to the *
18 * Free Software Foundation, Inc., *
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
20 ***************************************************************************/
21 
22 #ifndef DUCONTEXTDATA_H
23 #define DUCONTEXTDATA_H
24 
25 #include "duchainbase.h"
26 #include "ducontext.h"
27 #include "duchainpointer.h"
28 #include "declaration.h"
29 #include "use.h"
30 #include <language/languageexport.h>
31 
32 #include "localindexeddeclaration.h"
33 #include "localindexedducontext.h"
34 
35 namespace KDevelop {
36 class DUContext;
37 
38 KDEVPLATFORMLANGUAGE_EXPORT DECLARE_LIST_MEMBER_HASH(DUContextData, m_childContexts, LocalIndexedDUContext)
39 KDEVPLATFORMLANGUAGE_EXPORT DECLARE_LIST_MEMBER_HASH(DUContextData, m_importers, IndexedDUContext)
40 KDEVPLATFORMLANGUAGE_EXPORT DECLARE_LIST_MEMBER_HASH(DUContextData, m_importedContexts, DUContext::Import)
41 KDEVPLATFORMLANGUAGE_EXPORT DECLARE_LIST_MEMBER_HASH(DUContextData, m_localDeclarations, LocalIndexedDeclaration)
42 KDEVPLATFORMLANGUAGE_EXPORT DECLARE_LIST_MEMBER_HASH(DUContextData, m_uses, Use)
43 
44 class KDEVPLATFORMLANGUAGE_EXPORT DUContextData
46  : public DUChainBaseData
47 {
48 public:
49  DUContextData();
50  ~DUContextData();
51  DUContextData(const DUContextData& rhs);
52  DUContextData& operator=(const DUContextData&) = delete;
53 
54  IndexedQualifiedIdentifier m_scopeIdentifier;
55  IndexedDeclaration m_owner;
56  using Import = DUContext::Import;
57  START_APPENDED_LISTS_BASE(DUContextData, DUChainBaseData);
58  APPENDED_LIST_FIRST(DUContextData, Import, m_importedContexts);
59  APPENDED_LIST(DUContextData, LocalIndexedDUContext, m_childContexts, m_importedContexts);
60 
63  APPENDED_LIST(DUContextData, IndexedDUContext, m_importers, m_childContexts);
64 
66  APPENDED_LIST(DUContextData, LocalIndexedDeclaration, m_localDeclarations, m_importers);
71  APPENDED_LIST(DUContextData, Use, m_uses, m_localDeclarations);
72  END_APPENDED_LISTS(DUContextData, m_uses);
73 
74  DUContext::ContextType m_contextType;
75  bool m_inSymbolTable : 1;
76  bool m_anonymousInParent : 1; //Whether this context was added anonymously into the parent. This means that it cannot be found as child-context in the parent.
77  bool m_propagateDeclarations : 1;
78 };
79 }
80 
81 #endif
KDevelop::m_importers
KDEVPLATFORMLANGUAGE_EXPORT m_importers
Definition: ducontextdata.h:56
duchainpointer.h
APPENDED_LIST_FIRST
#define APPENDED_LIST_FIRST(container, type, name)
Definition: appendedlist.h:321
localindexeddeclaration.h
START_APPENDED_LISTS_BASE
#define START_APPENDED_LISTS_BASE(container, base)
Use this if one of the base-classes of the container also has the appended lists interfaces implement...
Definition: appendedlist.h:257
KDevelop::DUContext::ContextType
ContextType
Definition: ducontext.h:102
DUContextData
KDevelop::Use
Represents a position in a document where a specific declaration is used.
Definition: use.h:47
KDevelop::LocalIndexedDUContext
Represents a DUContext within a TopDUContext, without storing the TopDUContext(It must be given to da...
Definition: localindexedducontext.h:33
KDevelop::DECLARE_LIST_MEMBER_HASH
KDEVPLATFORMLANGUAGE_EXPORT DECLARE_LIST_MEMBER_HASH(DUContextData, m_childContexts, LocalIndexedDUContext) KDEVPLATFORMLANGUAGE_EXPORT DECLARE_LIST_MEMBER_HASH(DUContextData
APPENDED_LIST
#define APPENDED_LIST(container, type, name, predecessor)
Definition: appendedlist.h:338
declaration.h
KDevelop::m_localDeclarations
KDEVPLATFORMLANGUAGE_EXPORT IndexedDUContext KDEVPLATFORMLANGUAGE_EXPORT m_localDeclarations
Definition: ducontextdata.h:58
use.h
END_APPENDED_LISTS
#define END_APPENDED_LISTS(container, predecessor)
Definition: appendedlist.h:358
KDevelop::LocalIndexedDeclaration
Represents a declaration only by its index within the top-context.
Definition: localindexeddeclaration.h:32
localindexedducontext.h
KDevelop
Definition: abstractfunctiondeclaration.cpp:27
ducontext.h
KDevelop::DUChainBaseData
Definition: duchainbase.h:59
duchainbase.h
KDevelop::IndexedDUContext
Represents a context only by its global indices.
Definition: indexedducontext.h:35
KDevelop::DUContext::Import
Represents an imported parent context.
Definition: ducontext.h:256
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Jan 23 2021 09:40:52 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