LLDB mainline
lldb_private::clike::DeclScope Class Reference

The enclosing namespace and unqualified name of a named type. More...

#include <Type.h>

Public Member Functions

 DeclScope ()=default
 DeclScope (const Namespace *decl_context, Identifier unqualified_name)
 unqualified_name must be interned in the IdentifierMap of the Context that owns the type.
const Namespace * GetDeclContext () const
 The enclosing namespace, or null for the global namespace.
Identifier GetUnqualifiedName () const
 The unqualified name, or an empty identifier if unknown.

Private Attributes

const Namespace * m_decl_context = nullptr
Identifier m_unqualified_name

Detailed Description

The enclosing namespace and unqualified name of a named type.

A default-constructed DeclScope represents the global namespace.

Definition at line 204 of file source/Plugins/TypeSystem/Clike/Type.h.

Constructor & Destructor Documentation

◆ DeclScope() [1/2]

lldb_private::clike::DeclScope::DeclScope ( )
default

◆ DeclScope() [2/2]

lldb_private::clike::DeclScope::DeclScope ( const Namespace * decl_context,
Identifier unqualified_name )
inline

unqualified_name must be interned in the IdentifierMap of the Context that owns the type.

Definition at line 209 of file source/Plugins/TypeSystem/Clike/Type.h.

References m_decl_context, m_unqualified_name, and lldb_private::Namespace.

Member Function Documentation

◆ GetDeclContext()

const Namespace * lldb_private::clike::DeclScope::GetDeclContext ( ) const
inline

The enclosing namespace, or null for the global namespace.

Definition at line 213 of file source/Plugins/TypeSystem/Clike/Type.h.

References m_decl_context, and lldb_private::Namespace.

◆ GetUnqualifiedName()

Identifier lldb_private::clike::DeclScope::GetUnqualifiedName ( ) const
inline

The unqualified name, or an empty identifier if unknown.

Definition at line 216 of file source/Plugins/TypeSystem/Clike/Type.h.

References m_unqualified_name.

Member Data Documentation

◆ m_decl_context

const Namespace* lldb_private::clike::DeclScope::m_decl_context = nullptr
private

Definition at line 219 of file source/Plugins/TypeSystem/Clike/Type.h.

Referenced by DeclScope(), and GetDeclContext().

◆ m_unqualified_name

Identifier lldb_private::clike::DeclScope::m_unqualified_name
private

Definition at line 220 of file source/Plugins/TypeSystem/Clike/Type.h.

Referenced by DeclScope(), and GetUnqualifiedName().


The documentation for this class was generated from the following file: