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 @@ -3348,34 +3348,34 @@ HALF_IF HALF_IF_2 else {} })cpp", R"txt( -*: TranslationUnit +TranslationUnit Detached `-SimpleDeclaration - |-void - |-SimpleDeclarator - | |-test + |-'void' + |-SimpleDeclarator SimpleDeclaration_declarator + | |-'test' | `-ParametersAndQualifiers - | |-( - | `-) + | |-'(' OpenParen + | `-')' CloseParen `-CompoundStatement - |-{ - |-IfStatement - | |-I: if - | |-I: ( - | |-I: BinaryOperatorExpression - | | |-I: IntegerLiteralExpression - | | | `-I: 1 - | | |-I: + - | | `-I: IntegerLiteralExpression - | | `-I: 1 - | |-I: ) - | |-I: CompoundStatement - | | |-I: { - | | `-I: } - | |-else - | `-CompoundStatement - | |-{ - | `-} - `-} + |-'{' OpenParen + |-IfStatement CompoundStatement_statement + | |-'if' IntroducerKeyword I + | |-'(' I + | |-BinaryOperatorExpression I + | | |-IntegerLiteralExpression BinaryOperatorExpression_leftHandSide I + | | | `-'1' LiteralToken I + | | |-'+' OperatorExpression_operatorToken I + | | `-IntegerLiteralExpression BinaryOperatorExpression_rightHandSide I + | | `-'1' LiteralToken I + | |-')' I + | |-CompoundStatement IfStatement_thenStatement I + | | |-'{' OpenParen I + | | `-'}' CloseParen I + | |-'else' IfStatement_elseKeyword + | `-CompoundStatement IfStatement_elseStatement + | |-'{' OpenParen + | `-'}' CloseParen + `-'}' CloseParen )txt")); }