[all-commits] [llvm/llvm-project] ce5780: [libTooling] Fix Transformer to work with ambient ...
Yitzhak Mandelbaum via All-commits
all-commits at lists.llvm.org
Thu May 28 08:43:01 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: ce5780b88c6e2f3303afd266e5e29c1badd9eb3b
https://github.com/llvm/llvm-project/commit/ce5780b88c6e2f3303afd266e5e29c1badd9eb3b
Author: Yitzhak Mandelbaum <yitzhakm at google.com>
Date: 2020-05-28 (Thu, 28 May 2020)
Changed paths:
M clang/include/clang/Tooling/Transformer/RewriteRule.h
M clang/lib/Tooling/Transformer/RewriteRule.cpp
M clang/unittests/Tooling/TransformerTest.cpp
Log Message:
-----------
[libTooling] Fix Transformer to work with ambient traversal kinds.
Summary:
`RewriteRule`'s `applyFirst` was brittle with respect to the default setting of the
`TraversalKind`. This patch builds awareness of traversal kinds directly into
rewrite rules so that they are insensitive to any changes in defaults.
Reviewers: steveire, gribozavr
Subscribers: hokein, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D80606
More information about the All-commits
mailing list