macOS
brew install cppchecklocal Homebrew formula metadata
sudo port install cppcheckMacPorts ports tree · devel/cppcheck/Portfile · source: api.github.com
brew
Static analysis of C and C++ code. Version 2.21.0 via Homebrew; verified 2026-07-05.
install
brew install cppchecklocal Homebrew formula metadata
sudo port install cppcheckMacPorts ports tree · devel/cppcheck/Portfile · source: api.github.com
sudo apk add cppcheckAlpine Linux edge package indexes · cppcheck · source: dl-cdn.alpinelinux.org
sudo apt install cppcheckDebian stable package indexes · cppcheck · source: deb.debian.org
sudo dnf install cppcheckFedora Rawhide package metadata · cppcheck · source: dl.fedoraproject.org
nix profile install nixpkgs#cppchecknixpkgs package indexes · pkgs/by-name/cp/cppcheck/package.nix · source: api.github.com
sudo pacman -S cppcheckArch Linux sync databases · cppcheck · source: geo.mirror.pkgbuild.com
sudo zypper install cppcheckopenSUSE Tumbleweed package metadata · cppcheck · source: download.opensuse.org
choco install cppcheckChocolatey community package catalog · cppcheck · source: community.chocolatey.org
scoop install main/cppcheckScoop official bucket manifest trees · bucket/cppcheck.json · source: api.github.com
winget install --id Cppcheck.Cppcheck -eWindows Package Manager source index · Cppcheck.Cppcheck · source: cdn.winget.microsoft.com
overview
Static analysis of C and C++ code
history
Cppcheck is an open-source static analysis tool for C and C++ code. It focuses on bugs that compilers commonly miss, especially undefined behavior and dangerous constructs, while trying to keep false positives low.
The upstream README notes that the original name was C++check and was later changed to Cppcheck. It also says that despite the name, Cppcheck is designed for both C and C++.
The GitHub repository was created in March 2009. The README states that the repository moved from danmar/cppcheck to cppcheck-opensource/cppcheck, and the official website now links current source downloads to the cppcheck-opensource GitHub releases.
Cppcheck has kept both command-line and graphical user interfaces. Upstream build documentation covers CMake, Visual Studio, Qt Creator, GNU make, MinGW, and cross-compiling, which explains why it appears in many OS package ecosystems.
The supplied package facts list Cppcheck across Homebrew, MacPorts, Debian, Ubuntu, Fedora/dnf, Alpine/apk, Arch/pacman, Nix, openSUSE/zypper, Chocolatey, Scoop, winget, and more. Upstream's README also explicitly points users to Homebrew, MacPorts, Conda, Conan, and other distribution channels, while warning that third-party packages may lag releases.
The official website lists integrations with development tools such as Buildbot, CLion, Code::Blocks, CodeLite, Eclipse, and others. That integration footprint is part of why Cppcheck is common in CI and editor workflows.
Cppcheck is used from the command line and GUI to analyze C/C++ projects for memory issues, out-of-bounds access, uninitialized variables, null dereferences, invalid shifts, integer overflows, and other undefined behavior. Upstream also documents addon, rules, and platform data files as part of packaged installs.
Cppcheck is package-significant because static analyzers are often installed as developer tools rather than vendored into one project. Packagers need to track release cadence, optional PCRE/rules support, GUI builds, data-file install paths, and the upstream repository move while preserving a stable cppcheck command for CI.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
cppcheck | cli | global executable | |
cppcheck-htmlreport | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/cppcheck-opensource/cppcheck
install metadata
| Package key | brew:cppcheck |
|---|---|
| Version | 2.21.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/cppcheck |
| Homepage | https://sourceforge.net/projects/cppcheck/ |
| Repository | https://github.com/cppcheck-opensource/cppcheck |
| Upstream docs | https://cppcheck.sourceforge.io/ |
| License | GPL-3.0-or-later |
| Source archive | https://github.com/cppcheck-opensource/cppcheck/archive/refs/tags/2.21.0.tar.gz |
| Last updated | 2026-07-05T00:14:30+09:00 |
| Pulse | updated |
| Dependencies | tinyxml2 |
| Build dependencies | cmake, python@3.14 |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | cppcheck |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
cppcheck 2.17.1-2
tool for static C/C++ code analysis (CLI)
https://sourceforge.net/p/cppcheck/wiki/Home/
sudo apt install cppcheckcppcheck-gui 2.17.1-2
tool for static C/C++ code analysis (GUI)
https://sourceforge.net/p/cppcheck/wiki/Home/
sudo apt install cppcheck-guicppcheck
nix profile install nixpkgs#cppcheckcppcheck 2.13.0-2ubuntu3
tool for static C/C++ code analysis (CLI)
https://sourceforge.net/p/cppcheck/wiki/Home/
sudo apt install cppcheckcppcheck-gui 2.13.0-2ubuntu3
tool for static C/C++ code analysis (GUI)
https://sourceforge.net/p/cppcheck/wiki/Home/
sudo apt install cppcheck-guicppcheck 2.21.0-r0
Static analysis tool for C/C++ code
https://cppcheck.sourceforge.io/
sudo apk add cppcheckcppcheck-doc 2.21.0-r0
Static analysis tool for C/C++ code (documentation)
https://cppcheck.sourceforge.io/
sudo apk add cppcheck-doccppcheck-gui 2.21.0-r0
Qt gui for cppcheck
https://cppcheck.sourceforge.io/
sudo apk add cppcheck-guicppcheck-htmlreport 2.21.0-r0
Utility to generate a html report of a XML file produced by cppcheck
https://cppcheck.sourceforge.io/
sudo apk add cppcheck-htmlreportcppcheck 2.21.0-1.fc45
Tool for static C/C++ code analysis
http://cppcheck.sourceforge.io/
sudo dnf install cppcheckcppcheck-gui 2.21.0-1.fc45
Graphical user interface for cppcheck
http://cppcheck.sourceforge.io/
sudo dnf install cppcheck-guicppcheck-htmlreport 2.21.0-1.fc45
HTML reporting for cppcheck
http://cppcheck.sourceforge.io/
sudo dnf install cppcheck-htmlreportcppcheck 2.21.0-1
A tool for static C/C++ code analysis
http://cppcheck.sourceforge.net/
sudo pacman -S cppcheckcppcheck 2.21.0-1.1
A tool for static C/C++ code analysis
https://github.com/cppcheck-opensource/cppcheck
sudo zypper install cppcheckcppcheck-gui 2.21.0-1.1
A tool for static C/C++ code analysis
https://github.com/cppcheck-opensource/cppcheck
sudo zypper install cppcheck-guicppcheck
sudo port install cppchecksource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.