[llvm] [CI] Reduce false positives in UndefGetFormatHelper (PR #134687)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 7 09:58:05 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-04-07 16:55:11.000000 +0000
+++ code-format-helper.py 2025-04-07 16:57:35.998327 +0000
@@ -389,11 +389,13 @@
if filename.endswith(".ll"):
undef_regex = r"\bundef\b"
else:
undef_regex = r"UndefValue::get"
# search for additions of undef
- if re.search(r"^[+](?!\s*#\s*).*(" + undef_regex + r")", file, re.MULTILINE):
+ if re.search(
+ r"^[+](?!\s*#\s*).*(" + undef_regex + r")", file, re.MULTILINE
+ ):
files.append(filename)
if not files:
return None
``````````
</details>
https://github.com/llvm/llvm-project/pull/134687
More information about the llvm-commits
mailing list