2025-03-14 21:59:59 -06:00
|
|
|
# scan-build
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
> Run a static analyzer over a codebase as part of performing a regular build.
|
2025-03-14 21:59:59 -06:00
|
|
|
> More information: <https://clang-analyzer.llvm.org/scan-build.html>.
|
|
|
|
|
|
|
|
|
|
- Build and analyze the project in the current directory:
|
|
|
|
|
|
|
|
|
|
`scan-build {{make}}`
|
|
|
|
|
|
|
|
|
|
- Run a command and pass all subsequent options to it:
|
|
|
|
|
|
|
|
|
|
`scan-build {{command}} {{command_arguments}}`
|
|
|
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
|
|
|
|
`scan-build`
|