[cfe-dev] Modifying Token Stream
Daniel Dilts
diltsman at gmail.com
Thu Aug 6 14:23:57 PDT 2015
I am attempting to write a FrontendAction that modifies certain tokens
before passing them on to be parsed.
Particularly I want to replace an identifier followed by a comment with
particular content with a string literal.
Does anyone know of an example where something similar is done? I find
plenty of documentation on writing FrontendActions that deal with the AST,
but I am not finding much documentation on dealing with tokens before
generating an AST.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150806/ad18bf9c/attachment.html>
More information about the cfe-dev
mailing list