Avoid u8"" literals in tests, their type changes in C++20
authorJens Massberg <massberg@google.com>
Tue, 10 Jan 2023 16:12:49 +0000 (17:12 +0100)
committerJens Massberg <massberg@google.com>
Thu, 12 Jan 2023 09:21:33 +0000 (10:21 +0100)
commitd1e0fd2b1326ebc6007d47fa0fc86ec129df210b
tree29239234f894b93635535be07ca0b51dc8e35fb7
parent27944bbbe7ade95ed38b147583fe6392d8d19f5c
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
llvm/include/llvm/Support/raw_ostream.h
llvm/unittests/Support/formatted_raw_ostream_test.cpp