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 monterey
big sur
catalina
64-bit linux
Apple Silicon monterey
big sur

Current versions:

stable 2.7.5
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.23.1 Cross-platform make
python@3.10 3.10.4 Interpreted, interactive, object-oriented programming language

Analytics (macOS):

Installs (30 days)
cppcheck 2,898
Installs on Request (30 days)
cppcheck 2,874
Build Errors (30 days)
cppcheck 1
Installs (90 days)
cppcheck 8,510
Installs on Request (90 days)
cppcheck 8,446
Installs (365 days)
cppcheck 27,994
cppcheck --HEAD 8
Installs on Request (365 days)
cppcheck 27,759
cppcheck --HEAD 8

Analytics (Linux):

Installs (30 days)
cppcheck 45
Installs on Request (30 days)
cppcheck 46
Build Errors (30 days)
cppcheck 0
Installs (90 days)
cppcheck 145
Installs on Request (90 days)
cppcheck 146
Installs (365 days)
cppcheck 398
cppcheck --HEAD 2
Installs on Request (365 days)
cppcheck 399
cppcheck --HEAD 1
Fork me on GitHub