[libcxx-commits] [libcxx] [llvm] Finish supporting Unicode 18 (PR #199111)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jun 22 23:59:11 PDT 2026
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 origin/main HEAD --extensions cpp,h -- libcxx/include/__format/escaped_output_table.h libcxx/include/__format/extended_grapheme_cluster_table.h libcxx/include/__format/indic_conjunct_break_table.h libcxx/include/__format/unicode.h libcxx/include/__format/width_estimation_table.h libcxx/test/libcxx/utilities/format/format.string/format.string.std/escaped_output.pass.cpp 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 llvm/lib/Support/UnicodeCaseFold.cpp llvm/utils/UnicodeData/UnicodeNameMappingGenerator.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</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 90e5de6a3..081e19f77 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
@@ -84,8 +84,8 @@ struct data {
};
/// The data for UTF-8.
-std::array<data<char>, 853> data_utf8 = {{
- {"\U0000000d\U0000000d"sv, {13, 13}, {1, 2}},
+std::array<data<char>, 853> data_utf8 = {
+ {{"\U0000000d\U0000000d"sv, {13, 13}, {1, 2}},
{"\U0000000d\U00000308\U0000000d"sv, {13, 776, 13}, {1, 3, 4}},
{"\U0000000d\U0000000a"sv, {13}, {2}},
{"\U0000000d\U00000308\U0000000a"sv, {13, 776, 10}, {1, 3, 4}},
@@ -923,7 +923,9 @@ std::array<data<char>, 853> data_utf8 = {{
{"\U00000ab8\U00000afb\U00000acd\U00000ab8\U00000afb"sv, {2744}, {15}},
{"\U00001019\U00001039\U00001018\U0000102c\U00001037"sv, {4121, 4140}, {9, 15}},
{"\U00001004\U0000103a\U00001039\U00001011\U00001039\U00001011"sv, {4100}, {18}},
- {"\U00001b12\U00001b01\U00001b32\U00001b44\U00001b2f\U00001b32\U00001b44\U00001b22\U00001b44\U00001b2c\U00001b32\U00001b44\U00001b22\U00001b38"sv, {6930, 6962, 6962, 6962}, {6, 15, 30, 42}},
+ {"\U00001b12\U00001b01\U00001b32\U00001b44\U00001b2f\U00001b32\U00001b44\U00001b22\U00001b44\U00001b2c\U00001b32\U00001b44\U00001b22\U00001b38"sv,
+ {6930, 6962, 6962, 6962},
+ {6, 15, 30, 42}},
{"\U0000179f\U000017d2\U0000178f\U000017d2\U0000179a\U000017b8"sv, {6047}, {18}},
{"\U00001b26\U00001b17\U00001b44\U00001b13"sv, {6950, 6935}, {3, 12}},
{"\U00001b27\U00001b13\U00001b44\U00001b0b\U00001b0b\U00001b04"sv, {6951, 6931, 6923}, {3, 12, 18}},
@@ -945,8 +947,8 @@ std::array<data<char>, 853> 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>, 853> data_utf16 = {{
- {L"\U0000000d\U0000000d"sv, {13, 13}, {1, 2}},
+std::array<data<wchar_t>, 853> data_utf16 = {
+ {{L"\U0000000d\U0000000d"sv, {13, 13}, {1, 2}},
{L"\U0000000d\U00000308\U0000000d"sv, {13, 776, 13}, {1, 2, 3}},
{L"\U0000000d\U0000000a"sv, {13}, {2}},
{L"\U0000000d\U00000308\U0000000a"sv, {13, 776, 10}, {1, 2, 3}},
@@ -1784,7 +1786,9 @@ std::array<data<wchar_t>, 853> data_utf16 = {{
{L"\U00000ab8\U00000afb\U00000acd\U00000ab8\U00000afb"sv, {2744}, {5}},
{L"\U00001019\U00001039\U00001018\U0000102c\U00001037"sv, {4121, 4140}, {3, 5}},
{L"\U00001004\U0000103a\U00001039\U00001011\U00001039\U00001011"sv, {4100}, {6}},
- {L"\U00001b12\U00001b01\U00001b32\U00001b44\U00001b2f\U00001b32\U00001b44\U00001b22\U00001b44\U00001b2c\U00001b32\U00001b44\U00001b22\U00001b38"sv, {6930, 6962, 6962, 6962}, {2, 5, 10, 14}},
+ {L"\U00001b12\U00001b01\U00001b32\U00001b44\U00001b2f\U00001b32\U00001b44\U00001b22\U00001b44\U00001b2c\U00001b32\U00001b44\U00001b22\U00001b38"sv,
+ {6930, 6962, 6962, 6962},
+ {2, 5, 10, 14}},
{L"\U0000179f\U000017d2\U0000178f\U000017d2\U0000179a\U000017b8"sv, {6047}, {6}},
{L"\U00001b26\U00001b17\U00001b44\U00001b13"sv, {6950, 6935}, {1, 4}},
{L"\U00001b27\U00001b13\U00001b44\U00001b0b\U00001b0b\U00001b04"sv, {6951, 6931, 6923}, {1, 4, 6}},
@@ -1805,8 +1809,8 @@ std::array<data<wchar_t>, 853> 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>, 853> data_utf32 = {{
- {L"\U0000000d\U0000000d"sv, {13, 13}, {1, 2}},
+std::array<data<wchar_t>, 853> data_utf32 = {
+ {{L"\U0000000d\U0000000d"sv, {13, 13}, {1, 2}},
{L"\U0000000d\U00000308\U0000000d"sv, {13, 776, 13}, {1, 2, 3}},
{L"\U0000000d\U0000000a"sv, {13}, {2}},
{L"\U0000000d\U00000308\U0000000a"sv, {13, 776, 10}, {1, 2, 3}},
@@ -2644,7 +2648,9 @@ std::array<data<wchar_t>, 853> data_utf32 = {{
{L"\U00000ab8\U00000afb\U00000acd\U00000ab8\U00000afb"sv, {2744}, {5}},
{L"\U00001019\U00001039\U00001018\U0000102c\U00001037"sv, {4121, 4140}, {3, 5}},
{L"\U00001004\U0000103a\U00001039\U00001011\U00001039\U00001011"sv, {4100}, {6}},
- {L"\U00001b12\U00001b01\U00001b32\U00001b44\U00001b2f\U00001b32\U00001b44\U00001b22\U00001b44\U00001b2c\U00001b32\U00001b44\U00001b22\U00001b38"sv, {6930, 6962, 6962, 6962}, {2, 5, 10, 14}},
+ {L"\U00001b12\U00001b01\U00001b32\U00001b44\U00001b2f\U00001b32\U00001b44\U00001b22\U00001b44\U00001b2c\U00001b32\U00001b44\U00001b22\U00001b38"sv,
+ {6930, 6962, 6962, 6962},
+ {2, 5, 10, 14}},
{L"\U0000179f\U000017d2\U0000178f\U000017d2\U0000179a\U000017b8"sv, {6047}, {6}},
{L"\U00001b26\U00001b17\U00001b44\U00001b13"sv, {6950, 6935}, {1, 4}},
{L"\U00001b27\U00001b13\U00001b44\U00001b0b\U00001b0b\U00001b04"sv, {6951, 6931, 6923}, {1, 4, 6}},
``````````
</details>
https://github.com/llvm/llvm-project/pull/199111
More information about the libcxx-commits
mailing list