[PATCH] D85734: [libTooling] Move RewriteRule include edits to ASTEdit granularity.
Yitzhak Mandelbaum via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 11 07:40:13 PDT 2020
ymandel created this revision.
ymandel added reviewers: tdl-g, gribozavr2.
Herald added a project: clang.
ymandel requested review of this revision.
Currently, changes to includes are applied to an entire rule. However,
include changes may be specific to particular edits within a rule (for example,
they may apply to one file but not another). Also, include changes may need to
carry metadata, just like other changes. So, we make include changes first-class
edits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D85734
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: D85734.284719.patch
Type: text/x-patch
Size: 10361 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200811/6cefb66b/attachment-0001.bin>
More information about the cfe-commits
mailing list