A static code analyzer tool for Clang that uses compilation databases (compile_commands.json). Version 3.0.0 is the latest, requiring Python >=3.10 and dropping support for 3.6-3.9. The package is maintained with modern tooling (hatchling, ruff, pytest).
pip install scan-buildVerified import paths — ran on the pinned version, not inferred.
Basic usage: specify a compilation database and run analysis.
Upgrade Python to 3.10 or later, and update scan-build to 3.0.0.
Use the Python API from scan_build module instead of CLI.
Use 'from scan_build import ...'
Generate compile_commands.json using tools like bear or CMake with -DCMAKE_EXPORT_COMPILE_COMMANDS=ON.
No dependency data recorded yet.