This revision was automatically updated to reflect the committed changes.
Closed by commit rGe5b3202b6f94: [libTooling] In Clang Transformer, change
`Metadata` field to deferred… (authored by asoffer, committed by ymandel).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https:
asoffer updated this revision to Diff 279572.
asoffer added a comment.
Construct types for default metadata explicitly.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83820/new/
https://reviews.llvm.org/D83820
Files:
clang/include/clang/Tooling/T
This revision was automatically updated to reflect the committed changes.
Closed by commit rGc0b8954ecba5: [libTooling] In Clang Transformer, change
`Metadata` field to deferred… (authored by ymandel).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83
asoffer updated this revision to Diff 278611.
asoffer marked an inline comment as done.
asoffer added a comment.
Typo fix.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83820/new/
https://reviews.llvm.org/D83820
Files:
clang/include/clang/Toolin
ymandel added inline comments.
Comment at: clang/include/clang/Tooling/Transformer/RewriteRule.h:93
+ // Not all transformations will want or need to attach metadata and therefore
+ // should not be requierd to do so.
+ AnyGenerator Metadata = [](const ast_matchers::MatchFinde
ymandel added inline comments.
Comment at: clang/include/clang/Tooling/Transformer/RewriteRule.h:93
+ // Not all transformations will want or need to attach metadata and therefore
+ // sholud not be requierd to do so.
AnyGenerator Metadata = [](const ast_matchers::MatchFinde
asoffer marked an inline comment as done.
asoffer added inline comments.
Comment at: clang/include/clang/Tooling/Transformer/RewriteRule.h:93
+ // Not all transformations will want or need to attach metadata and therefore
+ // sholud not be requierd to do so.
AnyGenerator Me
asoffer updated this revision to Diff 278552.
asoffer added a comment.
Fix formatting.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83820/new/
https://reviews.llvm.org/D83820
Files:
clang/include/clang/Tooling/Transformer/RewriteRule.h
clang/
ymandel marked an inline comment as done.
ymandel added inline comments.
Comment at: clang/include/clang/Tooling/Transformer/RewriteRule.h:93
+ // Not all transformations will want or need to attach metadata and therefore
+ // sholud not be requierd to do so.
AnyGenerator Me
asoffer added inline comments.
Comment at: clang/include/clang/Tooling/Transformer/RewriteRule.h:93
+ // Not all transformations will want or need to attach metadata and therefore
+ // sholud not be requierd to do so.
AnyGenerator Metadata = [](const ast_matchers::MatchFinde
asoffer updated this revision to Diff 278315.
asoffer marked 2 inline comments as done.
asoffer added a comment.
Typo fix.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83820/new/
https://reviews.llvm.org/D83820
Files:
clang/include/clang/Toolin
ymandel added a comment.
Looks like your changes to the .cpp and test files were reverted...
Comment at: clang/include/clang/Tooling/Transformer/RewriteRule.h:93
+ // Not all transformations will want or need to attach metadata and therefore
+ // sholud not be requierd to do
asoffer marked 4 inline comments as done.
asoffer added inline comments.
Comment at: clang/include/clang/Tooling/Transformer/RewriteRule.h:92
TextGenerator Note;
- llvm::Any Metadata;
+ AnyGenerator Metadata = [](const ast_matchers::MatchFinder::MatchResult &) {
+return
asoffer updated this revision to Diff 278262.
asoffer added a comment.
Add comments describing why we provide defaults for Metadata generation and
design of withMetadata function template.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83820/new/
h
ymandel accepted this revision.
ymandel added inline comments.
Comment at: clang/include/clang/Tooling/Transformer/RewriteRule.h:92
TextGenerator Note;
- llvm::Any Metadata;
+ AnyGenerator Metadata = [](const ast_matchers::MatchFinder::MatchResult &) {
+return llvm::Any(
gribozavr2 accepted this revision.
gribozavr2 added inline comments.
This revision is now accepted and ready to land.
Comment at: clang/include/clang/Tooling/Transformer/RewriteRule.h:268
-inline ASTEdit withMetadata(ASTEdit edit, llvm::Any Metadata) {
- edit.Metadata = std::m
asoffer created this revision.
asoffer added reviewers: gribozavr, ymandel.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Metadata is being changed from an llvm::Any to a MatchConsumer so
that it's evaluation can be be dependent on on MatchResults passed in.
Repository:
17 matches
Mail list logo