cppcheck
A static analysis tool for C/C++ code. Instead of syntax errors, it focuses on the types of bugs that compilers normally do not detect. More information: <http://cppcheck.sourceforge.net>.
RUN apt-get update && \
apt-get install -y cppcheck
RUN apt-get update && \
apt-get install -y cppcheck
RUN apk add cppcheck
RUN pacman -S --noconfirm cppcheck
RUN apt-get update && \
apt-get install -y cppcheck
RUN dnf install -y cppcheck
RUN apt-get update && \
apt-get install -y cppcheck