[llvm] [UTC] CHECK-EMPTY instead of skipping blank lines (PR #165718)

via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 31 06:29:16 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/UpdateTestChecks/common.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
--- common.py	2025-10-31 13:26:56.000000 +0000
+++ common.py	2025-10-31 13:28:36.729399 +0000
@@ -2278,13 +2278,15 @@
                         global_vars_seen_dict[checkprefix][key] = global_vars_seen[key]
                 break
             # For IR output, change all defs to FileCheck variables, so we're immune
             # to variable naming fashions.
             else:
-                blank_line_indices = {
-                    i for i, line in enumerate(func_body) if line.strip() == ""
-                } if ginfo.get_version() >= 7 else set()
+                blank_line_indices = (
+                    {i for i, line in enumerate(func_body) if line.strip() == ""}
+                    if ginfo.get_version() >= 7
+                    else set()
+                )
                 func_body = generalize_check_lines(
                     func_body,
                     ginfo,
                     vars_seen,
                     global_vars_seen,

``````````

</details>


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


More information about the llvm-commits mailing list