[LibTooling] Add insert/remove convenience functions for creating `ASTEdit`s.
authorYitzhak Mandelbaum <yitzhakm@google.com>
Thu, 6 Jun 2019 14:20:29 +0000 (14:20 +0000)
committerYitzhak Mandelbaum <yitzhakm@google.com>
Thu, 6 Jun 2019 14:20:29 +0000 (14:20 +0000)
commit2e4a628c06c42a9265b0acb07721f7edfe2009d4
tree7fdfa3a65c3c67e7f4bebe22384e96d0c326c19c
parenta4f5a2ad1f03cb0c3f0a2fdc5d504310b2cb6b85
[LibTooling] Add insert/remove convenience functions for creating `ASTEdit`s.

Summary: `change()` is an all purpose function; the revision adds simple shortcuts for the specific operations of inserting (before/after) or removing source.

Reviewers: ilya-biryukov

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D62621

llvm-svn: 362707
clang/include/clang/Tooling/Refactoring/Transformer.h
clang/unittests/Tooling/TransformerTest.cpp