class DynMatcherInterface
Declaration
class DynMatcherInterface : public ThreadSafeRefCountedBase { /* full declaration omitted */ };
Description
Generic interface for all matchers. Used by the implementation of Matcher <T > and DynTypedMatcher. In general, implement MatcherInterface <T > or SingleNodeMatcherInterface <T > instead.
Declared at: clang/include/clang/ASTMatchers/ASTMatchersInternal.h:342
Inherits from: ThreadSafeRefCountedBase
Method Overview
- public virtual llvm::Optional<clang::TraversalKind> TraversalKind() const
- public virtual bool dynMatches(const clang::DynTypedNode & DynNode, clang::ast_matchers::internal::ASTMatchFinder * Finder, clang::ast_matchers::internal::BoundNodesTreeBuilder * Builder) const
- public virtual ~DynMatcherInterface()
Methods
¶virtual llvm::Optional<clang::TraversalKind>
TraversalKind() const
virtual llvm::Optional<clang::TraversalKind>
TraversalKind() const
Declared at: clang/include/clang/ASTMatchers/ASTMatchersInternal.h:354
¶virtual bool dynMatches(
const clang::DynTypedNode& DynNode,
clang::ast_matchers::internal::ASTMatchFinder*
Finder,
clang::ast_matchers::internal::
BoundNodesTreeBuilder* Builder) const
virtual bool dynMatches(
const clang::DynTypedNode& DynNode,
clang::ast_matchers::internal::ASTMatchFinder*
Finder,
clang::ast_matchers::internal::
BoundNodesTreeBuilder* Builder) const
Description
Returns true if \p DynNode can be matched. May bind \p DynNode to an ID via \p Builder, or recurse into the AST via \p Finder.
Declared at: clang/include/clang/ASTMatchers/ASTMatchersInternal.h:351
Parameters
- const clang::DynTypedNode& DynNode
- clang::ast_matchers::internal::ASTMatchFinder* Finder
- clang::ast_matchers::internal:: BoundNodesTreeBuilder* Builder
¶virtual ~DynMatcherInterface()
virtual ~DynMatcherInterface()
Declared at: clang/include/clang/ASTMatchers/ASTMatchersInternal.h:345