[all-commits] [llvm/llvm-project] d1e0fd: Avoid u8"" literals in tests, their type changes i...

jensmassberg via All-commits all-commits at lists.llvm.org
Thu Jan 12 01:22:04 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d1e0fd2b1326ebc6007d47fa0fc86ec129df210b
      https://github.com/llvm/llvm-project/commit/d1e0fd2b1326ebc6007d47fa0fc86ec129df210b
  Author: Jens Massberg <massberg at google.com>
  Date:   2023-01-12 (Thu, 12 Jan 2023)

  Changed paths:
    M llvm/include/llvm/Support/raw_ostream.h
    M llvm/unittests/Support/formatted_raw_ostream_test.cpp

  Log Message:
  -----------
  Avoid u8"" literals in tests, their type changes in C++20

Just specify the encoded bytes instead.
Additionally delete insertion operator of raw_ostream for char8_t as it
doesn't work as users might expect (Numbers and pointers are added to
the stream instead of UTF-8 characters). Added a comment and instructions
on how to use UTF-8 strings with raw_ostream.

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




More information about the All-commits mailing list