class NumericSubstitution

Declaration

class NumericSubstitution : public Substitution { /* full declaration omitted */ };

Description

Class representing a substitution to perform in the RegExStr string.

Declared at: llvm/lib/Support/FileCheckImpl.h:217

Inherits from: Substitution

Member Variables

Inherited from Substitution:

protected Context
protected FromStr
protected InsertIdx

Method Overview

  • public NumericSubstitution(llvm::FileCheckPatternContext * Context, llvm::StringRef Expr, std::unique_ptr<ExpressionAST> ExprAST, size_t InsertIdx)
  • public Expected<std::string> getResult() const

Inherited from Substitution:

Methods

NumericSubstitution(
    llvm::FileCheckPatternContext* Context,
    llvm::StringRef Expr,
    std::unique_ptr<ExpressionAST> ExprAST,
    size_t InsertIdx)

Declared at: llvm/lib/Support/FileCheckImpl.h:224

Parameters

llvm::FileCheckPatternContext* Context
llvm::StringRef Expr
std::unique_ptr<ExpressionAST> ExprAST
size_t InsertIdx

Expected<std::string> getResult() const

Declared at: llvm/lib/Support/FileCheckImpl.h:232

Returns

a string containing the result of evaluating the expression in this substitution, or an error if evaluation failed.