9#ifndef LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFDIE_H
10#define LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFDIE_H
13#include "llvm/ADT/SmallSet.h"
14#include "llvm/ADT/iterator_range.h"
101 std::optional<int> &decl_file, std::optional<int> &decl_line,
102 std::optional<int> &decl_column, std::optional<int> &call_file,
103 std::optional<int> &call_line, std::optional<int> &call_column,
107 llvm::iterator_range<child_iterator>
children()
const;
111 :
public llvm::iterator_facade_base<DWARFDIE::child_iterator,
112 std::forward_iterator_tag, DWARFDIE> {
129 assert(
m_die.
IsValid() &&
"Derefencing invalid iterator?");
133 assert(
m_die.
IsValid() &&
"Derefencing invalid iterator?");
137 assert(
m_die.
IsValid() &&
"Incrementing invalid iterator?");
"lldb/Expression/DWARFExpressionList.h" Encapsulates a range map from file address range to a single ...
A stream class that can stream formatted output to a file.
DWARFDebugInfoEntry * GetDIE() const
const char * GetName() const
DWARFDIE m_die
The current child or an invalid DWARFDie.
bool operator==(const child_iterator &it) const
child_iterator(const DWARFDIE &parent)
const DWARFDIE & operator*() const
child_iterator & operator++()
DWARFDIE GetFirstChild() const
DWARFDIE GetParent() const
const char * GetMangledName() const
std::vector< CompilerContext > GetDeclContext() const
Return this DIE's decl context as it is needed to look up types in Clang modules.
llvm::iterator_range< child_iterator > children() const
The range of all the children of this DIE.
bool GetDIENamesAndRanges(const char *&name, const char *&mangled, DWARFRangeList &ranges, std::optional< int > &decl_file, std::optional< int > &decl_line, std::optional< int > &decl_column, std::optional< int > &call_file, std::optional< int > &call_line, std::optional< int > &call_column, DWARFExpressionList *frame_base) const
DWARFDIE GetParentDeclContextDIE() const
bool IsStructUnionOrClass() const
Type * ResolveTypeUID(const DWARFDIE &die) const
DWARFDIE LookupDeepestBlock(lldb::addr_t file_addr) const
DWARFDIE GetAttributeValueAsReferenceDIE(const dw_attr_t attr) const
DWARFDebugInfoEntry * GetDIE() const
DWARFDeclContext GetDWARFDeclContext() const
void AppendTypeName(Stream &s) const
DWARFDIE GetReferencedDIE(const dw_attr_t attr) const
Type * ResolveType() const
const char * GetName() const
std::vector< CompilerContext > GetTypeLookupContext() const
Get a context to a type so it can be looked up.
const char * GetPubname() const
DWARFDIE GetSibling() const
llvm::dwarf::Attribute dw_attr_t