LLVM
10.0.0svn
|
Class representing a numeric variable and its associated current value. More...
#include "Support/FileCheckImpl.h"
Public Member Functions | |
FileCheckNumericVariable (StringRef Name, Optional< size_t > DefLineNumber=None) | |
Constructor for a variable Name defined at line DefLineNumber or defined before input is parsed if DefLineNumber is None. More... | |
StringRef | getName () const |
Optional< uint64_t > | getValue () const |
void | setValue (uint64_t NewValue) |
Sets value of this numeric variable to NewValue . More... | |
void | clearValue () |
Clears value of this numeric variable, regardless of whether it is currently defined or not. More... | |
Optional< size_t > | getDefLineNumber () |
Class representing a numeric variable and its associated current value.
Definition at line 82 of file FileCheckImpl.h.
|
inlineexplicit |
Constructor for a variable Name
defined at line DefLineNumber
or defined before input is parsed if DefLineNumber
is None.
Definition at line 98 of file FileCheckImpl.h.
|
inline |
Clears value of this numeric variable, regardless of whether it is currently defined or not.
Definition at line 113 of file FileCheckImpl.h.
References llvm::None.
Definition at line 117 of file FileCheckImpl.h.
Referenced by popFront().
|
inline |
Definition at line 103 of file FileCheckImpl.h.
References Name.
|
inline |
Definition at line 106 of file FileCheckImpl.h.
Referenced by llvm::FileCheckNumericVariableUse::eval().
|
inline |
Sets value of this numeric variable to NewValue
.
Definition at line 109 of file FileCheckImpl.h.
Referenced by llvm::FileCheckPattern::match().