[llvm] [Github] Fix revisions in code format action reproducers (PR #155193)

via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 24 13:55:10 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 llvm/utils/git/code-format-helper.py
``````````

</details>

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

``````````diff
--- code-format-helper.py	2025-08-24 20:50:29.000000 +0000
+++ code-format-helper.py	2025-08-24 20:54:44.142203 +0000
@@ -177,11 +177,11 @@
 
     def _construct_command(self, diff_expression: list[str] | None):
         cf_cmd = [self.clang_fmt_path, "--diff"]
 
         if diff_expression:
-          cf_cmd.extend(diff_expression)
+            cf_cmd.extend(diff_expression)
 
         # Gather the extension of all modified files and pass them explicitly to git-clang-format.
         # This prevents git-clang-format from applying its own filtering rules on top of ours.
         extensions = set()
         for file in self._cpp_files:

``````````

</details>


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


More information about the llvm-commits mailing list