[clang] [Clang] Yet more consistent Unicode diagnostics (PR #211002)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 21 07:19:47 PDT 2026


================
@@ -133,20 +133,20 @@ def err_invalid_utf8 : Error<
 def warn_invalid_utf8_in_comment : Extension<
   "invalid UTF-8 in comment">, InGroup<DiagGroup<"invalid-utf8">>;
 def err_character_not_allowed : Error<
-  "unexpected character <U+%0>">;
+  "unexpected character %0">;
----------------
AaronBallman wrote:

What's the reason for removing the `<>` around the code point?

(Just like I think it's helpful to single quote syntactic constructs so it's clear in the message what's code and what's not, this seems like a situation where the delimiter makes things a bit easier to spot at a glance. I don't insist we keep it, just was surprised to see it removed and wondering why.)

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


More information about the cfe-commits mailing list