[PATCH] D87779: [SyntaxTree] Test `findFirstLeaf` and `findLastLeaf`
Eduardo Caldas via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 16 11:09:21 PDT 2020
eduucaldas created this revision.
Herald added subscribers: cfe-commits, mgorny.
Herald added a project: clang.
eduucaldas requested review of this revision.
- Introduce `TreeTest.cpp` to unit test `Tree.h`
- Add `generateAllTreesWithShape` to generating test cases
- Add tests for `findFirstLeaf` and `findLastLeaf`
- Fix implementations of `findFirstLeaf` and `findLastLeaf` that had
been broken when empty `Tree` were present.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D87779
Files:
clang/lib/Tooling/Syntax/Tree.cpp
clang/unittests/Tooling/Syntax/CMakeLists.txt
clang/unittests/Tooling/Syntax/TreeTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87779.292277.patch
Type: text/x-patch
Size: 7045 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200916/a1841868/attachment.bin>
More information about the cfe-commits
mailing list