class ForEachMatcher
Declaration
template <typename T, typename ChildT>
class ForEachMatcher { /* full declaration omitted */ };
Description
Matches nodes of type T that have child nodes of type ChildT for which a specified child matcher matches. ChildT must be an AST base type. As opposed to the HasMatcher, the ForEachMatcher will produce a match for each child that matches.
Declared at: clang/include/clang/ASTMatchers/ASTMatchersInternal.h:1627
Templates
- T
- ChildT
Member Variables
- private clang::ast_matchers::internal::DynTypedMatcher InnerMatcher
Method Overview
- public ForEachMatcher<T, ChildT>(const Matcher<ChildT> & InnerMatcher)
- public bool matches(const T & Node, clang::ast_matchers::internal::ASTMatchFinder * Finder, clang::ast_matchers::internal::BoundNodesTreeBuilder * Builder) const
Methods
¶ForEachMatcher<T, ChildT>(
const Matcher<ChildT>& InnerMatcher)
ForEachMatcher<T, ChildT>(
const Matcher<ChildT>& InnerMatcher)
Declared at: clang/include/clang/ASTMatchers/ASTMatchersInternal.h:1634
Parameters
- const Matcher<ChildT>& InnerMatcher
¶bool matches(
const T& Node,
clang::ast_matchers::internal::ASTMatchFinder*
Finder,
clang::ast_matchers::internal::
BoundNodesTreeBuilder* Builder) const
bool matches(
const T& Node,
clang::ast_matchers::internal::ASTMatchFinder*
Finder,
clang::ast_matchers::internal::
BoundNodesTreeBuilder* Builder) const
Declared at: clang/include/clang/ASTMatchers/ASTMatchersInternal.h:1637
Parameters
- const T& Node
- clang::ast_matchers::internal::ASTMatchFinder* Finder
- clang::ast_matchers::internal:: BoundNodesTreeBuilder* Builder