LLVM: llvm::FileCheckPatternContext Class Reference (original) (raw)

Class holding the Pattern 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 "[FileCheck/FileCheckImpl.h](FileCheckImpl%5F8h%5Fsource.html)"

Public Member Functions
Expected< StringRef > getPatternVarValue (StringRef VarName)
Error defineCmdlineVariables (ArrayRef< StringRef > 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.
void createLineVariable ()
Create @LINE pseudo variable.
void clearLocalVars ()
Undefines local variables (variables whose name does not start with a '$' sign), i.e.

Class holding the Pattern 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 410 of file FileCheckImpl.h.

clearLocalVars()

void FileCheckPatternContext::clearLocalVars ( )

createLineVariable()

void FileCheckPatternContext::createLineVariable ( )

defineCmdlineVariables()

Defines string and numeric variables from definitions given on the command line, passed as a vector of [#]VAR=VAL strings in CmdlineDefines.

Returns

an error list containing diagnostics against SM for all definition parsing failures, if any, or Success otherwise.

Definition at line 2512 of file FileCheck.cpp.

References llvm::SourceMgr::AddNewSourceBuffer(), assert(), llvm::ArrayRef< T >::empty(), llvm::StringRef::empty(), llvm::ExpressionAST::eval(), llvm::ErrorDiagnostic::get(), llvm::Expression::getAST(), llvm::MemoryBuffer::getMemBufferCopy(), I, llvm::joinErrors(), Name, llvm::StringRef::npos, llvm::Pattern::parseNumericSubstitutionBlock(), llvm::Pattern::parseVariable(), llvm::SmallVectorTemplateBase< T, bool >::push_back(), llvm::StringRef::split(), llvm::StringRef::substr(), llvm::Error::success(), and llvm::Expected< T >::takeError().

getPatternVarValue()

Pattern


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