[SyntaxTree] Split tests for expressions
authorEduardo Caldas <ecaldas@google.com>
Tue, 11 Aug 2020 16:28:00 +0000 (16:28 +0000)
committerEduardo Caldas <ecaldas@google.com>
Thu, 13 Aug 2020 08:18:14 +0000 (08:18 +0000)
commitd1211fd1ec037f88c2cc855bc850200948c76940
tree48e0ae18fd6d378432a08fd06c6fcae8982d62d8
parent8199cd8a550dab8f9b4035d34b7e576892daab09
[SyntaxTree] Split tests for expressions

We do that because:
* Big tests generated big tree dumps that could hardly serve as documentation.
* In most cases the tests didn't share setup, thus there was not much addition in lines of code.

We split tests for:
* `UserDefinedLiteral`
* `NestedBinaryOperator`
* `UserDefinedBinaryOperator`
* `UserDefinedPrefixOperator`
* `QualifiedId`

Differential Revision: https://reviews.llvm.org/D85819
clang/unittests/Tooling/Syntax/TreeTest.cpp