Struct DeclOpt
pub struct DeclOpt {
pub indentation: u32,
pub is_cpp: bool,
pub show_extended_annotations: bool,
pub include_types: bool,
pub include_locals: bool,
pub desugar: bool,
pub show_field_offsets: bool,
pub target_triple: String,
}Expand description
Configuration options for generated code from debug info.
This structure configures how the debug information (DWARF/PDB) translated into an AST is generated.
Fields§
§indentation: u32§is_cpp: boolPrefer C++ syntax over C syntax.
If true, the output will use C++ features (e.g. bool keyword)
show_extended_annotations: boolEnable 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.
include_types: boolInclude full type definitions.
If true, the output will contain the full definition of types (structs, enums, unions).
include_locals: boolEmit a function body listing its local / stack variables
desugar: boolResolve type aliases (sugar).
If true, typedef and type aliases are replaced by their underlying
canonical types (e.g., uint32_t might become unsigned int).
show_field_offsets: boolShow the relative offset of each field/attribute in structures.
If true, every member of a structure is prefixed with its byte offset (e.g. /* 0x04 */).
target_triple: StringThe LLVM target (e.g. aarch64-unknown-linux-gnu) used to build the
AST from which the definitions are generated.
The target defines the size of the builtin types (e.g. long) and the
register names used in the annotations. If empty (default), the target
is inferred from the binary associated with the debug info.