stubSourceFiles
Source files containing stub definitions to compile alongside the element's source files, providing symbol definitions for functions outside analysis scope.
Each entry must be an absolute path to a .cpp file. The pipeline synthesizes compile-command entries for them by cloning flags from the element's first seed file (the "donor" entry from the Bazel compdb).
Inheritance: uses replacement semantics at each level.
stubs {
enabled = true
iQuotePath(repos["stig-project"].rootDir.resolve("stubs/include").absolutePath)
stubSource(
repos["stig-project"] / "stubs/src/analysis_stubs.cpp",
)
}Content copied to clipboard