Re: [PATCH] Fix up preprocessing of raw-string literals

2013-07-09 Thread Jason Merrill
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

[PATCH] Fix up preprocessing of raw-string literals

2013-07-05 Thread Jakub Jelinek
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