[libc-commits] [libc] [libc][docgen] basic support for non-top-level headers (PR #119621)

via libc-commits libc-commits at lists.llvm.org
Wed Dec 11 14:10:43 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 de56df9eb5248006ac64744e962ee053e72d028c...eb0e72da2bad2af76f4069b28cdf65379623f4e3 libc/utils/docgen/docgen.py
``````````

</details>

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

``````````diff
--- docgen.py	2024-12-11 22:03:30.000000 +0000
+++ docgen.py	2024-12-11 22:10:14.763086 +0000
@@ -160,11 +160,11 @@
             print("    -")
     print()
 
 
 def print_impl_status_rst(header: Header, api: Dict):
-    if (os.sep in header.name):
+    if os.sep in header.name:
         print(".. include:: ../../check.rst\n")
     else:
         print(".. include:: ../check.rst\n")
 
     print("=" * len(header.name))

``````````

</details>


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


More information about the libc-commits mailing list