File tree Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -854,6 +854,8 @@ void TextNodeDumper::VisitCXXBoolLiteralExpr(const CXXBoolLiteralExpr *Node) {
854
854
}
855
855
856
856
void TextNodeDumper::VisitCXXThisExpr (const CXXThisExpr *Node) {
857
+ if (Node->isImplicit ())
858
+ OS << " implicit" ;
857
859
OS << " this" ;
858
860
}
859
861
Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ void PrimaryExpressions(Ts... a) {
255
255
// CHECK-NEXT: FieldDecl 0x{{[^ ]*}} <col:8> col:8 implicit 'V *'
256
256
// CHECK-NEXT: CXXMethodDecl
257
257
// CHECK-NEXT: CompoundStmt
258
- // CHECK-NEXT: CXXThisExpr 0x{{[^ ]*}} <col:8> 'V *' this
258
+ // CHECK-NEXT: CXXThisExpr 0x{{[^ ]*}} <col:8> 'V *' implicit this
259
259
260
260
[*this ]{};
261
261
// CHECK: LambdaExpr 0x{{[^ ]*}} <line:[[@LINE-1]]:7, col:15>
@@ -272,7 +272,7 @@ void PrimaryExpressions(Ts... a) {
272
272
// CHECK-NEXT: CompoundStmt
273
273
// CHECK-NEXT: ParenListExpr 0x{{[^ ]*}} <col:8> 'NULL TYPE'
274
274
// CHECK-NEXT: UnaryOperator 0x{{[^ ]*}} <col:8> '<dependent type>' prefix '*' cannot overflow
275
- // CHECK-NEXT: CXXThisExpr 0x{{[^ ]*}} <col:8> 'V *' this
275
+ // CHECK-NEXT: CXXThisExpr 0x{{[^ ]*}} <col:8> 'V *' implicit this
276
276
}
277
277
};
278
278
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ struct S {
56
56
// CHECK-NEXT: | | `-DeclRefExpr {{.+}} <col:48> 'int' lvalue OMPCapturedExpr {{.+}} 'a' 'int &'
57
57
// CHECK-NEXT: | |-OMPSharedClause {{.+}} <col:51, col:59>
58
58
// CHECK-NEXT: | | `-MemberExpr {{.+}} <col:58> 'int' lvalue ->b
59
- // CHECK-NEXT: | | `-CXXThisExpr {{.+}} <col:58> 'S *' this
59
+ // CHECK-NEXT: | | `-CXXThisExpr {{.+}} <col:58> 'S *' implicit this
60
60
// CHECK-NEXT: | |-OMPScheduleClause {{.+}} <col:61, col:79>
61
61
// CHECK-NEXT: | | `-ImplicitCastExpr {{.+}} <col:78> 'int' <LValueToRValue>
62
62
// CHECK-NEXT: | | `-DeclRefExpr {{.+}} <col:78> 'int' lvalue OMPCapturedExpr {{.+}} '.capture_expr.' 'int'
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ class C1 {
132
132
// CHECK-NEXT: | | `-BinaryOperator {{.*}} '_Float16' '+'
133
133
// CHECK-NEXT: | | |-ImplicitCastExpr {{.*}} '_Float16' <LValueToRValue>
134
134
// CHECK-NEXT: | | | `-MemberExpr {{.*}} '_Float16' lvalue ->f1c 0x{{.*}}
135
- // CHECK-NEXT: | | | `-CXXThisExpr {{.*}} 'C1 *' this
135
+ // CHECK-NEXT: | | | `-CXXThisExpr {{.*}} 'C1 *' implicit this
136
136
// CHECK-NEXT: | | `-ImplicitCastExpr {{.*}} '_Float16' <LValueToRValue>
137
137
// CHECK-NEXT: | | `-DeclRefExpr {{.*}} '_Float16' lvalue ParmVar 0x{{.*}} 'arg' '_Float16'
138
138
// CHECK-NEXT: | |-CXXMethodDecl {{.*}} used func2c '_Float16 (_Float16)' static
You can’t perform that action at this time.
0 commit comments