[PATCH] D115938: [clang-format] Formatter does not handle c++11 string literal prefix with stringize #

Marek Kurdej via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 17 06:28:25 PST 2021


curdeius added a comment.

When at it, should we also take care of `LR"(string)"`, `uR...`, `u8R` and `UR`? Cf. https://en.cppreference.com/w/cpp/language/string_literal
>From MS doc:

  // Raw string literals containing unescaped \ and "
  auto R0 =   R"("Hello \ world")"; // const char*
  auto R1 = u8R"("Hello \ world")"; // const char* before C++20, encoded as UTF-8,
                                    // const char8_t* in C++20
  auto R2 =  LR"("Hello \ world")"; // const wchar_t*
  auto R3 =  uR"("Hello \ world")"; // const char16_t*, encoded as UTF-16
  auto R4 =  UR"("Hello \ world")"; // const char32_t*, encoded as UTF-32


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D115938/new/

https://reviews.llvm.org/D115938



More information about the cfe-commits mailing list