<br>I am basically 10 days ahead of you. I have modified the tutorial files from <a href="http://amnoid.de">amnoid.de</a>.<br>You can also go through Steve Naroff presentations at Clang website. if you are looking into AST traversal you have to look into ASTConsumers especially the ASTdumper is a good example. If you are looking for rewriting you can look at the ObjC rewriter. <br>
You can use the file that Eli sent or modify clang-cc top level to act as your top level.<br>Clang relies on llvm command line interface to parse command line arguments. which you can easily extend to parse your specific switches.<br>
<br>The doxygen documentation will be useful as you go on.<br><br>Have fun.<br><br>Moataz<br><br><div class="gmail_quote">On Wed, May 20, 2009 at 9:41 AM, Simone Pellegrini <span dir="ltr"><<a href="mailto:spellegrini@dps.uibk.ac.at">spellegrini@dps.uibk.ac.at</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi everyone,<br>
is there any clang tutorial which explain how to embed the parser into<br>
another C/C++ program?<br>
<br>
I started with this: <a href="http://amnoid.de/tmp/clangtut/tut.html" target="_blank">http://amnoid.de/tmp/clangtut/tut.html</a><br>
<br>
but with the new build of Clang my program doesn't work anymore because<br>
it cannot no longer parse some headers! </blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
I guess the best option is to have a look to clang-cc.cpp but it's<br>
rather huge, is there any stripped version?<br>
<br>
thanks, Simone<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br>