[cfe-dev] Getting started with clang

Simone Pellegrini spellegrini at dps.uibk.ac.at
Tue Dec 9 05:25:56 PST 2008


Hello everyone,
I am quite impressed about the clang project but I have problems in 
getting started with it. Actually I want to use clang as a component, 
thus embed the parser, static analyzer and rewriting mechanism into 
another program.

I can't find any examples about that, at the moment I can run the clang 
parser from the command line but it's not what I really need! :) I don't 
even know which are the header files I should include in my project. 
Could you please give me a pointer to something (even an header file 
should be great) where I can start? How can I build the AST starting 
from a source file?

thanks in advance for the help!
best regards,

Simone Pellegrini



More information about the cfe-dev mailing list