PVS-Studio is a static analyzer that detects errors in source code of C/C++/C++11 applications.

The PVS-Studio tool is intended for developers of contemporary applications and it integrates into the Visual Studio 2005/2008/2010 environment providing the programmer with a convenient user interface to analyze files, navigate through code and get reference information. You do not need to study documentation and settings preliminarily to work with the analyzer. The analyzer is ready to work right after it is installed.

Examples: http://www.viva64.com/en/a/0077/

Download PVS-Studio: http://www.viva64.com/en/pvs-studio-download/