class HasDescendantMatcher
Declaration
template <typename T, typename DescendantT>
class HasDescendantMatcher { /* full declaration omitted */ };
Description
Matches nodes of type T that have at least one descendant node of type DescendantT for which the given inner matcher matches. DescendantT must be an AST base type.
Declared at: clang/include/clang/ASTMatchers/ASTMatchersInternal.h:1657
Templates
- T
- DescendantT
Member Variables
- private clang::ast_matchers::internal::DynTypedMatcher DescendantMatcher
Method Overview
- public HasDescendantMatcher<T, DescendantT>(const Matcher<DescendantT> & DescendantMatcher)
- public bool matches(const T & Node, clang::ast_matchers::internal::ASTMatchFinder * Finder, clang::ast_matchers::internal::BoundNodesTreeBuilder * Builder) const
Methods
¶HasDescendantMatcher<T, DescendantT>(
const Matcher<DescendantT>& DescendantMatcher)
HasDescendantMatcher<T, DescendantT>(
const Matcher<DescendantT>& DescendantMatcher)
Declared at: clang/include/clang/ASTMatchers/ASTMatchersInternal.h:1664
Parameters
- const Matcher<DescendantT>& DescendantMatcher
¶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:1667
Parameters
- const T& Node
- clang::ast_matchers::internal::ASTMatchFinder* Finder
- clang::ast_matchers::internal:: BoundNodesTreeBuilder* Builder