[cfe-dev] Relexing more than one tokens
Abramo Bagnara
abramobagnara at tin.it
Mon Jul 6 04:59:00 PDT 2009
Once obtained a SourceLocation (or a SourceRange) we'd like to relex the
preprocessed stream to check for the presence of some tokens.
An example of use would be to check if the int type in an AST
declaration was written with "signed" or not.
We are able to relex a single token from a given SourceLocation, but we
haven't found a way to use a SourceRange to relex all the tokens
included in the range.
Is there a way?
Do you have hints for alternative way to accomplish the same aim?
More information about the cfe-dev
mailing list