Home
last modified time | relevance | path

Searched refs:EditGenerator (Results 1 – 2 of 2) sorted by relevance

/external/llvm-project/clang/include/clang/Tooling/Transformer/
DRewriteRule.h62 using EditGenerator = MatchConsumer<llvm::SmallVector<Edit, 1>>; variable
118 EditGenerator edit(ASTEdit E);
129 EditGenerator editList(llvm::SmallVector<ASTEdit, 1> Edits);
132 inline EditGenerator noEdits() { return editList({}); } in noEdits()
137 EditGenerator noopEdit(RangeSelector Anchor);
140 inline EditGenerator ifBound(std::string ID, ASTEdit TrueEdit, in ifBound()
148 inline EditGenerator ifBound(std::string ID, ASTEdit TrueEdit) { in ifBound()
154 EditGenerator flattenVector(SmallVector<EditGenerator, 2> Generators);
161 inline EditGenerator injectEdits(ASTEdit E) { return edit(std::move(E)); } in injectEdits()
162 inline EditGenerator injectEdits(EditGenerator G) { return G; } in injectEdits()
[all …]
/external/llvm-project/clang/lib/Tooling/Transformer/
DRewriteRule.cpp64 EditGenerator transformer::editList(SmallVector<ASTEdit, 1> Edits) { in editList()
70 EditGenerator transformer::edit(ASTEdit Edit) { in edit()
76 EditGenerator transformer::noopEdit(RangeSelector Anchor) { in noopEdit()
94 EditGenerator
95 transformer::flattenVector(SmallVector<EditGenerator, 2> Generators) { in flattenVector() argument
164 RewriteRule transformer::makeRule(DynTypedMatcher M, EditGenerator Edits, in makeRule()
308 EditGenerator transformer::rewriteDescendants(std::string NodeId, in rewriteDescendants()