[all-commits] [llvm/llvm-project] bdeda9: Make wide multi-character character literals ill-f...
Aaron Ballman via All-commits
all-commits at lists.llvm.org
Fri Aug 20 08:13:09 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: bdeda959abd74c88a6cfc34b10c1b665cb45cb8d
https://github.com/llvm/llvm-project/commit/bdeda959abd74c88a6cfc34b10c1b665cb45cb8d
Author: Corentin Jabot <corentin.jabot at gmail.com>
Date: 2021-08-20 (Fri, 20 Aug 2021)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/include/clang/Basic/DiagnosticLexKinds.td
M clang/lib/Lex/LiteralSupport.cpp
M clang/test/CodeGen/char-literal.c
M clang/test/CodeGen/string-literal-short-wstring.c
M clang/test/Lexer/char-literal.cpp
M clang/test/Lexer/wchar.c
M clang/test/Misc/warning-flags.c
M clang/test/Preprocessor/Weverything_pragma.c
Log Message:
-----------
Make wide multi-character character literals ill-formed
This implements P2362, which has not yet been approved by the
C++ committee, but because wide-multi character literals are
implementation defined, clang might not have to wait for WG21.
This change is also being applied in C mode as the behavior is
implementation-defined in C as well and there's no benefit to
having different rules between the languages.
The other part of P2362, making non-representable character
literals ill-formed, is already implemented by clang
More information about the All-commits
mailing list