[libcxx-commits] [clang] [libcxx] [llvm] [Clang] Add warnings when mixing different charN_t types (PR #138708)
Tom Honermann via libcxx-commits
libcxx-commits at lists.llvm.org
Thu May 8 13:37:01 PDT 2025
================
@@ -111,6 +111,7 @@ def EnumConversion : DiagGroup<"enum-conversion",
ImplicitEnumEnumCast,
EnumFloatConversion,
EnumCompareConditional]>;
+def ImplicitUnicodeConversion : DiagGroup<"implicit-unicode-conversion">;
----------------
tahonermann wrote:
I'd like to suggest "suspicious-character-comparison" or "suspicious-character-conversion" as the name of the diagnostic group. "implicit" doesn't provide any differentiation here since such mixed type comparisons necessarily involve an implicit conversion. These warnings seem applicable to the non-Unicode character types too, so I'd like to see "unicode" removed even if warnings won't be issued for those types in the near term.
https://github.com/llvm/llvm-project/pull/138708
More information about the libcxx-commits
mailing list