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

Class holding the FileCheckPattern global state, shared by all patterns: tables holding values of variables and whether they are defined or not at any given time in the matching process. More...

#include "llvm/Support/FileCheck.h"

Public Member Functions

Expected< StringRefgetPatternVarValue (StringRef VarName)
 
Error defineCmdlineVariables (std::vector< std::string > &CmdlineDefines, SourceMgr &SM)
 Defines string and numeric variables from definitions given on the command line, passed as a vector of [#]VAR=VAL strings in CmdlineDefines. More...
 
void createLineVariable ()
 Create pseudo variable. More...
 
void clearLocalVars ()
 Undefines local variables (variables whose name does not start with a '$' sign), i.e. More...
 

Friends

class FileCheckPattern
 

Detailed Description

Class holding the FileCheckPattern global state, shared by all patterns: tables holding values of variables and whether they are defined or not at any given time in the matching process.

Definition at line 299 of file FileCheck.h.

Member Function Documentation

◆ clearLocalVars()

void FileCheckPatternContext::clearLocalVars ( )

Undefines local variables (variables whose name does not start with a '$' sign), i.e.

removes them from GlobalVariableTable and from GlobalNumericVariableTable and also clears the value of numeric variables.

Definition at line 1866 of file FileCheck.cpp.

References llvm::SmallVectorTemplateBase< T >::push_back().

◆ createLineVariable()

void FileCheckPatternContext::createLineVariable ( )

Create pseudo variable.

Value is set when pattern are being matched.

Definition at line 1104 of file FileCheck.cpp.

References assert().

◆ defineCmdlineVariables()

Error FileCheckPatternContext::defineCmdlineVariables ( std::vector< std::string > &  CmdlineDefines,
SourceMgr SM 
)

◆ getPatternVarValue()

Expected< StringRef > FileCheckPatternContext::getPatternVarValue ( StringRef  VarName)

Friends And Related Function Documentation

◆ FileCheckPattern

friend class FileCheckPattern
friend

Definition at line 300 of file FileCheck.h.


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