class VariadicDynCastAllOfMatcher

Declaration

template <typename SourceT, typename TargetT>
class VariadicDynCastAllOfMatcher { /* full declaration omitted */ };

Description

A VariadicDynCastAllOfMatcher <SourceT , TargetT> object is a variadic functor that takes a number of Matcher <TargetT > and returns a Matcher <SourceT > that matches TargetT nodes that are matched by all of the given matchers, if SourceT can be dynamically casted into TargetT. For example: const VariadicDynCastAllOfMatcher <Decl , CXXRecordDecl> record; Creates a functor record(...) that creates a Matcher <Decl > given a variable number of arguments of type Matcher <CXXRecordDecl >. The returned matcher matches if the given Decl can by dynamically casted to CXXRecordDecl and all given matchers match.

Declared at: clang/include/clang/ASTMatchers/ASTMatchersInternal.h:1316

Templates

SourceT
TargetT

Method Overview

Methods

ΒΆVariadicDynCastAllOfMatcher<SourceT, TargetT>()

Declared at: clang/include/clang/ASTMatchers/ASTMatchersInternal.h:1320