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>.

Debian Debian
RUN apt-get update && \ apt-get install -y clang-tools
Ubuntu
RUN apt-get update && \ apt-get install -y clang-3.5
Alpine
RUN apk add clang
Arch Arch Linux
RUN pacman -S --noconfirm clang
image/svg+xml Kali Linux
RUN apt-get update && \ apt-get install -y clang-tools
CentOS
RUN yum install -y clang-analyzer
Fedora
RUN dnf install -y clang-analyzer
Raspbian
RUN apt-get update && \ apt-get install -y clang-3.2
click the source code to copy install scan-build on any operating system with command-not-found.com