[llvm] [UTC] Support to test annotated IR (PR #165419)

via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 28 10:25:59 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 llvm/utils/update_test_checks.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
--- UpdateTestChecks/common.py	2025-10-28 17:24:04.000000 +0000
+++ UpdateTestChecks/common.py	2025-10-28 17:25:29.089363 +0000
@@ -1908,11 +1908,11 @@
                     )
                     break
             if ignore_all_comments:
                 # Ignore any comments, since the check lines will too.
                 scrubbed_line = SCRUB_IR_COMMENT_RE.sub(r"", line)
-            else:     
+            else:
                 # Ignore comments of predecessors only.
                 scrubbed_line = SCRUB_PRED_COMMENT_RE.sub(r"", line)
             # Ignore the metadata details if check global is none
             if no_meta_details:
                 scrubbed_line = SCRUB_IR_FUNC_META_RE.sub(r"{{.*}}", scrubbed_line)

``````````

</details>


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


More information about the llvm-commits mailing list