cppcheck
brew install cppcheckStatic analysis of C and C++ code
https://sourceforge.net/projects/cppcheck/
License: GPL-3.0-or-later
Development: Pull requests
Formula JSON API: /api/formula/cppcheck.json
Formula code: cppcheck.rb on GitHub
Bottle (binary package) installation support provided for:
| macOS on Apple Silicon |
golden gate | ✅ |
|---|---|---|
| tahoe | ✅ | |
| sequoia | ✅ | |
| Linux | ARM64 | ✅ |
| x86_64 | ✅ |
Current versions:
| stable | ✅ | 2.22.0 |
| head | ⚡️ | HEAD |
Depends on:
| tinyxml2 | 11.0.0 | Improved tinyxml (in memory efficiency and size) |
Depends on when building from source:
| cmake | 4.5.0 | Cross-platform make |
| python@3.15 | 3.15.2 | Interpreted, interactive, object-oriented programming language |
Uses from macOS: libxml2 (build)
Binaries:
cppcheck,
cppcheck-htmlreport
GitHub Packages downloads:
| Last 30 days | 22,396 |
|---|---|
| Downloads | 1,421,887 |
| Analytics install events (30 days) | 2,741 |
| Downloads / install events (30 days) | 8.2× |
Source: GitHub Packages, fetched 2026-11-15T00:56:10Z. Analytics dates: 2026-10-16 to 2026-11-15. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.
Analytics:
| 30 days | 90 days | 365 days | |
|---|---|---|---|
| Installs | 2,741 | 6,684 | 20,583 |
Installs (--HEAD) | 0 | 4 | 26 |
| Installs on Request | 2,741 | 6,684 | 20,582 |
Installs on Request (--HEAD) | 0 | 4 | 26 |
| Build Errors | 0 |