scan-build
Command-line utility to run a static analyzer over a codebase as part of performing a regular build. More information: <https://clang-analyzer.llvm.org/scan-build.html>.
Install
- All systems
-
curl cmd.cat/scan-build.sh
- Debian
-
apt-get install clang-tools - Ubuntu
-
apt-get install clang-3.5 -
Alpine
-
apk add clang - Arch Linux
-
pacman -S clang - Kali Linux
-
apt-get install clang-tools - CentOS
-
yum install clang-analyzer - Fedora
-
dnf install clang-analyzer - Windows (WSL2)
-
sudo apt-get updatesudo apt-get install clang-3.5 - Raspbian
-
apt-get install clang-3.2 - Docker
-
docker run cmd.cat/scan-build scan-buildpowered by Commando
Command-line utility to run a static analyzer over a codebase as part of performing a regular build. 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
© tl;dr; authors and contributors