[libcxx-commits] [libcxx] [libc++][format] Switches to Unicode 15.1. (PR #86543)

via libcxx-commits libcxx-commits at lists.llvm.org
Mon Mar 25 10:38:38 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff d179176f3e3505044ad14be19ccb3459a70206a9 750ed367fa81e0972ea9f3640d0c70b65bca6f28 -- libcxx/include/__format/indic_conjunct_break_table.h libcxx/include/__format/escaped_output_table.h libcxx/include/__format/unicode.h libcxx/include/__format/width_estimation_table.h libcxx/test/libcxx/utilities/format/format.string/format.string.std/extended_grapheme_cluster.h libcxx/test/libcxx/utilities/format/format.string/format.string.std/extended_grapheme_cluster.pass.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/libcxx/test/libcxx/utilities/format/format.string/format.string.std/extended_grapheme_cluster.h b/libcxx/test/libcxx/utilities/format/format.string/format.string.std/extended_grapheme_cluster.h
index eb7500a828..799baf45bc 100644
--- a/libcxx/test/libcxx/utilities/format/format.string/format.string.std/extended_grapheme_cluster.h
+++ b/libcxx/test/libcxx/utilities/format/format.string/format.string.std/extended_grapheme_cluster.h
@@ -82,8 +82,8 @@ struct data {
 };
 
 /// The data for UTF-8.
-std::array<data<char>, 1187> data_utf8 = {{
-     {"\U00000020\U00000020", {32, 32}, {1, 2}},
+std::array<data<char>, 1187> data_utf8 = {
+    {{"\U00000020\U00000020", {32, 32}, {1, 2}},
      {"\U00000020\U00000308\U00000020", {32, 32}, {3, 4}},
      {"\U00000020\U0000000d", {32, 13}, {1, 2}},
      {"\U00000020\U00000308\U0000000d", {32, 13}, {3, 4}},
@@ -1277,8 +1277,8 @@ std::array<data<char>, 1187> data_utf8 = {{
 /// since the size of the code units differ the breaks can contain different
 /// values.
 #ifndef TEST_HAS_NO_WIDE_CHARACTERS
-std::array<data<wchar_t>, 1187> data_utf16 = {{
-     {L"\U00000020\U00000020", {32, 32}, {1, 2}},
+std::array<data<wchar_t>, 1187> data_utf16 = {
+    {{L"\U00000020\U00000020", {32, 32}, {1, 2}},
      {L"\U00000020\U00000308\U00000020", {32, 32}, {2, 3}},
      {L"\U00000020\U0000000d", {32, 13}, {1, 2}},
      {L"\U00000020\U00000308\U0000000d", {32, 13}, {2, 3}},
@@ -2471,8 +2471,8 @@ std::array<data<wchar_t>, 1187> data_utf16 = {{
 /// Note that most of the data for the UTF-16 and UTF-32 are identical. However
 /// since the size of the code units differ the breaks can contain different
 /// values.
-std::array<data<wchar_t>, 1187> data_utf32 = {{
-     {L"\U00000020\U00000020", {32, 32}, {1, 2}},
+std::array<data<wchar_t>, 1187> data_utf32 = {
+    {{L"\U00000020\U00000020", {32, 32}, {1, 2}},
      {L"\U00000020\U00000308\U00000020", {32, 32}, {2, 3}},
      {L"\U00000020\U0000000d", {32, 13}, {1, 2}},
      {L"\U00000020\U00000308\U0000000d", {32, 13}, {2, 3}},

``````````

</details>


https://github.com/llvm/llvm-project/pull/86543


More information about the libcxx-commits mailing list