class VariantMatcher::MatcherOps

Declaration

class VariantMatcher::MatcherOps { /* full declaration omitted */ };

Description

Methods that depend on T from hasTypedMatcher/getTypedMatcher.

Declared at: clang/include/clang/ASTMatchers/Dynamic/VariantValue.h:107

Member Variables

private clang::ASTNodeKind NodeKind

Method Overview

  • public MatcherOps(clang::ASTNodeKind NodeKind)
  • public bool canConstructFrom(const clang::ast_matchers::internal::DynTypedMatcher & Matcher, bool & IsExactMatch) const
  • public llvm::Optional<DynTypedMatcher> constructVariadicOperator(DynTypedMatcher::VariadicOperator Op, ArrayRef<clang::ast_matchers::dynamic::VariantMatcher> InnerMatchers) const
  • public clang::ast_matchers::internal::DynTypedMatcher convertMatcher(const clang::ast_matchers::internal::DynTypedMatcher & Matcher) const

Methods

MatcherOps(clang::ASTNodeKind NodeKind)

Declared at: clang/include/clang/ASTMatchers/Dynamic/VariantValue.h:109

Parameters

clang::ASTNodeKind NodeKind

bool canConstructFrom(
    const clang::ast_matchers::internal::
        DynTypedMatcher& Matcher,
    bool& IsExactMatch) const

Declared at: clang/include/clang/ASTMatchers/Dynamic/VariantValue.h:111

Parameters

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

llvm::Optional<DynTypedMatcher>
constructVariadicOperator(
    DynTypedMatcher::VariadicOperator Op,
    ArrayRef<clang::ast_matchers::dynamic::
                 VariantMatcher> InnerMatchers)
    const

Description

Constructs a variadic typed matcher from \p InnerMatchers. Will try to convert each inner matcher to the destination type and return llvm::None if it fails to do so.

Declared at: clang/include/clang/ASTMatchers/Dynamic/VariantValue.h:122

Parameters

DynTypedMatcher::VariadicOperator Op
ArrayRef< clang::ast_matchers::dynamic::VariantMatcher> InnerMatchers

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

Description

Convert \p Matcher the destination type and return it as a new DynTypedMatcher.

Declared at: clang/include/clang/ASTMatchers/Dynamic/VariantValue.h:116

Parameters

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