Zig 0.17.0-dev (Split by item) This is an example of documentation generated by
ZigDoc , an alternative to Zig's built-in
Auto Doc feature. See also
examples in other modes/formats . The project being documented here (as the example) is the Zig standard library.
std › zig › llvm › ir › ModuleBlock › MetadataBlock › CompileUnit Public Struct CompileUnit Doc Source Public Struct std.zig.llvm.ir.ModuleBlock.MetadataBlock.CompileUnit
pub const CompileUnit = struct Fields Values File zig/llvm/ir.zig: 1644
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676 pub const CompileUnit = struct {
pub const ops = [_ ]AbbrevOp {
.{ .literal = @backingInt (ModuleBlock .MetadataBlock .Code .COMPILE_UNIT ) },
.{ .literal = 1 }, // is distinct
.{ .literal = std .dwarf .LANG .C99 }, // source language
MetadataAbbrev , // file
MetadataAbbrev , // producer
.{ .fixed = 1 }, // isOptimized
.{ .literal = 0 }, // raw flags
.{ .literal = 0 }, // runtime version
.{ .literal = 0 }, // split debug file name
.{ .literal = 1 }, // emission kind
MetadataAbbrev , // enums
.{ .literal = 0 }, // retained types
.{ .literal = 0 }, // subprograms
MetadataAbbrev , // globals
.{ .literal = 0 }, // imported entities
.{ .literal = 0 }, // DWO ID
.{ .literal = 0 }, // macros
.{ .literal = 0 }, // split debug inlining
.{ .literal = 0 }, // debug info profiling
.{ .literal = 0 }, // name table kind
.{ .literal = 0 }, // ranges base address
.{ .literal = 0 }, // raw sysroot
.{ .literal = 0 }, // raw SDK
};
file : Builder .Metadata .Optional ,
producer : Builder .Metadata .String .Optional ,
is_optimized : bool ,
enums : Builder .Metadata .Optional ,
globals : Builder .Metadata .Optional ,
}