[PATCH] D159345: [Clang] Handle non-ASCII after line splicing
Tom Honermann via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 6 12:48:28 PDT 2023
tahonermann accepted this revision.
tahonermann added a comment.
This revision is now accepted and ready to land.
This looks good to me modulo a couple of nits.
================
Comment at: clang/include/clang/Lex/Lexer.h:806-807
/// Try to consume an identifier character encoded in UTF-8.
/// \param CurPtr Points to the start of the (potential) UTF-8 code unit
/// sequence. On success, updated to point past the end of it.
/// \return \c true if a UTF-8 sequence mapping to an acceptable identifier
----------------
`Tok` should be documented here.
================
Comment at: clang/lib/Lex/Lexer.cpp:1800
+ // calling ConsumeChar ensures the NeedsCleaning flag is set on the token
+ // being lexed, and that warnings about trailing spaces are emmitted.
+ ConsumeChar(CurPtr, FirstCodeUnitSize, Tok);
----------------
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D159345/new/
https://reviews.llvm.org/D159345
More information about the cfe-commits
mailing list