class VariantMatcher::PolymorphicPayload
Declaration
class VariantMatcher::PolymorphicPayload : public Payload { /* full declaration omitted */ };
Description
Payload interface to be specialized by each matcher type. It follows a similar interface as VariantMatcher itself.
Declared at: clang/lib/ASTMatchers/Dynamic/VariantValue.cpp:120
Inherits from: VariantMatcher::Payload
Member Variables
- public const std::vector<DynTypedMatcher> Matchers
Method Overview
- public PolymorphicPayload(std::vector<DynTypedMatcher> MatchersIn)
- public llvm::Optional<DynTypedMatcher> getSingleMatcher() const
- public std::string getTypeAsString() const
- public llvm::Optional<DynTypedMatcher> getTypedMatcher(const clang::ast_matchers::dynamic::VariantMatcher::MatcherOps & Ops) const
- public bool isConvertibleTo(clang::ASTNodeKind Kind, unsigned int * Specificity) const
- public ~PolymorphicPayload()
Inherited from VariantMatcher::Payload:
Methods
¶PolymorphicPayload(
std::vector<DynTypedMatcher> MatchersIn)
PolymorphicPayload(
std::vector<DynTypedMatcher> MatchersIn)
Declared at: clang/lib/ASTMatchers/Dynamic/VariantValue.cpp:122
Parameters
- std::vector<DynTypedMatcher> MatchersIn
¶llvm::Optional<DynTypedMatcher> getSingleMatcher()
const
llvm::Optional<DynTypedMatcher> getSingleMatcher()
const
Declared at: clang/lib/ASTMatchers/Dynamic/VariantValue.cpp:127
¶std::string getTypeAsString() const
std::string getTypeAsString() const
Declared at: clang/lib/ASTMatchers/Dynamic/VariantValue.cpp:133
¶llvm::Optional<DynTypedMatcher> getTypedMatcher(
const clang::ast_matchers::dynamic::
VariantMatcher::MatcherOps& Ops) const
llvm::Optional<DynTypedMatcher> getTypedMatcher(
const clang::ast_matchers::dynamic::
VariantMatcher::MatcherOps& Ops) const
Declared at: clang/lib/ASTMatchers/Dynamic/VariantValue.cpp:144
Parameters
- const clang::ast_matchers::dynamic:: VariantMatcher::MatcherOps& Ops
¶bool isConvertibleTo(
clang::ASTNodeKind Kind,
unsigned int* Specificity) const
bool isConvertibleTo(
clang::ASTNodeKind Kind,
unsigned int* Specificity) const
Declared at: clang/lib/ASTMatchers/Dynamic/VariantValue.cpp:168
Parameters
- clang::ASTNodeKind Kind
- unsigned int* Specificity
¶~PolymorphicPayload()
~PolymorphicPayload()
Declared at: clang/lib/ASTMatchers/Dynamic/VariantValue.cpp:125