[libcxx-commits] [libcxx] [libc++] Fix C++23 standard modules when using with `clang-cl` on Windows (PR #148992)

via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jul 16 00:23:01 PDT 2025


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 HEAD~1...HEAD libcxx/utils/generate_libcxx_cppm_in.py
``````````

</details>

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

``````````diff
--- generate_libcxx_cppm_in.py	2025-07-16 02:27:04.000000 +0000
+++ generate_libcxx_cppm_in.py	2025-07-16 07:22:36.872831 +0000
@@ -11,11 +11,13 @@
 
 from libcxx.header_information import module_c_headers, module_headers, header_restrictions, headers_not_available, libcxx_root
 
 
 def write_file(module):
-    with open(libcxx_root / "modules" / f"{module}.cppm.in", "w", encoding='utf-8') as module_cpp_in:
+    with open(
+        libcxx_root / "modules" / f"{module}.cppm.in", "w", encoding="utf-8"
+    ) as module_cpp_in:
         module_cpp_in.write(
             """\
 // -*- C++ -*-
 //===----------------------------------------------------------------------===//
 //

``````````

</details>


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


More information about the libcxx-commits mailing list