[libcxx-commits] [libcxx] [llvm] Finish supporting Unicode 18 (PR #199111)
via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Jun 19 13:13:05 PDT 2026
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {darker}-->
:warning: Python code formatter, darker found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
darker --check --diff -r origin/main...HEAD libcxx/utils/generate_escaped_output_table.py llvm/utils/unicode-case-fold.py
``````````
: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 darker here.
</summary>
``````````diff
--- llvm/utils/unicode-case-fold.py 2026-06-19 20:08:52.000000 +0000
+++ llvm/utils/unicode-case-fold.py 2026-06-19 20:12:22.571793 +0000
@@ -35,15 +35,17 @@
for line in f:
m = expr.match(line)
if not m:
continue
group_1 = m.group(1)
- if "b" in group_1: group_1 = group_1[2:]
+ if "b" in group_1:
+ group_1 = group_1[2:]
from_char = int(group_1, 16)
to_char = int(m.group(2), 16)
group_3 = m.group(3)
- if "\\n" in group_3: group_3 = group_3[:-3]
+ if "\\n" in group_3:
+ group_3 = group_3[:-3]
from_name = group_3
if from_char <= previous_from:
raise Exception("Duplicate or unsorted characters in input")
yield from_char, to_char, from_name
``````````
</details>
https://github.com/llvm/llvm-project/pull/199111
More information about the libcxx-commits
mailing list