[llvm-branch-commits] [llvm] [Dexter] Add !step node for testing stepping behaviour (PR #203844)

Orlando Cazalet-Hyams via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Jun 30 01:48:29 PDT 2026


================
@@ -105,16 +117,39 @@ def add_expected_values(expect: Expect, expected_value: Any, scope: Scope):
 
         # Then, for each expect, produce the list of results for just that variable.
         for step_match in self.step_matches:
-            for expect, expect_match in step_match.expect_matches.items():
-                self.per_expect_results[expect].append(
+            for step_expect, line in step_match.step_expect_matches.items():
+                self.per_step_expect_results[step_expect].append(
+                    (step_match.step.step_index, line)
+                )
+            for expect, expect_match in step_match.var_expect_matches.items():
+                self.per_var_expect_results[expect].append(
                     (step_match.step.step_index, expect_match)
                 )
 
+        # For !steps, once we know the file that they are in, we apply any labels.
+        for step_expect, step_results in self.per_step_expect_results.items():
+            if not step_results:
+                # We may not be able to resolve any !labels in the expected value list if the expect was never active;
----------------
OCHyams wrote:

```suggestion
                # We may not be able to resolve any !labels in the expected value list if the Expect was never active;
```

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


More information about the llvm-branch-commits mailing list