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
clang/docs/CIR/_raw/PostProcessCIRDocs.py clang/docs/conf.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
--- CIR/_raw/PostProcessCIRDocs.py 2026-04-11 15:31:08.000000 +0000
+++ CIR/_raw/PostProcessCIRDocs.py 2026-04-11 15:32:21.597467 +0000
@@ -21,17 +21,20 @@
# ===============================================
if os.path.exists(DIALECT_DOC_PATH):
cir_docs_toctree.append("CIRDialect")
with open(DIALECT_DOC_PATH, encoding="utf-8") as fp:
dialect_doc = fp.read()
- dialect_doc = dialect_doc.replace("[TOC]", """
+ dialect_doc = dialect_doc.replace(
+ "[TOC]",
+ """
```{contents}
---
local:
depth: 2
---
-```""".strip())
+```""".strip(),
+ )
with open(DIALECT_DOC_OUTPUT_PATH, "w", encoding="utf-8") as fp:
fp.write(dialect_doc)
# ===============================================
# Add toctree to index.rst if CIR docs are generated
``````````
</details>
https://github.com/llvm/llvm-project/pull/190354
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits