[PATCH] D130416: [Clang] Add support for Unicode identifiers (UAX31) in C2x mode.

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Jul 23 04:53:52 PDT 2022


aaron.ballman accepted this revision.
aaron.ballman added a comment.
This revision is now accepted and ready to land.

LGTM aside from a typo fix in a comment. One thing worth thinking about is whether it would be worth it to have a diagnostic for valid C code in older modes that will change behavior in C2x due to this feature, but that can be done as follow-up work.



================
Comment at: clang/lib/Lex/Lexer.cpp:1469
     // so we need to check both tables.
-    // '_' doesn't have the XID_Continue property but is allowed in C++.
+    // '_' doesn't have the XID_Continue property but is allowed in C an C++.
     static const llvm::sys::UnicodeCharSet XIDStartChars(XIDStartRanges);
----------------



Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D130416/new/

https://reviews.llvm.org/D130416



More information about the cfe-commits mailing list