[llvm] [UTC] Don't rename %. inside quoted strings in test checkseg (PR #218767)

via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 26 11:56:53 PDT 2026


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	2026-08-26 18:53:05.000000 +0000
+++ common.py	2026-08-26 18:55:35.027661 +0000
@@ -1201,11 +1201,11 @@
 
     # Create a FileCheck variable name based on an IR name.
     def get_value_name(self, var: str, check_prefix: str):
         var = var.replace("!", "")
         var = var.replace("%", "")
-        if (var.startswith(".")):
+        if var.startswith("."):
             var = var.replace(".", "dot", 1)
         if self.replace_number_with_counter:
             assert var
             replacement = self.variable_mapping.get(var, None)
             if replacement is None:

``````````

</details>


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


More information about the llvm-commits mailing list