Lines Matching refs:Rule
270 ApplyRuleCallback(RewriteRule Rule) : Rule(std::move(Rule)) {} in ApplyRuleCallback() argument
275 for (auto &Matcher : transformer::detail::buildMatchers(Rule)) in registerMatchers()
282 size_t I = transformer::detail::findSelectedCase(Result, Rule); in run()
283 auto Transformations = Rule.Cases[I].Edits(Result); in run()
291 RewriteRule Rule; member in __anonefb0af210611::ApplyRuleCallback
300 rewriteDescendantsImpl(const T &Node, RewriteRule Rule, in rewriteDescendantsImpl() argument
302 ApplyRuleCallback Callback(std::move(Rule)); in rewriteDescendantsImpl()
310 transformer::detail::rewriteDescendants(const Decl &Node, RewriteRule Rule, in rewriteDescendants() argument
312 return rewriteDescendantsImpl(Node, std::move(Rule), Result); in rewriteDescendants()
316 transformer::detail::rewriteDescendants(const Stmt &Node, RewriteRule Rule, in rewriteDescendants() argument
318 return rewriteDescendantsImpl(Node, std::move(Rule), Result); in rewriteDescendants()
322 transformer::detail::rewriteDescendants(const TypeLoc &Node, RewriteRule Rule, in rewriteDescendants() argument
324 return rewriteDescendantsImpl(Node, std::move(Rule), Result); in rewriteDescendants()
329 RewriteRule Rule, in rewriteDescendants() argument
332 return rewriteDescendantsImpl(*Node, std::move(Rule), Result); in rewriteDescendants()
334 return rewriteDescendantsImpl(*Node, std::move(Rule), Result); in rewriteDescendants()
336 return rewriteDescendantsImpl(*Node, std::move(Rule), Result); in rewriteDescendants()
345 RewriteRule Rule) { in rewriteDescendants() argument
347 Rule = std::move(Rule)](const MatchResult &Result) in rewriteDescendants()
355 return detail::rewriteDescendants(It->second, std::move(Rule), Result); in rewriteDescendants()
359 void transformer::addInclude(RewriteRuleBase &Rule, StringRef Header, in addInclude() argument
361 for (auto &Case : Rule.Cases) in addInclude()
404 for (auto &Rule : Rules) in applyFirst() local
405 R.Cases.append(Rule.Cases.begin(), Rule.Cases.end()); in applyFirst()
410 transformer::detail::buildMatchers(const RewriteRuleBase &Rule) { in buildMatchers() argument
418 const SmallVectorImpl<RewriteRule::Case> &Cases = Rule.Cases; in buildMatchers()
442 DynTypedMatcher transformer::detail::buildMatcher(const RewriteRuleBase &Rule) { in buildMatcher() argument
443 std::vector<DynTypedMatcher> Ms = buildMatchers(Rule); in buildMatcher()
466 const RewriteRuleBase &Rule) { in findSelectedCase() argument
467 if (Rule.Cases.size() == 1) in findSelectedCase()
471 for (size_t i = 0, N = Rule.Cases.size(); i < N; ++i) { in findSelectedCase()