LLDB mainline
Public Member Functions | Public Attributes | List of all members
lldb_private::plugin::dwarf::DWARFDeclContext::Entry Struct Reference

#include <DWARFDeclContext.h>

Public Member Functions

 Entry ()=default
 
 Entry (dw_tag_t t, const char *n)
 
bool NameMatches (const Entry &rhs) const
 
const char * GetName () const
 Returns the name of this entry if it has one, or the appropriate "anonymous {namespace, class, struct, union}".
 
 operator bool () const
 

Public Attributes

dw_tag_t tag = llvm::dwarf::DW_TAG_null
 
const char * name = nullptr
 

Detailed Description

Definition at line 30 of file DWARFDeclContext.h.

Constructor & Destructor Documentation

◆ Entry() [1/2]

lldb_private::plugin::dwarf::DWARFDeclContext::Entry::Entry ( )
default

◆ Entry() [2/2]

lldb_private::plugin::dwarf::DWARFDeclContext::Entry::Entry ( dw_tag_t  t,
const char *  n 
)
inline

Definition at line 32 of file DWARFDeclContext.h.

Member Function Documentation

◆ GetName()

const char * DWARFDeclContext::Entry::GetName ( ) const

Returns the name of this entry if it has one, or the appropriate "anonymous {namespace, class, struct, union}".

Definition at line 15 of file DWARFDeclContext.cpp.

References name, and tag.

◆ NameMatches()

bool lldb_private::plugin::dwarf::DWARFDeclContext::Entry::NameMatches ( const Entry rhs) const
inline

Definition at line 34 of file DWARFDeclContext.h.

References name.

◆ operator bool()

lldb_private::plugin::dwarf::DWARFDeclContext::Entry::operator bool ( ) const
inlineexplicit

Definition at line 47 of file DWARFDeclContext.h.

References tag.

Member Data Documentation

◆ name

const char* lldb_private::plugin::dwarf::DWARFDeclContext::Entry::name = nullptr

Definition at line 50 of file DWARFDeclContext.h.

Referenced by GetName(), and NameMatches().

◆ tag

dw_tag_t lldb_private::plugin::dwarf::DWARFDeclContext::Entry::tag = llvm::dwarf::DW_TAG_null

Definition at line 49 of file DWARFDeclContext.h.

Referenced by GetName(), and operator bool().


The documentation for this struct was generated from the following files: