[llvm] [Debugify] Add 'error-test' mode for the debugify report script, for CI (PR #147574)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 9 09:00:17 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/llvm-original-di-preservation.py
``````````

</details>

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

``````````diff
--- llvm-original-di-preservation.py	2025-07-09 15:57:41.000000 +0000
+++ llvm-original-di-preservation.py	2025-07-09 15:59:51.492431 +0000
@@ -665,15 +665,15 @@
             opts.report_file,
         )
     else:
         # Pretty(ish) print the detected bugs, but check if any exist first so that we don't print an empty dict.
         if di_location_bugs:
-            print_bugs_yaml('DILocation Bugs', di_location_bugs)
+            print_bugs_yaml("DILocation Bugs", di_location_bugs)
         if di_subprogram_bugs:
-            print_bugs_yaml('DISubprogram Bugs', di_subprogram_bugs)
+            print_bugs_yaml("DISubprogram Bugs", di_subprogram_bugs)
         if di_variable_bugs:
-            print_bugs_yaml('DIVariable Bugs', di_variable_bugs)
+            print_bugs_yaml("DIVariable Bugs", di_variable_bugs)
 
     if opts.error_test:
         if any((di_location_bugs, di_subprogram_bugs, di_variable_bugs)):
             # Add a newline gap after printing at least one error.
             print()

``````````

</details>


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


More information about the llvm-commits mailing list