LLVM  10.0.0svn
Public Member Functions | List of all members
llvm::FileCheckExpressionAST Class Referenceabstract

Base class representing the AST of a given expression. More...

#include "Support/FileCheckImpl.h"

Inheritance diagram for llvm::FileCheckExpressionAST:
Inheritance graph
[legend]

Public Member Functions

virtual ~FileCheckExpressionAST ()=default
 
virtual Expected< uint64_t > eval () const =0
 Evaluates and. More...
 

Detailed Description

Base class representing the AST of a given expression.

Definition at line 34 of file FileCheckImpl.h.

Constructor & Destructor Documentation

◆ ~FileCheckExpressionAST()

virtual llvm::FileCheckExpressionAST::~FileCheckExpressionAST ( )
virtualdefault

Member Function Documentation

◆ eval()

virtual Expected<uint64_t> llvm::FileCheckExpressionAST::eval ( ) const
pure virtual

Evaluates and.

Returns
the value of the expression represented by this AST or an error if evaluation fails.

Implemented in llvm::FileCheckASTBinop, llvm::FileCheckNumericVariableUse, and llvm::FileCheckExpressionLiteral.

Referenced by llvm::FileCheckASTBinop::FileCheckASTBinop(), and llvm::FileCheckNumericVariableUse::FileCheckNumericVariableUse().


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