Yesterday, I was watching “Going Native 2012” conference session. This conference is show what is coming in C++ 11. Speaker include Bjarne Stroustrup, Herb Sutter, Andrei Alexandrescu,
Very good discussion of C++11.
One of the session speaker is guy from Google , talked about new C++ compiler ‘Clang” .It seems this compiler helps to catch programming errors better than GCC.
He was explaining how new compiler can provide static analysis as part of compilation. Very good talk. Lots of examples showing capability of clang compiler to catch programming errors.
Even if we do not want to use clang compiler for our product compilation , we can still try the compiler on code base and see what kind of coding errors it reports.