LLVM  9.0.0svn
Public Member Functions | List of all members
llvm::FileCheckNumericSubstitution Class Reference

#include "llvm/Support/FileCheck.h"

Inheritance diagram for llvm::FileCheckNumericSubstitution:
Inheritance graph
[legend]
Collaboration diagram for llvm::FileCheckNumericSubstitution:
Collaboration graph
[legend]

Public Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from llvm::FileCheckSubstitution
FileCheckPatternContextContext
 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 230 of file FileCheck.h.

Constructor & Destructor Documentation

◆ FileCheckNumericSubstitution()

llvm::FileCheckNumericSubstitution::FileCheckNumericSubstitution ( FileCheckPatternContext Context,
StringRef  Expr,
std::unique_ptr< FileCheckExpressionAST ExprAST,
size_t  InsertIdx 
)
inline

Definition at line 237 of file FileCheck.h.

Member Function Documentation

◆ getResult()

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

Implements llvm::FileCheckSubstitution.

Definition at line 63 of file FileCheck.cpp.

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


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