llvm-project/clang/unittests/Tooling/Syntax
Eduardo Caldas 5011d43108 Migrate Declarators to use the List API
After this change all nodes that have a delimited-list are using the
`List` API.

Implementation details:
Let's look at a declaration with multiple declarators:
`int a, b;`
To generate a declarator list node we need to have the range of
declarators: `a, b`:
However, the `ClangAST` actually stores them as separate declarations:
`int a   ;`
`int    b;`
We solve that by appropriately marking the declarators on each separate
declaration in the `ClangAST` and then for the final declarator `int
b`, shrinking its range to fit to the already marked declarators.

Differential Revision: https://reviews.llvm.org/D88403
2020-10-01 13:56:31 +00:00
..
BuildTreeTest.cpp Migrate Declarators to use the List API 2020-10-01 13:56:31 +00:00
CMakeLists.txt [SyntaxTree] Test `findFirstLeaf` and `findLastLeaf` 2020-09-22 06:47:36 +00:00
MutationsTest.cpp [SyntaxTree] Specialize `TreeTestBase` for `BuildTreeTest`, `MutationsTest` and `SynthesisTest` 2020-09-10 16:44:14 +00:00
SynthesisTest.cpp Migrate Declarators to use the List API 2020-10-01 13:56:31 +00:00
TokensTest.cpp [Syntax] expose API for expansions overlapping a spelled token range. 2020-07-20 14:48:12 +02:00
TreeTest.cpp [SyntaxTree] Test the List API 2020-09-22 17:07:41 +00:00
TreeTestBase.cpp [SyntaxTree] Rename functions to start with verb 2020-09-11 14:54:18 +00:00
TreeTestBase.h [SyntaxTree] Specialize `TreeTestBase` for `BuildTreeTest`, `MutationsTest` and `SynthesisTest` 2020-09-10 16:44:14 +00:00