Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Runs Clang static analysis and GC-rooting checks on Julia's C/C++ runtime and codegen.
23% 95%+73 ptsof test cases passed
Passed 21 of 22 test cases with the skill, and 5 of 22 without it.
3 of 3 safety checks passed
378 agent runs
7 forksA fork is a copy of this skill that someone made so they could edit it for their own use. The original doesn't change.
Use this after you modify a runtime/codegen C/C++ source file under src/ (not
headers). Note that runtime changes also require a rebuild (make -j).
Run static analysis checks:
make -C src install-analysis-deps to initialize dependencies (only
needed once the first time, or after the LLVM/Clang toolchain dependencies
change). This may download and install LLVM/Clang artifacts.src/jloptions.c or src/codegen.cpp, use the file
stem without the .c/.cpp extension:
make -C src analyze-<file-stem> -j8 [--output-sync]
For example, to analyze src/jloptions.c, run:
make -C src analyze-jloptions -j8
Add --output-sync when your make supports it to keep parallel output
grouped; otherwise omit it.clang-sa-<file-stem>,
clang-sagc-<file-stem>, clang-safety-<file-stem> or
clang-tidy-<file-stem>.If clang-sagc-<file-stem> fails, first look for fixes that establish real
rooting, such as adding appropriate JL_GC_PUSH/JL_GC_POP scopes, or for
lock/control-flow fixes.
Do not add JL_GC_PROMISE_ROOTED without explicit user or maintainer
confirmation. JL_GC_PROMISE_ROOTED asserts that a value is already rooted; it
does not root the value. If it appears necessary, stop and ask for confirmation,
showing the exact expression, the existing root that makes it safe, and the
safepoints considered.
Next to this one in the catalogue, plus more from the same author.