Cppcheck is a static analysis tool for C/C++ code. It provides unique code analysis to detect bugs and focuses on detecting undefined behaviour and dangerous coding constructs. The goal is to have very few false positives. Cppcheck is designed to be able to analyze your C/C++ code even if it has non-standard syntax (common in embedded projects).
Cppcheck is available both as open-source (this page) and as Cppcheck Premium with extended functionality and support. Please visit www.cppchecksolutions.com for more information and purchase options for the commercial version.
Download
Cppcheck 2.10 (open source)
Platform | File |
---|---|
Windows 64-bit (No XP support) | Installer |
Source code (.zip) | Archive |
Source code (.tar.gz) | Archive |
Packages
Cppcheck can also be installed from various package managers; however, you might get an outdated version then.
Debian:
sudo apt-get install cppcheck
Fedora:
sudo yum install cppcheck
Mac:
brew install cppcheck