15#ifndef LIEF_DWARF_TYPE_H
16#define LIEF_DWARF_TYPE_H
71 std::ptrdiff_t, const Type*, const Type&> {
74 using iterator_facade_base::operator++;
75 using iterator_facade_base::operator--;
112 std::unique_ptr<
details::TypeIt> impl_;
113 mutable std::unique_ptr<
Type> cached_;
179 std::unique_ptr<Scope>
scope()
const;
185 const T*
as()
const {
186 if (T::classof(
this)) {
187 return static_cast<const T*
>(
this);
192 static std::unique_ptr<Type>
Configuration options for generated code from debug info.
Definition DebugDeclOpt.hpp:36
Definition canbe_unique.hpp:22
This class materializes a scope in which Function, Variable, Type, ... can be defined.
Definition Scope.hpp:33
Iterator(std::unique_ptr< details::TypeIt > impl)
Iterator(const Iterator &)
Iterator(Iterator &&) noexcept
std::unique_ptr< Type > yield()
Transfer ownership of the type at the current position to the caller. Returns nullptr if the iterator...
Iterator & operator=(const Iterator &)
const Type & operator*() const
details::TypeIt implementation
Definition DWARF/Type.hpp:73
const T * as() const
Definition DWARF/Type.hpp:185
bool is_unspecified() const
Whether this type is a DW_TAG_unspecified_type.
Definition DWARF/Type.hpp:162
KIND
Definition DWARF/Type.hpp:127
@ UNSPECIFIED
Definition DWARF/Type.hpp:129
Type(std::unique_ptr< details::Type > impl)
result< std::string > name() const
Return the type's name using either DW_AT_name or DW_AT_picture_string (if any).
result< uint64_t > size() const
Return the size of the type or an error if it can't be computed.
std::string to_decl(const DeclOpt &opt=DeclOpt()) const
Generates a C/C++ definition for this type.
debug_location_t location() const
Return the debug location where this type is defined.
static std::unique_ptr< Type > create(std::unique_ptr< details::Type > impl)
std::unique_ptr< Scope > scope() const
Return the scope in which this type is defined.
CRTP base class which implements the entire standard iterator facade in terms of a minimal subset of ...
Definition iterators.hpp:729
Wrapper that contains an Object (T) or an error.
Definition errors.hpp:78
#define LIEF_LIFETIMEBOUND
Definition compiler_attributes.hpp:72
Definition DWARF/CompilationUnit.hpp:32
Namespace for the DWARF debug format.
Definition DWARF/CompilationUnit.hpp:30
LIEF namespace.
Definition Abstract/Binary.hpp:41
This structure holds a debug location (source filename & line).
Definition debug_loc.hpp:23
#define LIEF_API
Definition visibility.h:45
#define LIEF_LOCAL
Definition visibility.h:46