clang 24.0.0git
MatchConsumer.h File Reference
#include "clang/AST/ASTTypeTraits.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Errc.h"
#include "llvm/Support/Error.h"

Go to the source code of this file.

Classes

class  clang::transformer::MatchComputation< T >
 A failable computation over nodes bound by AST matchers, with (limited) reflection via the toString method. More...

Namespaces

namespace  clang
 Top level wrappers for InstallAPI frontend operations.
namespace  clang::transformer

Typedefs

template<typename T>
using clang::transformer::MatchConsumer
 A failable computation over nodes bound by AST matchers.

Functions

llvm::Error clang::transformer::notBoundError (llvm::StringRef Id)
 Creates an error that signals that a MatchConsumer expected a certain node to be bound by AST matchers, but it was not actually bound.
template<typename T>
MatchConsumer< Tclang::transformer::ifBound (std::string ID, MatchConsumer< T > TrueC, MatchConsumer< T > FalseC)
 Chooses between the two consumers, based on whether ID is bound in the match.