[cfe-dev] Hacking advice

David Chisnall csdavec at swan.ac.uk
Sat Nov 6 08:33:22 PDT 2010


On 5 Nov 2010, at 21:16, Jeff Kunkel wrote:

> I need to gather or visit the classes, methods, and functions defined within a give clang compiler instance. Is there a simple interface to accomplish this?

This depends on what you wish to accomplish.  The simplest interface is via libclang, but it doesn't expose all of the details of the AST.  Alternatively, you can use the AST visitor or consumer interfaces.  The best approach depends on the level of detail that you need.

David




More information about the cfe-dev mailing list