[libc-commits] [libc] [libc][docs] Fix POSIX basedefs links for nested headers (PR #188738)

via libc-commits libc-commits at lists.llvm.org
Fri Mar 27 09:00:20 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 libc/utils/docgen/docgen.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
--- docgen.py	2026-03-27 15:58:01.000000 +0000
+++ docgen.py	2026-03-27 15:59:44.501700 +0000
@@ -174,13 +174,11 @@
             print(f'    - {macros[name]["c-definition"]}')
         else:
             print("    -")
 
         if "in-latest-posix" in macros[name]:
-            print(
-                f"    - `POSIX.1-2024 <{posix_basedefs_url(header)}>`__"
-            )
+            print(f"    - `POSIX.1-2024 <{posix_basedefs_url(header)}>`__")
         else:
             print("    -")
     print()
 
 

``````````

</details>


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


More information about the libc-commits mailing list