[libcxx-commits] [libcxx] [libc++] Reduce the dependency of the locale base API on the base system from the headers (PR #117764)

via libcxx-commits libcxx-commits at lists.llvm.org
Tue Nov 26 10:56:17 PST 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 6f5e5b630559f2d17bdccfab5dff3a97ac0f8c66...fb4d85bfcd9457ce757b8e3ecfccc22e51825431 libcxx/test/libcxx/xopen_source.gen.py
``````````

</details>

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

``````````diff
--- xopen_source.gen.py	2024-11-26 18:52:30.000000 +0000
+++ xopen_source.gen.py	2024-11-26 18:55:51.645072 +0000
@@ -24,14 +24,15 @@
 )
 
 for header in public_headers:
     for version in (500, 600, 700):
         # TODO: <fstream> currently uses ::fseeko unguarded, which fails with _XOPEN_SOURCE=500.
-        if header == 'fstream' and version == 500:
+        if header == "fstream" and version == 500:
             continue
 
-        print(f"""\
+        print(
+            f"""\
 //--- {header}.xopen_source_{version}.compile.pass.cpp
 {lit_header_restrictions.get(header, '')}
 {lit_header_undeprecations.get(header, '')}
 
 // ADDITIONAL_COMPILE_FLAGS: -D_XOPEN_SOURCE={version}

``````````

</details>


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


More information about the libcxx-commits mailing list