[llvm] update_test_checks: Fix preservation of meta variable names with --include-generated-funcs (PR #86160)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 21 10:59:48 PDT 2024
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 81bd799819f498a55e32599bce51fa98b2e73238...450fc07d84ba21144a675c0ca119de75bbb73088 llvm/utils/UpdateTestChecks/common.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- common.py 2024-03-21 17:54:39.000000 +0000
+++ common.py 2024-03-21 17:59:39.924247 +0000
@@ -485,11 +485,11 @@
m = None
if input_line.lstrip().startswith(";"):
m = CHECK_RE.match(input_line)
if m is not None and m.group(2) == "LABEL":
# Update current_function if the current line is a CHECK of a function definition
- line_remainder = input_line[len(m.group(0)):]
+ line_remainder = input_line[len(m.group(0)) :]
update_current_function(line_remainder)
else:
current_function = None
if current_function is not None:
``````````
</details>
https://github.com/llvm/llvm-project/pull/86160
More information about the llvm-commits
mailing list