Go to the documentation of this file.
15#ifndef LIEF_DWARF_SCOPE_H
16#define LIEF_DWARF_SCOPE_H
34 enum class TYPE : uint32_t {
43 Scope(std::unique_ptr<details::Scope> impl);
44 std::string
name()
const;
47 std::unique_ptr<Scope>
parent()
const;
53 std::string
chained(
const std::string& sep =
"::")
const;
60 std::unique_ptr<details::Scope> impl_;
This class materializes a scope in which Function, Variable, Type, ... can be defined.
Definition Scope.hpp:32
TYPE type() const
The current scope type.
std::unique_ptr< Scope > parent() const
Parent scope (if any)
std::string name() const
Name of the scope. For instance namespace's name or function's name.
std::string chained(const std::string &sep="::") const
Represent the whole chain of all (parent) scopes using the provided separator. E.g....
Scope(std::unique_ptr< details::Scope > impl)
Definition DWARF/CompilationUnit.hpp:30
Namespace for the DWARF debug format.
Definition DWARF/CompilationUnit.hpp:28
LIEF namespace.
Definition Abstract/Binary.hpp:36
#define LIEF_API
Definition visibility.h:41