Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
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. Public Struct

GlobalVar

Public Struct
std.zig.llvm.ir.ModuleBlock.MetadataBlock.GlobalVar
pub const GlobalVar = struct

Fields

Values

File

zig/llvm/ir.zig:1943
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
        pub const GlobalVar = struct {
            pub const ops = [_]AbbrevOp{
                .{ .literal = @backingInt(ModuleBlock.MetadataBlock.Code.GLOBAL_VAR) },
                .{ .literal = 0b101 }, // is distinct | version
                MetadataAbbrev, // scope
                MetadataAbbrev, // name
                MetadataAbbrev, // linkage name
                MetadataAbbrev, // file
                LineAbbrev, // line
                MetadataAbbrev, // type
                .{ .fixed = 1 }, // local
                .{ .literal = 1 }, // defined
                .{ .literal = 0 }, // static data members declaration
                .{ .literal = 0 }, // template params
                .{ .literal = 0 }, // align in bits
                .{ .literal = 0 }, // annotations
            };

            scope: Builder.Metadata.Optional,
            name: Builder.Metadata.String.Optional,
            linkage_name: Builder.Metadata.String.Optional,
            file: Builder.Metadata.Optional,
            line: u32,
            ty: Builder.Metadata.Optional,
            local: bool,
        }