[all-commits] [llvm/llvm-project] c332a9: [libTooling] Add an `EditGenerator` that applies a...
Yitzhak Mandelbaum via All-commits
all-commits at lists.llvm.org
Fri Jul 24 07:39:14 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: c332a984aefc6f8a6b44fd3687a5bbce3f8f035c
https://github.com/llvm/llvm-project/commit/c332a984aefc6f8a6b44fd3687a5bbce3f8f035c
Author: Yitzhak Mandelbaum <yitzhakm at google.com>
Date: 2020-07-24 (Fri, 24 Jul 2020)
Changed paths:
M clang/include/clang/Tooling/Transformer/RewriteRule.h
M clang/lib/Tooling/Transformer/RewriteRule.cpp
M clang/lib/Tooling/Transformer/Transformer.cpp
M clang/unittests/Tooling/TransformerTest.cpp
Log Message:
-----------
[libTooling] Add an `EditGenerator` that applies a rule throughout a bound node.
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.
Reviewed By: gribozavr2
Differential Revision: https://reviews.llvm.org/D84409
More information about the All-commits
mailing list