Skip to content

Commit 3c9893b

Browse files
committed
Merge all pattern kinds into a single AST node
1 parent 526887f commit 3c9893b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clang/test/AST/ast-dump-expansion-stmt.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,30 +18,30 @@ void foo(int);
1818
template <typename T>
1919
void test(T t) {
2020
// CHECK: CXXExpansionStmtDecl
21-
// CHECK-NEXT: CXXEnumeratingExpansionStmtPattern
21+
// CHECK-NEXT: CXXExpansionStmtPattern {{.*}} enumerating
2222
// CHECK: CXXExpansionStmtInstantiation
2323
template for (auto x : {1, 2, 3}) {
2424
foo(x);
2525
}
2626

2727
// CHECK: CXXExpansionStmtDecl
28-
// CHECK-NEXT: CXXIteratingExpansionStmtPattern
28+
// CHECK-NEXT: CXXExpansionStmtPattern {{.*}} iterating
2929
// CHECK: CXXExpansionStmtInstantiation
3030
static constexpr Array<int, 3> a;
3131
template for (auto x : a) {
3232
foo(x);
3333
}
3434

3535
// CHECK: CXXExpansionStmtDecl
36-
// CHECK-NEXT: CXXDestructuringExpansionStmtPattern
36+
// CHECK-NEXT: CXXExpansionStmtPattern {{.*}} destructuring
3737
// CHECK: CXXExpansionStmtInstantiation
3838
int arr[3]{1, 2, 3};
3939
template for (auto x : arr) {
4040
foo(x);
4141
}
4242

4343
// CHECK: CXXExpansionStmtDecl
44-
// CHECK-NEXT: CXXDependentExpansionStmtPattern
44+
// CHECK-NEXT: CXXExpansionStmtPattern {{.*}} dependent
4545
// CHECK-NOT: CXXExpansionStmtInstantiation
4646
template for (auto x : t) {
4747
foo(x);

0 commit comments

Comments
 (0)