<div dir="auto"><div><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Hi, <div dir="auto"><br></div><div dir="auto">I using the RecursiveASTVisitor class to parse C programs.</div><div dir="auto"><br></div><div dir="auto">The programs contain certain compiler specific macros like using, eg, asm, interrupt, __a0 and so on.</div><div dir="auto">Is there a compiler option in clang to ignore this Marocs? </div><div dir="auto">Or this there a way to do the same using libtooling interface?</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">Note: QAC/ QAC++ offers option to redefine the macro with values like _ignore to remove it's effect during parsing</div><div dir="auto"><br></div><div dir="auto">References Link:</div><div dir="auto">1. <a href="http://johnnygreen.biz/QACpp_Component_Manual.pdf#Ignoring" target="_blank">http://johnnygreen.biz/QACpp_<wbr>Component_Manual.pdf#Ignoring</a> tokens and keywords</div><div dir="auto"><br></div><div dir="auto">2. <a href="http://products.programmingresearch.com/Docs/Getting_Started_2.0.pdf" target="_blank">http://products.<wbr>programmingresearch.com/Docs/<wbr>Getting_Started_2.0.pdf</a></div><div dir="auto"> Section-6.2</div><div dir="auto"><br></div><div dir="auto">Thank you in advance.</div></div>
</blockquote></div><br></div></div>