Scientific Toolsworks (www.scitools.com) makes a product called Understand 4 C++ that is a source code analyzer. They provide a C API, which I have taken an wrapped in a C++/CLI wrapper. The Understand API basically lets you do reflection over native code.