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.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/include/clang/Tooling/Transformer/RewriteRule.h | ||
---|---|---|
337 | Please use three slashes for doc comments. | |
clang/lib/Tooling/Transformer/RewriteRule.cpp | ||
194 | Wouldn't this line move the same value multiple times? | |
208 | The fix seems trivial -- removing the if statement. Why not do that? | |
clang/unittests/Tooling/TransformerTest.cpp | ||
422 | These tests do not demonstrate that the rewrite is only applied to the descendants of the specified AST node -- would be good to test that. | |
1184 | Any particular reason to add these tests at the end of the file instead of grouped together with the rest of the tests for rewriteDescendants above? |
Please use three slashes for doc comments.