[llvm] update_test_checks: indent dbg records (PR #139230)

via llvm-commits llvm-commits at lists.llvm.org
Fri May 9 02:31:52 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/UpdateTestChecks/common.py llvm/utils/update_test_checks.py
``````````

</details>

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

``````````diff
--- update_test_checks.py	2025-05-09 09:26:36.000000 +0000
+++ update_test_checks.py	2025-05-09 09:31:27.606406 +0000
@@ -250,11 +250,13 @@
                 skip_global_checks=not is_in_function,
                 skip_same_checks=dropped_previous_line,
             ):
                 # This input line of the function body will go as-is into the output.
                 # Except make leading whitespace uniform: 2 spaces. 4 for debug records.
-                indent = "  " if not common.IS_DEBUG_RECORD_RE.match(input_line) else "    "
+                indent = (
+                    "  " if not common.IS_DEBUG_RECORD_RE.match(input_line) else "    "
+                )
                 input_line = common.SCRUB_LEADING_WHITESPACE_RE.sub(indent, input_line)
                 output_lines.append(input_line)
                 dropped_previous_line = False
                 if input_line.strip() == "}":
                     is_in_function = False

``````````

</details>


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


More information about the llvm-commits mailing list