[cfe-dev] Getting started with clang

Paolo Bolzoni bolzoni at cs.unipr.it
Tue Dec 9 06:03:00 PST 2008


After compiling you will have clang's include files in 
llvm/tools/clang/include
and llvm's include files in
llvm/include

To begin see what the clang program itself does checking the files in the
folder llvm/toots/clang/Driver .

We can give some other hints if you tell us what you need to do.

pb

On Tue, 09 Dec 2008 14:25:56 +0100
Simone Pellegrini <spellegrini at dps.uibk.ac.at> 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



More information about the cfe-dev mailing list