class BindableMatcher

Declaration

template <typename T>
class BindableMatcher { /* full declaration omitted */ };

Description

A Matcher that allows binding the node it matches to an id. BindableMatcher provides a \a bind() method that allows binding the matched node to an id if the match was successful.

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

Templates

T

Method Overview

Methods

BindableMatcher<T>(const Matcher<T>& M)

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

Parameters

const Matcher<T>& M

BindableMatcher<T>(
    MatcherInterface<T>* Implementation)

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

Parameters

MatcherInterface<T>* Implementation

Matcher<T> bind(llvm::StringRef ID) const

Description

Returns a matcher that will bind the matched node on a match. The returned matcher is equivalent to this matcher, but will bind the matched node on a match.

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

Parameters

llvm::StringRef ID

clang::ast_matchers::internal::DynTypedMatcher
operator DynTypedMatcher() const

Description

Same as Matcher <T >'s conversion operator, but enables binding on the returned matcher.

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