[llvm] [Github] Skip MIR files for undef check (PR #120919)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 22 13:30:41 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 c5492e3c65e40cdcab9771b692f9ad437c65aa04...d8dd909a0cf1e1c9b38e83845a476886a2243d2e llvm/utils/git/code-format-helper.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- code-format-helper.py 2024-12-22 21:26:13.000000 +0000
+++ code-format-helper.py 2024-12-22 21:30:14.608305 +0000
@@ -380,11 +380,11 @@
# diff --git a/file b/file
for file in re.split("^diff --git ", stdout, 0, re.MULTILINE):
# We skip checking in MIR files as undef is a valid token and not
# going away.
if file.endswith(".mir"):
- continue
+ continue
# search for additions of undef
if re.search(r"^[+](?!\s*#\s*).*(\bundef\b|UndefValue::get)", file, re.MULTILINE):
files.append(re.match("a/([^ ]+)", file.splitlines()[0])[1])
if not files:
``````````
</details>
https://github.com/llvm/llvm-project/pull/120919
More information about the llvm-commits
mailing list