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 › Builder › debugCompositeTypeAssumeCapacity Private Function debugCompositeTypeAssumeCapacity Doc Source Private Function std.zig.llvm.Builder.debugCompositeTypeAssumeCapacity
fn debugCompositeTypeAssumeCapacity (
self : *Builder ,
tag : Metadata .Tag ,
name : ?Metadata .String ,
file : ?Metadata ,
scope : ?Metadata ,
line : u32 ,
underlying_type : ?Metadata ,
size_in_bits : u64 ,
align_in_bits : u64 ,
fields_tuple : ?Metadata ,
) Metadata Params File zig/llvm/Builder.zig: 14091
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116 fn debugCompositeTypeAssumeCapacity (
self : *Builder ,
tag : Metadata .Tag ,
name : ?Metadata .String ,
file : ?Metadata ,
scope : ?Metadata ,
line : u32 ,
underlying_type : ?Metadata ,
size_in_bits : u64 ,
align_in_bits : u64 ,
fields_tuple : ?Metadata ,
) Metadata {
assert (!self .strip );
return self .metadataSimpleAssumeCapacity (tag , Metadata .CompositeType {
.name = .wrap (name ),
.file = .wrap (file ),
.scope = .wrap (scope ),
.line = line ,
.underlying_type = .wrap (underlying_type ),
.size_in_bits_lo = @truncate (size_in_bits ),
.size_in_bits_hi = @truncate (size_in_bits >> 32 ),
.align_in_bits_lo = @truncate (align_in_bits ),
.align_in_bits_hi = @truncate (align_in_bits >> 32 ),
.fields_tuple = .wrap (fields_tuple ),
});
}