DoxigAlpha

create

Function parameters

Parameters

#
owner:*std.Build
source:std.Build.LazyPath
obj_format:std.Target.ObjectFormat

Functions in this namespace

Functions

#
checkExact
Adds an exact match phrase to the latest created Check.
checkExactPath
Like `checkExact()` but takes an additional argument `LazyPath` which will be
checkContains
Adds a fuzzy match phrase to the latest created Check.
checkContainsPath
Like `checkContains()` but takes an additional argument `lazy_path` which will be
checkExtract
Adds an exact match phrase with variable extractor to the latest created Check.
checkExtractLazyPath
Like `checkExtract()` but takes an additional argument `LazyPath` which will be
checkNotPresent
Adds another searched phrase to the latest created Check
checkNotPresentLazyPath
Like `checkExtract()` but takes an additional argument `LazyPath` which will be
checkInHeaders
Creates a new check checking in the file headers (section, program headers, etc.).
checkInSymtab
Creates a new check checking specifically symbol table parsed and dumped from the object
checkInDyldRebase
Creates a new check checking specifically dyld rebase opcodes contents parsed and dumped
checkInDyldBind
Creates a new check checking specifically dyld bind opcodes contents parsed and dumped
checkInDyldWeakBind
Creates a new check checking specifically dyld weak bind opcodes contents parsed and dumped
checkInDyldLazyBind
Creates a new check checking specifically dyld lazy bind opcodes contents parsed and dumped
checkInExports
Creates a new check checking specifically exports info contents parsed and dumped
checkInIndirectSymtab
Creates a new check checking specifically indirect symbol table parsed and dumped
checkInDynamicSymtab
Creates a new check checking specifically dynamic symbol table parsed and dumped from the object
checkInDynamicSection
Creates a new check checking specifically dynamic section parsed and dumped from the object
checkInArchiveSymtab
Creates a new check checking specifically symbol table parsed and dumped from the archive
checkComputeCompare
Creates a new standalone, singular check which allows running simple binary operations

= .check_object

Values

#
base_id
= .check_object

Source

Implementation

#
pub fn create(
    owner: *std.Build,
    source: std.Build.LazyPath,
    obj_format: std.Target.ObjectFormat,
) *CheckObject {
    const gpa = owner.allocator;
    const check_object = gpa.create(CheckObject) catch @panic("OOM");
    check_object.* = .{
        .step = .init(.{
            .id = base_id,
            .name = "CheckObject",
            .owner = owner,
            .makeFn = make,
        }),
        .source = source.dupe(owner),
        .checks = std.array_list.Managed(Check).init(gpa),
        .obj_format = obj_format,
    };
    check_object.source.addStepDependencies(&check_object.step);
    return check_object;
}