class ExpressionAST
Declaration
class ExpressionAST { /* full declaration omitted */ };
Description
Base class representing the AST of a given expression.
Declared at: llvm/lib/FileCheck/FileCheckImpl.h:173
Member Variables
- private llvm::StringRef ExpressionStr
Method Overview
- public ExpressionAST(llvm::StringRef ExpressionStr)
- public virtual Expected<llvm::ExpressionValue> eval() const
- public llvm::StringRef getExpressionStr() const
- public virtual Expected<llvm::ExpressionFormat> getImplicitFormat(const llvm::SourceMgr & SM) const
- public virtual ~ExpressionAST()
Methods
¶ExpressionAST(llvm::StringRef ExpressionStr)
ExpressionAST(llvm::StringRef ExpressionStr)
Declared at: llvm/lib/FileCheck/FileCheckImpl.h:178
Parameters
- llvm::StringRef ExpressionStr
¶virtual Expected<llvm::ExpressionValue> eval()
const
virtual Expected<llvm::ExpressionValue> eval()
const
Description
Evaluates and
Declared at: llvm/lib/FileCheck/FileCheckImpl.h:186
Returns
the value of the expression represented by this AST or an error if evaluation fails.
¶llvm::StringRef getExpressionStr() const
llvm::StringRef getExpressionStr() const
Declared at: llvm/lib/FileCheck/FileCheckImpl.h:182
¶virtual Expected<llvm::ExpressionFormat>
getImplicitFormat(const llvm::SourceMgr& SM) const
virtual Expected<llvm::ExpressionFormat>
getImplicitFormat(const llvm::SourceMgr& SM) const
Declared at: llvm/lib/FileCheck/FileCheckImpl.h:193
Parameters
- const llvm::SourceMgr& SM
Returns
either the implicit format of this AST, a diagnostic against\p SM if implicit formats of the AST's components conflict, or NoFormat if the AST has no implicit format (e.g. AST is made up of a single literal).
¶virtual ~ExpressionAST()
virtual ~ExpressionAST()
Declared at: llvm/lib/FileCheck/FileCheckImpl.h:180