[cfe-dev] How to modify the TokenStream?
Douglas Gregor
dgregor at apple.com
Sat Dec 3 13:36:11 PST 2011
On Nov 20, 2011, at 3:56 PM, bc3527 wrote:
> I'm trying to add some tokens to the Token Stream. Any help on how to access
> and edit the token stream would be appreciated.
The token stream is generated on-the-fly and processed, but is never stored in a form that would let you edit it directly. I guess you could lex all of the tokens you care about, edit them, and then programmatically insert your modified token stream with Preprocessor::EnterTokenStream.
- Doug
More information about the cfe-dev
mailing list