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

Bottle JSON API: /api/bottle/cppcheck.json

Formula code: cppcheck.rb on GitHub

Bottle (binary package) installation support provided for:

Intel ventura
monterey
big sur
64-bit linux
Apple Silicon ventura
monterey
big sur

Current versions:

stable 2.10
head ⚡️ HEAD

Depends on:

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

Depends on when building from source:

cmake 3.25.2 Cross-platform make
python@3.11 3.11.1 Interpreted, interactive, object-oriented programming language

Analytics (macOS):

Installs (30 days)
cppcheck 1,777
Installs on Request (30 days)
cppcheck 1,769
Build Errors (30 days)
cppcheck 0
Installs (90 days)
cppcheck 7,997
Installs on Request (90 days)
cppcheck 7,935
Installs (365 days)
cppcheck 33,459
cppcheck --HEAD 4
Installs on Request (365 days)
cppcheck 33,187
cppcheck --HEAD 4

Analytics (Linux):

Installs (30 days)
cppcheck 357
Installs on Request (30 days)
cppcheck 357
Build Errors (30 days)
cppcheck 0
Installs (90 days)
cppcheck 531
Installs on Request (90 days)
cppcheck 529
Installs (365 days)
cppcheck 1,205
cppcheck --HEAD 2
Installs on Request (365 days)
cppcheck 1,204
cppcheck --HEAD 1
Fork me on GitHub