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

#include "Support/FileCheckImpl.h"

Inheritance diagram for llvm::FileCheckStringSubstitution:
Inheritance graph
Collaboration diagram for llvm::FileCheckStringSubstitution:
Collaboration graph

Public Member Functions

 FileCheckStringSubstitution (FileCheckPatternContext *Context, StringRef VarName, 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
 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 208 of file FileCheckImpl.h.

Constructor & Destructor Documentation

◆ FileCheckStringSubstitution()

llvm::FileCheckStringSubstitution::FileCheckStringSubstitution ( FileCheckPatternContext Context,
StringRef  VarName,
size_t  InsertIdx 

Definition at line 210 of file FileCheckImpl.h.

Member Function Documentation

◆ getResult()

Expected< std::string > FileCheckStringSubstitution::getResult ( ) const
the text that the string variable in this substitution matched when defined, or an error if the variable is undefined.

Implements llvm::FileCheckSubstitution.

Definition at line 61 of file FileCheck.cpp.

References Context, llvm::Regex::escape(), and llvm::Expected< T >::takeError().

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