Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class DemangledToMangledResult(val map: Map<String, String>, val duplicates: Map<String, List<String>>)

Result of buildDemangledToMangledMap including the lookup map and any detected ambiguities where multiple mangled symbols share the same demangled name.

Link copied to clipboard
data class ExecResult(val exitCode: Int, val output: String)
Link copied to clipboard
class GradleStigProblemReporter(projectPath: String, taskName: String, logger: Logger, problemsFile: File, failAt: ProblemSeverity?, events: StigTaskReporter? = null) : StigArtifactProblemReporter
Link copied to clipboard

Runtime cross-check that every LLVM binary in StigLlvmToolchain is present on PATH and reports the expected LLVM_MAJOR.

Link copied to clipboard
data class ResolvedGeneratedAnalysisTransforms(val config: BitcodeTransformsConfig, val provisionalSymbols: List<String>)
Link copied to clipboard
data class StigAnalysisEndpoint(val name: String = "", val ret: Boolean? = null, val params: List<Int>? = null, val asil: String? = null)
Link copied to clipboard
data class StigAnalysisInputs(val schema: String? = null, val entryPoints: List<String>? = null, val sources: List<StigAnalysisEndpoint>? = null, val sinks: List<StigAnalysisEndpoint>? = null)
Link copied to clipboard

Keeps one consumer checkout's analysis outputs stable across independent Gradle invocations.

Link copied to clipboard

Limits concurrent native analyzer processes across activity projects in one Gradle build.

Link copied to clipboard
abstract class StigBazelExecrootAccessCoordinator : BuildService<BuildServiceParameters.None>

Build-scoped exclusive-access coordinator for tasks that invoke Bazel or read files through its shared execroot. Despite the BuildService superclass name (a Gradle term, not a runtime daemon), this is one object for the duration of a Gradle build. It serves two roles:

Link copied to clipboard
abstract class StigDokkaExecutionCoordinator : BuildService<BuildServiceParameters.None>

Limits active Dokka generators across projects; each generator may use multiple JVM threads.

Link copied to clipboard
Link copied to clipboard
data class StigGitRepositoryStatus(val repository: File, val entries: List<StigGitStatusEntry>)
Link copied to clipboard
data class StigGitStatusEntry(val indexStatus: Char, val workTreeStatus: Char, val path: String, val originalPath: String? = null)
Link copied to clipboard
data class StigIcon(val semanticName: String, val spriteId: String, val unicode: String, val cssColor: String? = null)

Central STIG icon vocabulary.

Link copied to clipboard
abstract class StigModelCheckCoordinator : BuildService<BuildServiceParameters.None>

Serializes loading and wiring of compiled-model sessions within a Gradle build.

Link copied to clipboard

Central icon assignment for every executable Highway metamodel object.

Link copied to clipboard

Model-tree anchors shared by Dokka rendering and finding navigation.

Link copied to clipboard

Shared resolution and HTML rendering for source actions in Dokka model and report content.

Link copied to clipboard

Build-time round-trip check: every StigSpriteIcon entry must resolve to a <symbol id="..."> in the vendored stig-icons.svg. The vendored sprite is generated from pinned Iconify JSON packages by StigIconSpriteGenerator; if the Kotlin side adds an enum value but no one regenerates the sprite, every diagram using that icon would render an empty box. This validator catches the divergence at task-action time instead.

Functions

Link copied to clipboard
fun buildDemangledToMangledMap(execOperations: ExecOperations, mangledSymbols: Collection<String>, cxxfiltBinary: String = StigLlvmToolchain.CXXFILT): DemangledToMangledResult

Builds a reverse lookup map from demangled C++ names to mangled LLVM symbols.

Link copied to clipboard
fun buildSymbolDisplayNames(execOperations: ExecOperations, symbols: List<String>, cxxfiltBinary: String = StigLlvmToolchain.CXXFILT): Map<String, String>
Link copied to clipboard
fun demangleSymbols(execOperations: ExecOperations, symbols: List<String>, cxxfiltBinary: String = StigLlvmToolchain.CXXFILT): Map<String, String>
Link copied to clipboard
fun execAndCapture(execOperations: ExecOperations, command: List<String>, workingDir: File? = null): ExecResult
Link copied to clipboard
fun execToFile(execOperations: ExecOperations, command: List<String>, workingDir: File? = null, outputFile: File): Int
Link copied to clipboard
fun execToFileWithTimeout(command: List<String>, workingDir: File? = null, outputFile: File, timeoutSeconds: Long, onOutputLine: (String) -> Unit? = null, onProcessStarted: (ProcessHandle) -> Unit? = null): Int
Link copied to clipboard
fun firstNonBlank(vararg values: String?): String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun resolveWorkspaceDir(projectLayout: ProjectLayout, path: String): File
Link copied to clipboard
fun sanitizeFileStem(raw: String, fallback: String): String
Link copied to clipboard
fun stripReturnType(demangled: String): String

Strips the return type prefix from a demangled C++ function name. e.g. "RetType* ns::Func<T>(Params)" → "ns::Func<T>(Params)".

Link copied to clipboard
fun verifyLlvmToolMajor(execOperations: ExecOperations, tool: String, expectedMajor: String = StigLlvmToolchain.LLVM_MAJOR)

Runs <tool> --version, parses the first line for an LLVM major- version number (e.g. clang version 18.1.8 → "18"), and throws if the parsed major differs from expectedMajor. The defence-in- depth complement to StigLlvmToolchain: even when every task uses the registry, a misconfigured PATH (clang++-18 symlink pointing at clang-22's binary, version-suffix-stripped install, etc.) can let the wrong major sneak in. This function catches that at task- configuration / pre-exec time, before the offending binary actually produces bitcode.

Link copied to clipboard
fun verifyRequiredSymbolsPresent(inputs: SymbolVerifierInputs, execOperations: ExecOperations, logger: Logger, taskName: String, reporter: GradleStigProblemReporter, events: StigTaskReporter? = null): List<UnresolvedApplicationSymbol>

Adapts Gradle process/logging services to the shared symbol-verification engine.

Link copied to clipboard
fun RegularFileProperty.writeMarker(entries: Map<String, Any>)

Writes a key-value marker file from a map.

fun RegularFileProperty.writeMarker(vararg entries: Pair<String, Any>)

Writes a key-value marker file for Gradle up-to-date checks.