LLVM  10.0.0svn
Public Member Functions | List of all members
llvm::FileCheckNumericVariableUse Class Reference

Class representing the use of a numeric variable in the AST of an expression. More...

#include "Support/FileCheckImpl.h"

Inheritance diagram for llvm::FileCheckNumericVariableUse:
Inheritance graph
[legend]
Collaboration diagram for llvm::FileCheckNumericVariableUse:
Collaboration graph
[legend]

Public Member Functions

 FileCheckNumericVariableUse (StringRef Name, FileCheckNumericVariable *NumericVariable)
 
Expected< uint64_t > eval () const
 
- Public Member Functions inherited from llvm::FileCheckExpressionAST
virtual ~FileCheckExpressionAST ()=default
 

Detailed Description

Class representing the use of a numeric variable in the AST of an expression.

Definition at line 122 of file FileCheckImpl.h.

Constructor & Destructor Documentation

◆ FileCheckNumericVariableUse()

llvm::FileCheckNumericVariableUse::FileCheckNumericVariableUse ( StringRef  Name,
FileCheckNumericVariable NumericVariable 
)
inline

Definition at line 131 of file FileCheckImpl.h.

References llvm::FileCheckExpressionAST::eval().

Member Function Documentation

◆ eval()

Expected< uint64_t > FileCheckNumericVariableUse::eval ( ) const
virtual
Returns
the value of the variable referenced by this instance.

Implements llvm::FileCheckExpressionAST.

Definition at line 28 of file FileCheck.cpp.

References llvm::FileCheckNumericVariable::getValue().


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