[cfe-dev] Keeping tokens in memory.

Chris Lattner clattner at apple.com
Sat Feb 28 10:45:37 PST 2009


On Feb 28, 2009, at 7:41 AM, Paolo Bolzoni wrote:

>
> I need to keep all the raw tokens representing a file in memory.
> But I could not understand where clang memorizes spelling and flags.
> Just filling a vector of clang::Token does not work, this is what I  
> am doing
> (scrap):

This should work fine.  The spelling is handled by the source location  
in the token.  Without real code and a better description of what  
"doesn't work", it is hard to give you a better answer.

-Chris




More information about the cfe-dev mailing list