[llvm] [clang] [Clang] Update Unicode version to 15.1 (PR #77147)

via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 5 14:18:24 PST 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 f22dc88759a53d4224c17d3833a359ef5674b4ea 83314b0226f0585c3f689c8fdf556e45dbec207c -- clang/lib/Lex/UnicodeCharSets.h clang/test/Lexer/unicode.c llvm/lib/Support/Unicode.cpp llvm/lib/Support/UnicodeCaseFold.cpp llvm/lib/Support/UnicodeNameToCodepoint.cpp llvm/lib/Support/UnicodeNameToCodepointGenerated.cpp llvm/unittests/Support/UnicodeTest.cpp llvm/utils/UnicodeData/UnicodeNameMappingGenerator.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/unittests/Support/UnicodeTest.cpp b/llvm/unittests/Support/UnicodeTest.cpp
index 66ff11d30f..35d4f1bc81 100644
--- a/llvm/unittests/Support/UnicodeTest.cpp
+++ b/llvm/unittests/Support/UnicodeTest.cpp
@@ -147,7 +147,6 @@ TEST(Unicode, nameToCodepointStrict) {
   EXPECT_EQ(0x31350u, map("CJK UNIFIED IDEOGRAPH-31350")); // Unicode 15.0
   EXPECT_EQ(0x2EBF0u, map("CJK UNIFIED IDEOGRAPH-2EBF0")); // Unicode 15.1
 
-
   EXPECT_EQ(0xAC00u, map("HANGUL SYLLABLE GA"));
   EXPECT_EQ(0xAC14u, map("HANGUL SYLLABLE GASS"));
   EXPECT_EQ(0xAC2Bu, map("HANGUL SYLLABLE GAELH"));
@@ -170,7 +169,8 @@ TEST(Unicode, nameToCodepointStrict) {
                           "ABOVE WITH ALEF MAKSURA ISOLATED FORM"));
   EXPECT_EQ(0x11F04u, map("KAWI LETTER A")); // Unicode 15.0
   EXPECT_EQ(0x1FA77u, map("PINK HEART")); // Unicode 15.0
-  EXPECT_EQ(0x2FFFu, map("IDEOGRAPHIC DESCRIPTION CHARACTER ROTATION")); // Unicode 15.1
+  EXPECT_EQ(0x2FFFu,
+            map("IDEOGRAPHIC DESCRIPTION CHARACTER ROTATION")); // Unicode 15.1
 
   // Aliases
   EXPECT_EQ(0x0000u, map("NULL"));

``````````

</details>


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


More information about the cfe-commits mailing list