[cfe-dev] Getting started with clang

steve naroff snaroff at apple.com
Tue Dec 9 06:09:57 PST 2008


Hi Simone,

I would suggest you look at "ASTConsumers" in the Driver subproject  
and "ParseAST" in lib/Sema.

snaroff

On Dec 9, 2008, at 8:25 AM, Simone Pellegrini wrote:

> 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
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev




More information about the cfe-dev mailing list