[all-commits] [llvm/llvm-project] 7b159b: [Clang] Defaults `-Wunicode-whitespace` to an erro...
Corentin Jabot via All-commits
all-commits at lists.llvm.org
Tue Jul 21 07:33:37 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7b159b648bc3684da152a3f14b5ee53456736fe9
https://github.com/llvm/llvm-project/commit/7b159b648bc3684da152a3f14b5ee53456736fe9
Author: Corentin Jabot <corentinjabot at gmail.com>
Date: 2026-07-21 (Tue, 21 Jul 2026)
Changed paths:
M clang/docs/ReleaseNotes.md
M clang/include/clang/Basic/DiagnosticLexKinds.td
M clang/lib/Lex/Lexer.cpp
M clang/test/Analysis/mig.mm
M clang/test/Lexer/unicode.c
Log Message:
-----------
[Clang] Defaults `-Wunicode-whitespace` to an error. (#210945)
Clang accepts some Unicode whitespaces in some context. There are a few
issues with this:
- The support is incomplete and inconsistent, as illustrated in #38934
- We are not consistent with the Unicode specs (tr1, tr55) in that we
treat U+0028/0+0029 as horizontal separators while Unicode consider them
vertical.
Ultimately, Unicode whitespaces are more likely than not unintended.
Neither GCC nor MSVC support this extension.
Fixes #38934.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list