[PATCH] D106215: Make wide multi-character character literals ill-formed in C++ mode

Corentin Jabot via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Jul 17 02:37:39 PDT 2021


cor3ntin created this revision.
cor3ntin requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

This implements P2362 <https://reviews.llvm.org/P2362>, which has not het been approved by the
C++ committee, but because wide-multi character literals are
implementation defined, clang might not have to wait for WG21.

While I think this change could be applied to all languages - notably
C, I do not know whether there would be breakage from it.

The other part of P2362 <https://reviews.llvm.org/P2362>, making non-representable character
literals ill-formed, is already implemented by clang


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D106215

Files:
  clang/include/clang/Basic/DiagnosticLexKinds.td
  clang/lib/Lex/LiteralSupport.cpp
  clang/test/CodeGen/char-literal.c
  clang/test/CodeGen/string-literal-short-wstring.c
  clang/test/Lexer/char-literal.cpp
  clang/test/Preprocessor/Weverything_pragma.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106215.359551.patch
Type: text/x-patch
Size: 7322 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210717/4cb47d89/attachment.bin>


More information about the cfe-commits mailing list