[cfe-dev] Value (text) of a token

Cédric Venet cedric.venet at laposte.net
Fri Nov 14 08:20:21 PST 2008


Andrew Sutton a écrit :
> Is there any way to get the text of a token, regardless of its kind? 
> Like '>' or '=', or 'Foo' if Foo is an identifier.
> 
> Andrew Sutton
> andrew.n.sutton at gmail.com <mailto:andrew.n.sutton at gmail.com>
> 

I think you need:
Preprocesseur::getSpelling or SourceManager::getCharacterData

-- 
Cédric



More information about the cfe-dev mailing list