[PATCH] D84409: [libTooling] Add an `EditGenerator` that applies a rule throughout a bound node.
Yitzhak Mandelbaum via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 23 07:30:31 PDT 2020
ymandel created this revision.
ymandel added a reviewer: gribozavr2.
Herald added a project: clang.
The new combinator, `rewriteDescendants`, applies a rewrite rule to all
descendants of a specified bound node. That rewrite rule can refer to nodes
bound by the parent, both in the matcher and in the edits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D84409
Files:
clang/include/clang/Tooling/Transformer/RewriteRule.h
clang/lib/Tooling/Transformer/RewriteRule.cpp
clang/lib/Tooling/Transformer/Transformer.cpp
clang/unittests/Tooling/TransformerTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84409.280109.patch
Type: text/x-patch
Size: 12954 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200723/48610512/attachment-0001.bin>
More information about the cfe-commits
mailing list