diff --git a/clang/unittests/Tooling/Syntax/TreeTest.cpp b/clang/unittests/Tooling/Syntax/TreeTest.cpp --- a/clang/unittests/Tooling/Syntax/TreeTest.cpp +++ b/clang/unittests/Tooling/Syntax/TreeTest.cpp @@ -307,45 +307,45 @@ } )cpp", R"txt( -*: TranslationUnit +TranslationUnit <*> `-SimpleDeclaration - |-int - |-SimpleDeclarator - | |-main + |-'int' + |-SimpleDeclarator + | |-'main' | `-ParametersAndQualifiers - | |-( - | `-) + | |-'(' + | `-')' `-CompoundStatement - |-{ - |-IfStatement - | |-if - | |-( + |-'{' + |-IfStatement + | |-'if' + | |-'(' | |-IntegerLiteralExpression - | | `-1 - | |-) - | `-CompoundStatement - | |-{ - | `-} - |-IfStatement - | |-if - | |-( + | | `-'1' + | |-')' + | `-CompoundStatement + | |-'{' + | `-'}' + |-IfStatement + | |-'if' + | |-'(' | |-IntegerLiteralExpression - | | `-1 - | |-) - | |-CompoundStatement - | | |-{ - | | `-} - | |-else - | `-IfStatement - | |-if - | |-( + | | `-'1' + | |-')' + | |-CompoundStatement + | | |-'{' + | | `-'}' + | |-'else' + | `-IfStatement + | |-'if' + | |-'(' | |-IntegerLiteralExpression - | | `-0 - | |-) - | `-CompoundStatement - | |-{ - | `-} - `-} + | | `-'0' + | |-')' + | `-CompoundStatement + | |-'{' + | `-'}' + `-'}' )txt")); }