Cppcheck is an analysis tool for C/C++ code. Unlike C/C++ compilers and many other analysis tools, it don't detect syntax errors. Cppcheck only detects the types of bugs that the compilers normally fail to detect. The goal is no false positives.
Download
You can download the standalone tool from our project page or try it as plugin for your favorite IDE:
- Code::Blocks - integrated
- CodeLite - integrated
- Eclipse - Cppcheclipse
- Hudson - Cppcheck Plugin
No plugin exists for Visual Studio, but it's possible to add Cppcheck as an external tool.
Features
- Out of bounds checking
- Check the code for each class
- Checking exception safety
- Memory leaks checking
- Warn if obsolete functions are used
- Check for invalid usage of STL
- Check for uninitialized variables and unused functions