15#ifndef LIEF_DWARF_VARIABLE_H
16#define LIEF_DWARF_VARIABLE_H
41 Variable, std::ptrdiff_t, const Variable*,
45 using iterator_facade_base::operator++;
46 using iterator_facade_base::operator--;
83 std::unique_ptr<details::VariableIt> impl_;
84 mutable std::unique_ptr<Variable> cached_;
87 Variable(std::unique_ptr<details::Variable> impl);
124 std::unique_ptr<Type>
type()
const;
127 std::unique_ptr<Scope>
scope()
const;
138 std::unique_ptr<details::Variable> impl_;
This class materializes a scope in which Function, Variable, Type, ... can be defined.
Definition Scope.hpp:33
std::unique_ptr< Variable > yield()
Transfer ownership of the variable at the current position to the caller. Returns nullptr if the iter...
details::VariableIt implementation
Definition Variable.hpp:44
const Variable & operator*() const
Iterator(const Iterator &)
Iterator(std::unique_ptr< details::VariableIt > impl)
Iterator(Iterator &&) noexcept
const Variable * operator->() const
Iterator & operator=(const Iterator &)
std::string linkage_name() const
The name of the variable which is used for linking (DW_AT_linkage_name).
bool is_stack_based() const
Whether this variable is allocated on the stack.
Variable(std::unique_ptr< details::Variable > impl)
bool is_constexpr() const
Whether it's a constexpr variable.
std::unique_ptr< Type > type() const
Return the type of this variable.
debug_location_t debug_location() const
The original source location where the variable is defined.
std::string description() const
Description (DW_AT_description) of the variable or an empty string.
std::string to_decl(const DeclOpt &opt=DeclOpt()) const
Generates a C/C++ definition for this variable.
std::unique_ptr< Scope > scope() const
Return the scope in which this variable is defined.
std::string name() const
Name of the variable (usually demangled).
result< int64_t > address() const
Address of the variable.
result< uint64_t > size() const
Return the size of the variable (or a lief_errors if it can't be resolved).
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:77
Definition DWARF/CompilationUnit.hpp:30
Namespace for the DWARF debug format.
Definition DWARF/CompilationUnit.hpp:28
LIEF namespace.
Definition Abstract/Binary.hpp:40
Configuration options for generated code from debug info.
Definition DebugDeclOpt.hpp:25
This structure holds a debug location (source filename & line).
Definition debug_loc.hpp:23
#define LIEF_API
Definition visibility.h:45