LLVM 20.0.0git
|
#include "FileCheck/FileCheckImpl.h"
Public Member Functions | |
StringSubstitution (FileCheckPatternContext *Context, StringRef VarName, 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 |
virtual Expected< std::string > | getResult () const =0 |
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. | |
StringRef | FromStr |
The string that needs to be substituted for something else. | |
size_t | InsertIdx |
Definition at line 374 of file FileCheckImpl.h.
|
inline |
Definition at line 376 of file FileCheckImpl.h.
|
overridevirtual |
Implements llvm::Substitution.
Definition at line 278 of file FileCheck.cpp.
References llvm::Substitution::Context, llvm::Regex::escape(), llvm::Substitution::FromStr, llvm::FileCheckPatternContext::getPatternVarValue(), and llvm::Expected< T >::takeError().