LLVM  10.0.0
Public Member Functions | List of all members
llvm::NumericSubstitution Class Reference

#include "Support/FileCheckImpl.h"

Inheritance diagram for llvm::NumericSubstitution:
[legend]
Collaboration diagram for llvm::NumericSubstitution:
[legend]

Public Member Functions

 NumericSubstitution (FileCheckPatternContext *Context, StringRef Expr, std::unique_ptr< ExpressionAST > ExprAST, size_t InsertIdx)
 
Expected< std::string > getResult () const override
 
- Public Member Functions inherited from llvm::Substitution
 Substitution (FileCheckPatternContext *Context, StringRef VarName, size_t InsertIdx)
 
virtual ~Substitution ()=default
 
StringRef getFromString () const
 
size_t getIndex () const
 

Additional Inherited Members

- Protected Attributes inherited from llvm::Substitution
FileCheckPatternContext * Context
 Pointer to a class instance holding, among other things, the table with the values of live string variables at the start of any given CHECK line. More...
 
StringRef FromStr
 The string that needs to be substituted for something else. More...
 
size_t InsertIdx
 

Detailed Description

Definition at line 217 of file FileCheckImpl.h.

Constructor & Destructor Documentation

◆ NumericSubstitution()

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

Definition at line 224 of file FileCheckImpl.h.

Member Function Documentation

◆ getResult()

Expected< std::string > NumericSubstitution::getResult ( ) const
overridevirtual
Returns
a string containing the result of evaluating the expression in this substitution, or an error if evaluation failed.

Implements llvm::Substitution.

Definition at line 54 of file FileCheck.cpp.

References llvm::Expected< T >::takeError(), and llvm::utostr().


The documentation for this class was generated from the following files: