[cfe-dev] Ignore certain macros during AST generation
Ramesh J via cfe-dev
cfe-dev at lists.llvm.org
Mon Jul 3 23:50:40 PDT 2017
Hi,
I using the RecursiveASTVisitor class to parse C programs.
The programs contain certain compiler specific macros like using, eg, asm,
interrupt, __a0 and so on.
Is there a compiler option in clang to ignore this Marocs?
Or this there a way to do the same using libtooling interface?
Note: QAC/ QAC++ offers option to redefine the macro with values like
_ignore to remove it's effect during parsing
References Link:
1. http://johnnygreen.biz/QACpp_Component_Manual.pdf#Ignoring tokens and
keywords
2. http://products.programmingresearch.com/Docs/Getting_Started_2.0.pdf
Section-6.2
Thank you in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170704/3a1b4829/attachment.html>
More information about the cfe-dev
mailing list