[libcxx-commits] [libcxx] [libc++] Prevent cycle from including __mbstate_t.h within wchar.h (PR #200940)

via libcxx-commits libcxx-commits at lists.llvm.org
Thu Aug 20 11:19:55 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_iwyu_mapping.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
--- generate_iwyu_mapping.py	2026-08-20 17:54:40.000000 +0000
+++ generate_iwyu_mapping.py	2026-08-20 18:15:04.295327 +0000
@@ -43,11 +43,13 @@
         return ["cstddef"]
     elif header == "__fwd/pair.h":
         return ["utility"]
     elif header == "__fwd/subrange.h":
         return ["ranges"]
-    elif re.match("__fwd/(fstream|ios|istream|mbstate_t|ostream|sstream|streambuf)[.]h", header):
+    elif re.match(
+        "__fwd/(fstream|ios|istream|mbstate_t|ostream|sstream|streambuf)[.]h", header
+    ):
         return ["iosfwd"]
     # Handle remaining forward declaration headers
     elif re.match("__fwd/(.+)[.]h", header):
         return [re.match("__fwd/(.+)[.]h", header).group(1)]
     # Handle detail headers for things like <__algorithm/foo.h>

``````````

</details>


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


More information about the libcxx-commits mailing list