[all-commits] [llvm/llvm-project] d0d277: [Clang] Implement P2513

cor3ntin via All-commits all-commits at lists.llvm.org
Mon Oct 24 09:10:56 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d0d2772379bd89f1dce3c456520272678cf4b966
      https://github.com/llvm/llvm-project/commit/d0d2772379bd89f1dce3c456520272678cf4b966
  Author: Corentin Jabot <corentinjabot at gmail.com>
  Date:   2022-10-24 (Mon, 24 Oct 2022)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Frontend/InitPreprocessor.cpp
    M clang/lib/Sema/SemaInit.cpp
    M clang/test/Lexer/cxx-features.cpp
    M clang/test/SemaCXX/char8_t.cpp
    M clang/test/SemaCXX/cxx2a-compat.cpp
    M clang/www/cxx_status.html

  Log Message:
  -----------
  [Clang] Implement P2513

Implement P2513

This change allows initializing an array of unsigned char,
or char from u8 string literals.
This was done both to support legacy code and for compatibility
with C where char8_t will be typedef to unsigned char.

This is backported to C++20 as per WG21 guidance.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D136449




More information about the All-commits mailing list