class SingleNodeMatcherInterface

Declaration

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

Description

Interface for matchers that only evaluate properties on a single node.

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

Templates

T

Method Overview

  • private bool matches(const T & Node, clang::ast_matchers::internal::ASTMatchFinder *, clang::ast_matchers::internal::BoundNodesTreeBuilder *) const
  • public virtual bool matchesNode(const T & Node) const

Methods

bool matches(const T& Node,
             clang::ast_matchers::internal::
                 ASTMatchFinder*,
             clang::ast_matchers::internal::
                 BoundNodesTreeBuilder*) const

Description

Implements MatcherInterface::Matches.

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

Parameters

const T& Node
clang::ast_matchers::internal::ASTMatchFinder*
clang::ast_matchers::internal:: BoundNodesTreeBuilder*

virtual bool matchesNode(const T& Node) const

Description

Returns true if the matcher matches the provided node. A subclass must implement this instead of Matches().

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

Parameters

const T& Node