class NumericVariable
Declaration
class NumericVariable { /* full declaration omitted */ };
Description
Class representing a numeric variable and its associated current value.
Declared at: llvm/lib/Support/FileCheckImpl.h:82
Method Overview
- public NumericVariable(llvm::StringRef Name, Optional<size_t> DefLineNumber = None)
- public void clearValue()
- public Optional<size_t> getDefLineNumber() const
- public llvm::StringRef getName() const
- public Optional<uint64_t> getValue() const
- public void setValue(uint64_t NewValue)
Methods
¶NumericVariable(
llvm::StringRef Name,
Optional<size_t> DefLineNumber = None)
NumericVariable(
llvm::StringRef Name,
Optional<size_t> DefLineNumber = None)
Description
Constructor for a variable \p Name defined at line \p DefLineNumber or defined before input is parsed if \p DefLineNumber is None.
Declared at: llvm/lib/Support/FileCheckImpl.h:98
Parameters
- llvm::StringRef Name
- Optional<size_t> DefLineNumber = None
¶void clearValue()
void clearValue()
Description
Clears value of this numeric variable, regardless of whether it is currently defined or not.
Declared at: llvm/lib/Support/FileCheckImpl.h:113
¶Optional<size_t> getDefLineNumber() const
Optional<size_t> getDefLineNumber() const
Declared at: llvm/lib/Support/FileCheckImpl.h:117
Returns
the line number where this variable is defined, if any, or None if defined before input is parsed.
¶llvm::StringRef getName() const
llvm::StringRef getName() const
Declared at: llvm/lib/Support/FileCheckImpl.h:103
Returns
name of this numeric variable.
¶Optional<uint64_t> getValue() const
Optional<uint64_t> getValue() const
Declared at: llvm/lib/Support/FileCheckImpl.h:106
Returns
this variable's value.
¶void setValue(uint64_t NewValue)
void setValue(uint64_t NewValue)
Description
Sets value of this numeric variable to \p NewValue.
Declared at: llvm/lib/Support/FileCheckImpl.h:109
Parameters
- uint64_t NewValue