class VariantMatcher::SinglePayload

Declaration

class VariantMatcher::SinglePayload : 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:90

Inherits from: VariantMatcher::Payload

Member Variables

private const clang::ast_matchers::internal:: DynTypedMatcher Matcher

Method Overview

  • public SinglePayload(const clang::ast_matchers::internal::DynTypedMatcher & Matcher)
  • 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

Inherited from VariantMatcher::Payload:

Methods

SinglePayload(
    const clang::ast_matchers::internal::
        DynTypedMatcher& Matcher)

Declared at: clang/lib/ASTMatchers/Dynamic/VariantValue.cpp:92

Parameters

const clang::ast_matchers::internal:: DynTypedMatcher& Matcher

llvm::Optional<DynTypedMatcher> getSingleMatcher()
    const

Declared at: clang/lib/ASTMatchers/Dynamic/VariantValue.cpp:94

std::string getTypeAsString() const

Declared at: clang/lib/ASTMatchers/Dynamic/VariantValue.cpp:98

llvm::Optional<DynTypedMatcher> getTypedMatcher(
    const clang::ast_matchers::dynamic::
        VariantMatcher::MatcherOps& Ops) const

Declared at: clang/lib/ASTMatchers/Dynamic/VariantValue.cpp:104

Parameters

const clang::ast_matchers::dynamic:: VariantMatcher::MatcherOps& Ops

bool isConvertibleTo(
    clang::ASTNodeKind Kind,
    unsigned int* Specificity) const

Declared at: clang/lib/ASTMatchers/Dynamic/VariantValue.cpp:111

Parameters

clang::ASTNodeKind Kind
unsigned int* Specificity