Cppcheck is an analysis software for C/C++ code. Unlike C/C++ compilers and many other analysis tools, we 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.
We recommend that you enable as many warnings as possible in your compiler.
If you use Visual C++: you should use warning level 4.
If you use GCC: take a look at Warning options - using GCC
If you use another compiler: look in the manual.
Supported platforms:
* You can check non-standard code that includes various compiler extensions, inline assembly code, etc.
* Cppcheck is supposed to be compilable by any C++ compiler which handles the latest C++ standard.
* Cppcheck is supposed to work on any platform that has sufficient cpu and memory.
Accuracy
Cppcheck is far from finished, it is continuosly improved to make it more accurate.
Cppcheck is rarely wrong about reported errors. But there are many bugs that it doesn't detect.
You will find more bugs in your software by testing your software carefully, than by using Cppcheck.
You will find more bugs in your software by instrumenting your software (with for example valgrind), than by using Cppcheck.
It is unlikely that you will find all the bugs in your software through testing and instrumenting. Cppcheck can detect some of the bugs that you have missed.
Product's homepage