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"
88 std::optional<int> &decl_file, std::optional<int> &decl_line,
89 std::optional<int> &decl_column, std::optional<int> &call_file,
90 std::optional<int> &call_line, std::optional<int> &call_column,
94 llvm::iterator_range<child_iterator>
children()
const;
98 :
public llvm::iterator_facade_base<DWARFDIE::child_iterator,
99 std::forward_iterator_tag, DWARFDIE> {
116 assert(
m_die.
IsValid() &&
"Derefencing invalid iterator?");
120 assert(
m_die.
IsValid() &&
"Derefencing invalid iterator?");
124 assert(
m_die.
IsValid() &&
"Incrementing invalid iterator?");
DWARFDebugInfoEntry * GetDIE() const
const char * GetName() const
const DWARFDIE & operator*() const
child_iterator & operator++()
bool operator==(const child_iterator &it) const
child_iterator(const DWARFDIE &parent)
DWARFDIE m_die
The current child or an invalid DWARFDie.
std::vector< DWARFDIE > GetDeclContextDIEs() const
DWARFDebugInfoEntry * GetDIE() const
DWARFDIE GetFirstChild() const
DWARFDIE GetParent() const
void GetDeclContext(llvm::SmallVectorImpl< lldb_private::CompilerContext > &context) const
Return this DIE's decl context as it is needed to look up types in Clang's -gmodules debug info forma...
const char * GetMangledName() const
llvm::iterator_range< child_iterator > children() const
The range of all the children of this DIE.
DWARFDIE GetParentDeclContextDIE() const
bool IsStructUnionOrClass() const
lldb_private::Type * ResolveTypeUID(const DWARFDIE &die) const
DWARFDIE LookupDeepestBlock(lldb::addr_t file_addr) const
DWARFDIE GetAttributeValueAsReferenceDIE(const dw_attr_t attr) const
DWARFDIE GetReferencedDIE(const dw_attr_t attr) const
lldb_private::Type * ResolveType() const
const char * GetName() const
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, lldb_private::DWARFExpressionList *frame_base) const
void AppendTypeName(lldb_private::Stream &s) const
const char * GetPubname() const
DWARFDIE GetSibling() const
"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.
llvm::dwarf::Attribute dw_attr_t