LLVM
15.0.0git
|
Class representing a numeric variable and its associated current value. More...
#include "FileCheck/FileCheckImpl.h"
Public Member Functions | |
NumericVariable (StringRef Name, ExpressionFormat ImplicitFormat, Optional< size_t > DefLineNumber=None) | |
Constructor for a variable Name with implicit format ImplicitFormat defined at line DefLineNumber or defined before input is parsed if DefLineNumber is None. More... | |
StringRef | getName () const |
ExpressionFormat | getImplicitFormat () const |
Optional< ExpressionValue > | getValue () const |
Optional< StringRef > | getStringValue () const |
void | setValue (ExpressionValue NewValue, Optional< StringRef > NewStrValue=None) |
Sets value of this numeric variable to NewValue , and sets the input buffer string from which it was parsed to NewStrValue . More... | |
void | clearValue () |
Clears value of this numeric variable, regardless of whether it is currently defined or not. More... | |
Optional< size_t > | getDefLineNumber () const |
Class representing a numeric variable and its associated current value.
Definition at line 259 of file FileCheckImpl.h.
|
inlineexplicit |
Constructor for a variable Name
with implicit format ImplicitFormat
defined at line DefLineNumber
or defined before input is parsed if DefLineNumber
is None.
Definition at line 284 of file FileCheckImpl.h.
|
inline |
Clears value of this numeric variable, regardless of whether it is currently defined or not.
Definition at line 316 of file FileCheckImpl.h.
References llvm::None.
Definition at line 323 of file FileCheckImpl.h.
|
inline |
Definition at line 293 of file FileCheckImpl.h.
Referenced by llvm::NumericVariableUse::getImplicitFormat().
|
inline |
Definition at line 290 of file FileCheckImpl.h.
Definition at line 303 of file FileCheckImpl.h.
|
inline |
Definition at line 296 of file FileCheckImpl.h.
Referenced by llvm::NumericVariableUse::eval().
|
inline |
Sets value of this numeric variable to NewValue
, and sets the input buffer string from which it was parsed to NewStrValue
.
See comments on getStringValue for a discussion of when the latter can be None.
Definition at line 308 of file FileCheckImpl.h.