[llvm-branch-commits] [llvm] [Dexter] Add support for aggregate expects in the debugger (PR #202545)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Jun 9 02:02:38 PDT 2026
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff origin/main HEAD --extensions cpp -- cross-project-tests/debuginfo-tests/dexter/feature_tests/scripts/debugging/debug_aggregates.cpp cross-project-tests/debuginfo-tests/dexter/feature_tests/scripts/evaluation/eval_aggregates.cpp cross-project-tests/debuginfo-tests/dexter/feature_tests/scripts/evaluation/eval_list_aggregates.cpp --diff_from_common_commit
``````````
: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 clang-format here.
</summary>
``````````diff
diff --git a/cross-project-tests/debuginfo-tests/dexter/feature_tests/scripts/debugging/debug_aggregates.cpp b/cross-project-tests/debuginfo-tests/dexter/feature_tests/scripts/debugging/debug_aggregates.cpp
index 33aa404c3..29f5c2350 100644
--- a/cross-project-tests/debuginfo-tests/dexter/feature_tests/scripts/debugging/debug_aggregates.cpp
+++ b/cross-project-tests/debuginfo-tests/dexter/feature_tests/scripts/debugging/debug_aggregates.cpp
@@ -1,24 +1,25 @@
// RUN: %dexter_regression_test_cxx_build %s -o %t
-// RUN: %dexter_regression_test_run --use-script --skip-evaluate --binary %t -- %s | FileCheck %s
+// RUN: %dexter_regression_test_run --use-script --skip-evaluate --binary %t --
+// %s | FileCheck %s
/// Check that the debugger is able to fetch the components of aggregate values.
struct Point {
- int X;
- int Y;
- int Z;
+ int X;
+ int Y;
+ int Z;
};
struct Rect {
- Point TopLeft;
- Point BottomRight;
+ Point TopLeft;
+ Point BottomRight;
};
int main() {
- Point P { 1, 2, 3 };
+ Point P{1, 2, 3};
int *I = &P.X;
- Rect R { { 1, 1, 1 }, { 2, 2, 2 } };
- int L[] = { 0, 1, 2, 3, 4 };
+ Rect R{{1, 1, 1}, {2, 2, 2}};
+ int L[] = {0, 1, 2, 3, 4};
return 0; // !dex_label ret
}
@@ -46,7 +47,6 @@ int main() {
// CHECK-NEXT: "Y": (int) 2
// CHECK-NEXT: "Z": (int) 2
-
/*
---
!where {lines: !label ret}:
diff --git a/cross-project-tests/debuginfo-tests/dexter/feature_tests/scripts/evaluation/eval_aggregates.cpp b/cross-project-tests/debuginfo-tests/dexter/feature_tests/scripts/evaluation/eval_aggregates.cpp
index 972098694..42ee3b9a7 100644
--- a/cross-project-tests/debuginfo-tests/dexter/feature_tests/scripts/evaluation/eval_aggregates.cpp
+++ b/cross-project-tests/debuginfo-tests/dexter/feature_tests/scripts/evaluation/eval_aggregates.cpp
@@ -1,24 +1,26 @@
// RUN: %dexter_regression_test_cxx_build %s -o %t
-// RUN: %dexter_regression_test_run --use-script --binary %t -- %s | FileCheck %s
+// RUN: %dexter_regression_test_run --use-script --binary %t -- %s | FileCheck
+// %s
-/// Check that the debugger is able to evaluate the components of aggregate values.
+/// Check that the debugger is able to evaluate the components of aggregate
+/// values.
struct Point {
- int X;
- int Y;
- int Z;
+ int X;
+ int Y;
+ int Z;
};
struct Rect {
- Point TopLeft;
- Point BottomRight;
+ Point TopLeft;
+ Point BottomRight;
};
int main() {
- Point P { 1, 2, 3 };
+ Point P{1, 2, 3};
int *I = &P.X;
- Rect R { { 1, 1, 1 }, { 2, 2, 2 } };
- int L[] = { 0, 1, 2, 3, 4 };
+ Rect R{{1, 1, 1}, {2, 2, 2}};
+ int L[] = {0, 1, 2, 3, 4};
return 0; // !dex_label ret
}
diff --git a/cross-project-tests/debuginfo-tests/dexter/feature_tests/scripts/evaluation/eval_list_aggregates.cpp b/cross-project-tests/debuginfo-tests/dexter/feature_tests/scripts/evaluation/eval_list_aggregates.cpp
index 356949115..96714971d 100644
--- a/cross-project-tests/debuginfo-tests/dexter/feature_tests/scripts/evaluation/eval_list_aggregates.cpp
+++ b/cross-project-tests/debuginfo-tests/dexter/feature_tests/scripts/evaluation/eval_list_aggregates.cpp
@@ -1,16 +1,17 @@
// RUN: %dexter_regression_test_cxx_build %s -o %t
-// RUN: %dexter_regression_test_run --use-script --binary %t -- %s | FileCheck %s
+// RUN: %dexter_regression_test_run --use-script --binary %t -- %s | FileCheck
+// %s
/// Check that the debugger is able to correctly evaluate a list of expected
/// aggregate values.
struct Point {
- int X;
- int Y;
+ int X;
+ int Y;
};
int main() {
- Point P { 1, 2 };
+ Point P{1, 2};
P.X = 3; // !dex_label start
P.Y = 0;
P.X = 1;
``````````
</details>
https://github.com/llvm/llvm-project/pull/202545
More information about the llvm-branch-commits
mailing list