[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:37 PDT 2024


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 d179176f3e3505044ad14be19ccb3459a70206a9...750ed367fa81e0972ea9f3640d0c70b65bca6f28 libcxx/utils/generate_indic_conjunct_break_table.py libcxx/utils/generate_extended_grapheme_cluster_table.py
``````````

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- generate_indic_conjunct_break_table.py	2024-03-25 17:34:31.000000 +0000
+++ generate_indic_conjunct_break_table.py	2024-03-25 17:38:02.078893 +0000
@@ -36,10 +36,11 @@
 
 
 LINE_REGEX = re.compile(
     r"^(?P<lower>[0-9A-F]{4,5})(?:\.\.(?P<upper>[0-9A-F]{4,5}))?\s*;\s*InCB;\s*(?P<prop>\w+)"
 )
+
 
 def parsePropertyLine(inputLine: str) -> Optional[PropertyRange]:
     result = PropertyRange()
     if m := LINE_REGEX.match(inputLine):
         lower_str, upper_str, result.prop = m.group("lower", "upper", "prop")
@@ -49,11 +50,10 @@
             result.upper = int(upper_str, base=16)
         return result
 
     else:
         return None
-
 
 
 def compactPropertyRanges(input: list[PropertyRange]) -> list[PropertyRange]:
     """
     Merges consecutive ranges with the same property to one range.
@@ -293,11 +293,13 @@
     with derived_core_path.open(encoding="utf-8") as f:
         indic_conjunct_break_ranges = compactPropertyRanges(
             [x for line in f if (x := parsePropertyLine(line))]
         )
 
-    indic_conjunct_break_data = generate_cpp_data("Grapheme_Break", indic_conjunct_break_ranges)
+    indic_conjunct_break_data = generate_cpp_data(
+        "Grapheme_Break", indic_conjunct_break_ranges
+    )
     return "\n".join([indic_conjunct_break_data])
 
 
 if __name__ == "__main__":
     if len(sys.argv) == 2:

``````````

</details>


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


More information about the libcxx-commits mailing list