[SyntaxTree] Bug fix in `MutationsImpl::addAfter`.
authorEduardo Caldas <ecaldas@google.com>
Tue, 13 Oct 2020 13:07:17 +0000 (13:07 +0000)
committerEduardo Caldas <ecaldas@google.com>
Wed, 14 Oct 2020 09:22:01 +0000 (09:22 +0000)
commit72732acade77d5ee55a818e2da77a2c5b7033ccb
tree4945305fe935a24ad4c6e6afdf2a1b2716aac83c
parent4178f8f2f08e14abb341fb32dd0f4cc9320df072
[SyntaxTree] Bug fix in `MutationsImpl::addAfter`.

* Add assertions to other `MutationsImpl` member functions
* `findPrevious` is a free function

Differential Revision: https://reviews.llvm.org/D89314
clang/lib/Tooling/Syntax/Mutations.cpp