[PATCH] D80239: [libTooling] In Transformer, allow atomic changes to span multiple files.

Yitzhak Mandelbaum via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 19 13:44:48 PDT 2020


ymandel created this revision.
ymandel added a reviewer: gribozavr.
Herald added subscribers: jfb, mgrang.
Herald added a project: clang.

Currently, all changes returned by a single application of a rule must fit in
one atomic change and therefore must apply to one file. However, there are
patterns in which a single rule will want to modify multiple files; for example,
a header and implementation to change a declaration and its definition. This
patch relaxes Transformer, libTooling's interpreter of RewriteRules, to support
multiple changes.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D80239

Files:
  clang/lib/Tooling/Transformer/Transformer.cpp
  clang/unittests/Tooling/TransformerTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80239.265020.patch
Type: text/x-patch
Size: 4411 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200519/27c59e28/attachment-0001.bin>


More information about the cfe-commits mailing list