class HasParentMatcher
Declaration
template <typename T, typename ParentT>
class HasParentMatcher { /* full declaration omitted */ };
Description
Matches nodes of type \c T that have a parent node of type \c ParentT for which the given inner matcher matches. \c ParentT must be an AST base type.
Declared at: clang/include/clang/ASTMatchers/ASTMatchersInternal.h:1679
Templates
- T
- ParentT
Member Variables
- private clang::ast_matchers::internal::DynTypedMatcher ParentMatcher
Method Overview
- public HasParentMatcher<T, ParentT>(const Matcher<ParentT> & ParentMatcher)
- public bool matches(const T & Node, clang::ast_matchers::internal::ASTMatchFinder * Finder, clang::ast_matchers::internal::BoundNodesTreeBuilder * Builder) const
Methods
¶HasParentMatcher<T, ParentT>(
const Matcher<ParentT>& ParentMatcher)
HasParentMatcher<T, ParentT>(
const Matcher<ParentT>& ParentMatcher)
Declared at: clang/include/clang/ASTMatchers/ASTMatchersInternal.h:1686
Parameters
- const Matcher<ParentT>& ParentMatcher
¶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:1689
Parameters
- const T& Node
- clang::ast_matchers::internal::ASTMatchFinder* Finder
- clang::ast_matchers::internal:: BoundNodesTreeBuilder* Builder