[llvm-branch-commits] [llvm] [Dexter] Add !type and !type/all nodes to test variable types (PR #204159)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Jun 16 07:16:25 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 cross-project-tests/debuginfo-tests/dexter/dex/evaluation/ExpectMatch.py cross-project-tests/debuginfo-tests/dexter/dex/evaluation/ExpectWriter.py cross-project-tests/debuginfo-tests/dexter/dex/evaluation/Metrics.py cross-project-tests/debuginfo-tests/dexter/dex/evaluation/RunMatch.py cross-project-tests/debuginfo-tests/dexter/dex/test_script/Nodes.py cross-project-tests/debuginfo-tests/dexter/dex/test_script/Script.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
--- test_script/Nodes.py 2026-06-16 14:10:43.000000 +0000
+++ test_script/Nodes.py 2026-06-16 14:14:31.463126 +0000
@@ -162,10 +162,11 @@
def get_watched_scope(self) -> Optional[str]:
"""Returns the scope that this Expect wants to evaluate."""
return None
+
class ExpectAll(Expect):
"""An Expect for all variables within a named debugger scope; used only to generate scripts from debugger output,
cannot be used for testing debugger output directly.
"""
@@ -283,10 +284,11 @@
This node is not directly evaluated; it must have no expected values, and when Dexter rewrites the original script,
this node will be replaced with !type nodes for each variable that was seen in its scope inserted under !and nodes
that cover that variable's live range(s).
"""
+
def __init__(self, scope_name: str):
self.scope_name = scope_name
def __repr__(self):
return f"TypeAll({self.scope_name})"
``````````
</details>
https://github.com/llvm/llvm-project/pull/204159
More information about the llvm-branch-commits
mailing list