Recently I've discovered this cool static analysis tool called CppCheck. (http://cppcheck.sourceforge.net/#features)
And yesterday I've seen at the kdeplanet that it is finally added to KDevelop too (KDE's IDE)
Cppcheck is a static analysis tool for C/C++ code. It provides unique code analysis to detect bugs and focuses on detecting undefined behaviour and dangerous coding constructs. The goal is to detect only real errors in the code (i.e. have very few false positives).
It is very easy to deploy, and AFAIK, can be integrated well with TheIdE. (Its command line is very simple, and configurations & templates are already available, and very flexible (also in XML format)).
I believe this would be a good addition to TheIDE as a plugin/external app (such as gdb).