Note: This is cross-posted from mcuoneclipse.com for clarity on Linux installation steps. I recommend that you read that post instead if you are a windows user.
Why cppcheck [a static code analyzer] ?
Because we hate manual bug hunting in code which could be a nasty experience. Cppcheck helps automate bug hunting in your code and just point you to some changes you may want to make for a more stable firmware/software. I plan to be using this for embedded development, its my main thing right now.
From the documentation introduction part:
Cppcheck is an analysis tool for C/C++ code. Unlike C/C++ compilers and many other analysis tools, it doesn’t detect syntax errors. Cppcheck only detects the types of bugs that the compilers normally fail to detect. The goal is no false positives.
Read the full documentation online