class MemoizedMatcher

Declaration

template <typename Matcher, Matcher (*)() Func>
class MemoizedMatcher { /* full declaration omitted */ };

Description

A simple memoizer of T(*)() functions. It will call the passed 'Func' template parameter at most once. Used to support AST_MATCHER_FUNCTION() macro.

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

Templates

Matcher
Matcher (*)() Func

Method Overview

Methods

ΒΆstatic const Matcher& getInstance()

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