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/FileCheck/FileCheckImpl.h:434
Inherits from: Substitution
Member Variables
- private std::unique_ptr<Expression> ExpressionPointer
- Pointer to the class representing the expression whose value is to be substituted.
Inherited from Substitution:
Method Overview
- public NumericSubstitution(llvm::FileCheckPatternContext * Context, llvm::StringRef ExpressionStr, std::unique_ptr<Expression> ExpressionPointer, size_t InsertIdx)
- public Expected<std::string> getResult() const
Inherited from Substitution:
Methods
¶NumericSubstitution(
llvm::FileCheckPatternContext* Context,
llvm::StringRef ExpressionStr,
std::unique_ptr<Expression> ExpressionPointer,
size_t InsertIdx)
NumericSubstitution(
llvm::FileCheckPatternContext* Context,
llvm::StringRef ExpressionStr,
std::unique_ptr<Expression> ExpressionPointer,
size_t InsertIdx)
Declared at: llvm/lib/FileCheck/FileCheckImpl.h:441
Parameters
- llvm::FileCheckPatternContext* Context
- llvm::StringRef ExpressionStr
- std::unique_ptr<Expression> ExpressionPointer
- size_t InsertIdx
¶Expected<std::string> getResult() const
Expected<std::string> getResult() const
Declared at: llvm/lib/FileCheck/FileCheckImpl.h:449
Returns
a string containing the result of evaluating the expression in this substitution, or an error if evaluation failed.