Index: lib/AST/TextNodeDumper.cpp =================================================================== --- lib/AST/TextNodeDumper.cpp +++ lib/AST/TextNodeDumper.cpp @@ -854,6 +854,8 @@ } void TextNodeDumper::VisitCXXThisExpr(const CXXThisExpr *Node) { + if (Node->isImplicit()) + OS << " implicit"; OS << " this"; } Index: test/AST/ast-dump-expr.cpp =================================================================== --- test/AST/ast-dump-expr.cpp +++ test/AST/ast-dump-expr.cpp @@ -255,7 +255,7 @@ // CHECK-NEXT: FieldDecl 0x{{[^ ]*}} col:8 implicit 'V *' // CHECK-NEXT: CXXMethodDecl // CHECK-NEXT: CompoundStmt - // CHECK-NEXT: CXXThisExpr 0x{{[^ ]*}} 'V *' this + // CHECK-NEXT: CXXThisExpr 0x{{[^ ]*}} 'V *' implicit this [*this]{}; // CHECK: LambdaExpr 0x{{[^ ]*}} @@ -272,7 +272,7 @@ // CHECK-NEXT: CompoundStmt // CHECK-NEXT: ParenListExpr 0x{{[^ ]*}} 'NULL TYPE' // CHECK-NEXT: UnaryOperator 0x{{[^ ]*}} '' prefix '*' cannot overflow - // CHECK-NEXT: CXXThisExpr 0x{{[^ ]*}} 'V *' this + // CHECK-NEXT: CXXThisExpr 0x{{[^ ]*}} 'V *' implicit this } }; Index: test/AST/dump.cpp =================================================================== --- test/AST/dump.cpp +++ test/AST/dump.cpp @@ -56,7 +56,7 @@ // CHECK-NEXT: | | `-DeclRefExpr {{.+}} 'int' lvalue OMPCapturedExpr {{.+}} 'a' 'int &' // CHECK-NEXT: | |-OMPSharedClause {{.+}} // CHECK-NEXT: | | `-MemberExpr {{.+}} 'int' lvalue ->b -// CHECK-NEXT: | | `-CXXThisExpr {{.+}} 'S *' this +// CHECK-NEXT: | | `-CXXThisExpr {{.+}} 'S *' implicit this // CHECK-NEXT: | |-OMPScheduleClause {{.+}} // CHECK-NEXT: | | `-ImplicitCastExpr {{.+}} 'int' // CHECK-NEXT: | | `-DeclRefExpr {{.+}} 'int' lvalue OMPCapturedExpr {{.+}} '.capture_expr.' 'int' Index: test/AST/float16.cpp =================================================================== --- test/AST/float16.cpp +++ test/AST/float16.cpp @@ -132,7 +132,7 @@ //CHECK-NEXT: | | `-BinaryOperator {{.*}} '_Float16' '+' //CHECK-NEXT: | | |-ImplicitCastExpr {{.*}} '_Float16' //CHECK-NEXT: | | | `-MemberExpr {{.*}} '_Float16' lvalue ->f1c 0x{{.*}} -//CHECK-NEXT: | | | `-CXXThisExpr {{.*}} 'C1 *' this +//CHECK-NEXT: | | | `-CXXThisExpr {{.*}} 'C1 *' implicit this //CHECK-NEXT: | | `-ImplicitCastExpr {{.*}} '_Float16' //CHECK-NEXT: | | `-DeclRefExpr {{.*}} '_Float16' lvalue ParmVar 0x{{.*}} 'arg' '_Float16' //CHECK-NEXT: | |-CXXMethodDecl {{.*}} used func2c '_Float16 (_Float16)' static