AptLynx

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

Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents