[clang-tools-extra] [llvm] [GitHub][WIP] Run clang-format inside ci-container (PR #160193)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 28 04:25:11 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 origin/main...HEAD llvm/utils/git/code-lint-helper.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
--- code-lint-helper.py 2025-09-28 11:22:25.000000 +0000
+++ code-lint-helper.py 2025-09-28 11:24:38.097280 +0000
@@ -204,12 +204,14 @@
print(f"Running clang-tidy-diff: {' '.join(tidy_diff_cmd)}")
proc = subprocess.run(
tidy_diff_cmd,
input=diff_content,
- stdout=subprocess.PIPE, stderr=subprocess.PIPE,
- text=True, check=False,
+ stdout=subprocess.PIPE,
+ stderr=subprocess.PIPE,
+ text=True,
+ check=False,
)
return clean_clang_tidy_output(proc.stdout.strip())
``````````
</details>
https://github.com/llvm/llvm-project/pull/160193
More information about the llvm-commits
mailing list