cppcheck

Install command:
brew install cppcheck

Static analysis of C and C++ code

https://sourceforge.net/projects/cppcheck/

License: GPL-3.0-or-later

Formula JSON API: /api/formula/cppcheck.json

Formula code: cppcheck.rb on GitHub

Bottle (binary package) installation support provided for:

Apple Silicon sonoma
ventura
monterey
Intel sonoma
ventura
monterey
64-bit linux

Current versions:

stable 2.14.1
head ⚡️ HEAD

Depends on:

pcre 8.45 Perl compatible regular expressions library
tinyxml2 10.0.0 Improved tinyxml (in memory efficiency and size)

Depends on when building from source:

cmake 3.29.6 Cross-platform make
python@3.12 3.12.4 Interpreted, interactive, object-oriented programming language

Analytics:

Installs (30 days)
cppcheck 1,822
cppcheck --HEAD 7
Installs on Request (30 days)
cppcheck 1,821
cppcheck --HEAD 7
Build Errors (30 days)
cppcheck 0
Installs (90 days)
cppcheck 5,211
cppcheck --HEAD 12
Installs on Request (90 days)
cppcheck 5,205
cppcheck --HEAD 12
Installs (365 days)
cppcheck 18,031
cppcheck --HEAD 25
Installs on Request (365 days)
cppcheck 18,002
cppcheck --HEAD 25
Fork me on GitHub