LIEF: Library to Instrument Executable Formats Version 1.0.0
Loading...
Searching...
No Matches
LIEF::DeclOpt Struct Reference

Configuration options for generated code from debug info. More...

#include <DebugDeclOpt.hpp>

Public Attributes

uint32_t indentation = 2
 The number of spaces for indentation.
bool is_cpp = false
 Prefer C++ syntax over C syntax.
bool show_extended_annotations = true
 Enable extended comments and annotations.
bool include_types = false
 Include full type definitions.
bool desugar = true
 Resolve type aliases (sugar).

Detailed Description

Configuration options for generated code from debug info.

This structure configures how the debug information (DWARF/PDB) translated into an AST is generated.

Member Data Documentation

◆ desugar

bool LIEF::DeclOpt::desugar = true

Resolve type aliases (sugar).

If true, typedefs and type aliases are replaced by their underlying canonical types (e.g., uint32_t might become unsigned int).

◆ include_types

bool LIEF::DeclOpt::include_types = false

Include full type definitions.

If true, the output will contain the full definition of types (structs, enums, unions).

◆ indentation

uint32_t LIEF::DeclOpt::indentation = 2

The number of spaces for indentation.

◆ is_cpp

bool LIEF::DeclOpt::is_cpp = false

Prefer C++ syntax over C syntax.

If true, the output will use C++ features (e.g., bool keyword)

◆ show_extended_annotations

bool LIEF::DeclOpt::show_extended_annotations = true

Enable extended comments and annotations.

If true, the generated code will include comments containing low-level details such as memory addresses, offsets, type sizes, and original source locations.


The documentation for this struct was generated from the following file: