Cppcheck is an static analysis tool for C/C++ code. Unlike C/C++ compilers and many other analysis tools it does not detect syntax errors in the code. Cppcheck primarily detects the types of bugs that the compilers normally do not detect. The goal is to detect only real errors in the code (i.e. have zero false positives).
Download
Download Now! Version 1.51 for Windows
You can download the standalone Cppcheck from our project page or add it as a plugin for your favorite IDE:
- Code::Blocks - integrated
- CodeLite - integrated
- Eclipse - Cppcheclipse
- Hudson - Cppcheck Plugin
- Jenkins - Cppcheck Plugin
There is no plugin for Visual Studio, but it is 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
News
set_feed_url('http://sourceforge.net/export/rss2_projnews.php?group_id=195752'); $feed->set_cache_location('./site/simplepie/cache'); $feed->init(); print("- \n");
foreach ($feed->get_items(0, 3) as $item) { //for the last 3 news items...
print("
- get_link()."\">".$item->get_title()." ".$item->get_date('Y-m-d')." \n"); } print("
Documentation
You can read the manual or download some articles.
Support
- Use Trac to report bugs and feature requests
- Ask questions in the discussion forum or at the IRC channel #cppcheck
- For more details look at the wiki