You can get the Preprocessor object from the CompilerInstance available to the plugin, and make it available to your ASTConsumer instance.<div><br></div><div>See the Preprocessor class for more information on its APIs. Be forewarned that it's APIs aren't really targeted at higher level clients.</div>
<div><div><div><br></div><div> - Daniel<br><br><div class="gmail_quote">On Wed, Aug 18, 2010 at 10:44 AM, Murat B <span dir="ltr"><<a href="mailto:murat8307@yahoo.com">murat8307@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit">Dear all,<br><br>I created a clang plugin which is a class derived from ASTConsumer class. I use that plugin to move functions between files.<br>
I would like to ask if there is a way to access preprocessor macros and includes at this AST level.<br><br>Thanks in advance.<br>Murat<br></td></tr></tbody></table><br>
<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>
<br></blockquote></div><br></div></div></div>