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.9
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.24.2 Cross-platform make
python@3.10 3.10.6 Interpreted, interactive, object-oriented programming language

Analytics (macOS):

Installs (30 days)
cppcheck 3,046
Installs on Request (30 days)
cppcheck 3,024
Build Errors (30 days)
cppcheck 0
Installs (90 days)
cppcheck 8,319
Installs on Request (90 days)
cppcheck 8,253
Installs (365 days)
cppcheck 33,179
cppcheck --HEAD 5
Installs on Request (365 days)
cppcheck 32,895
cppcheck --HEAD 5

Analytics (Linux):

Installs (30 days)
cppcheck 142
Installs on Request (30 days)
cppcheck 142
Build Errors (30 days)
cppcheck 0
Installs (90 days)
cppcheck 280
Installs on Request (90 days)
cppcheck 280
Installs (365 days)
cppcheck 668
cppcheck --HEAD 2
Installs on Request (365 days)
cppcheck 670
cppcheck --HEAD 1
Fork me on GitHub