Command-line tool
cppcheck
brew/cppcheck
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Static analysis of C and C++ code code analysis cpp admin c++ check static
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
winget install --id Cppcheck.Cppcheck -e scoop install cppcheck
macOS
brew install cppcheck
Linux
brew install cppcheck
Recursively check the current directory, showing progress on the screen and logging error messages to a file
cppcheck . 2> cppcheck.log
Recursively check a given directory, and don't print progress messages
cppcheck -q path/to/directory
Check a given file, specifying which tests to perform (by default only errors are shown)
cppcheck --enable error path/to/file.cpp
Related command-line tools
- datadog-static-analyzer
Static analysis tool for code quality and security - detekt
Static code analysis for Kotlin - sparse
Static C code analysis tool - credo
Static code analysis tool for the Elixir - tfsec
Static analysis security scanner for your terraform code - luacheck
Tool for linting and static analysis of Lua code - htmlhint
Static code analysis tool you need for your HTML - cfsec
A static analysis security scanner for CloudFormation code
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents