
Using several static analysis tools can be a good idea. Unique code analysis that detect various kinds of bugs in your code.īoth command line interface and graphical user interface are available.Ĭppcheck has a strong focus on detecting undefined behaviour. Debian: sudo apt-get install cppcheck Fedora: sudo yum install cppcheck Mac: brew install cppcheck Features Download Cppcheck 2.12 (open source) PlatformĬppcheck can also be installed from various package managers however, you might get an outdated version then. Please visit for more information and purchase options for the commercial version. The goal is to have very few false positives.Ĭppcheck is designed to be able to analyze your C/C++ code even if it has non-standard syntax (common in embedded projects).Ĭppcheck is available both as open-source (this page) and as Cppcheck Premium with extended functionality and support. It provides unique code analysis to detect bugs and focuses on detecting undefined behaviour andĭangerous coding constructs.
