15#ifndef LLVM_CLANG_TOOLING_TRANSFORMER_MATCHCONSUMER_H
16#define LLVM_CLANG_TOOLING_TRANSFORMER_MATCHCONSUMER_H
20#include "llvm/ADT/StringRef.h"
21#include "llvm/Support/Errc.h"
22#include "llvm/Support/Error.h"
25namespace transformer {
40 return llvm::make_error<llvm::StringError>(llvm::errc::invalid_argument,
41 "Id not bound: " +
Id);
50 auto &Map =
Result.Nodes.getMap();
51 return (Map.find(
ID) != Map.end() ? TrueC : FalseC)(
Result);
97 if (
auto Err = eval(R, &Output))
98 return std::move(Err);
The JSON file list parser is used to communicate input to InstallAPI.
@ Result
The result type of a method or function.
const FunctionProtoType * T
Contains all information for a given match.