On 07/05/2013 11:22 AM, Jakub Jelinek wrote:
- if (token->type == CPP_COMMENT)
+ if (cpp_token_val_index (token) == CPP_TOKEN_FLD_STR)
This could use a comment explaining why checking for CPP_TOKEN_FLD_STR
does what you want. OK with that change.
Jason
Hi!
I've noticed that if we preprocess source with multi-line raw-string
literals (or -save-temps compile), the lines can be off if the multi-line
raw-string literal contains just a few lines (under the threshold to emit
#line directive); we already have a function for that for CPP_COMMENT
tokens