[clang] Treat escaped newlines as whitespace in Lexer::getRawToken. (PR #117548)

via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 26 00:50:25 PST 2024


cor3ntin wrote:

line splicing does not introduce spaces (https://compiler-explorer.com/z/ohaq6Wzv7).

> If an escaped newline should not be considered whitespace, then instead of this change, getRawToken should be modified to return true when whitespace follows the escaped newline present at Loc

That sounds like a more promising approach. Is that something you would be willing to explore?


https://github.com/llvm/llvm-project/pull/117548


More information about the cfe-commits mailing list