class DynCastAllOfMatcherDescriptor
Declaration
class DynCastAllOfMatcherDescriptor
: public VariadicFuncMatcherDescriptor { /* full declaration omitted */ };
Description
Return CK_Trivial when appropriate for VariadicDynCastAllOfMatchers.
Declared at: clang/lib/ASTMatchers/Dynamic/Marshallers.h:589
Inherits from: VariadicFuncMatcherDescriptor
Member Variables
- private const clang::ASTNodeKind DerivedKind
Method Overview
- public template <typename BaseT, typename DerivedT> DynCastAllOfMatcherDescriptor(ast_matchers::internal::VariadicDynCastAllOfMatcher<BaseT, DerivedT> Func, llvm::StringRef MatcherName)
- public bool isConvertibleTo(clang::ASTNodeKind Kind, unsigned int * Specificity, clang::ASTNodeKind * LeastDerivedKind) const
- public clang::ASTNodeKind nodeMatcherType() const
Inherited from VariadicFuncMatcherDescriptor:
- public create
- public getArgKinds
- public getNumArgs
- public isConvertibleTo
- public isVariadic
- public nodeMatcherType
Inherited from MatcherDescriptor:
- public buildMatcherCtor
- public create
- public getArgKinds
- public getNumArgs
- public isBuilderMatcher
- public isConvertibleTo
- public isPolymorphic
- public isVariadic
- public nodeMatcherType
Methods
¶template <typename BaseT, typename DerivedT>
DynCastAllOfMatcherDescriptor(
ast_matchers::internal::
VariadicDynCastAllOfMatcher<BaseT,
DerivedT>
Func,
llvm::StringRef MatcherName)
template <typename BaseT, typename DerivedT>
DynCastAllOfMatcherDescriptor(
ast_matchers::internal::
VariadicDynCastAllOfMatcher<BaseT,
DerivedT>
Func,
llvm::StringRef MatcherName)
Declared at: clang/lib/ASTMatchers/Dynamic/Marshallers.h:592
Templates
- BaseT
- DerivedT
Parameters
- ast_matchers::internal:: VariadicDynCastAllOfMatcher<BaseT, DerivedT> Func
- llvm::StringRef MatcherName
¶bool isConvertibleTo(
clang::ASTNodeKind Kind,
unsigned int* Specificity,
clang::ASTNodeKind* LeastDerivedKind) const
bool isConvertibleTo(
clang::ASTNodeKind Kind,
unsigned int* Specificity,
clang::ASTNodeKind* LeastDerivedKind) const
Description
Returns whether this matcher is convertible to the given type. If it is so convertible, store in *Specificity a value corresponding to the "specificity" of the converted matcher to the given context, and in *LeastDerivedKind the least derived matcher kind which would result in the same matcher overload. Zero specificity indicates that this conversion would produce a trivial matcher that will either always or never match. Such matchers are excluded from code completion results.
Declared at: clang/lib/ASTMatchers/Dynamic/Marshallers.h:598
Parameters
- clang::ASTNodeKind Kind
- unsigned int* Specificity
- clang::ASTNodeKind* LeastDerivedKind
¶clang::ASTNodeKind nodeMatcherType() const
clang::ASTNodeKind nodeMatcherType() const
Declared at: clang/lib/ASTMatchers/Dynamic/Marshallers.h:616