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

Methods

ExpressionAST(llvm::StringRef ExpressionStr)

Declared at: llvm/lib/FileCheck/FileCheckImpl.h:178

Parameters

llvm::StringRef ExpressionStr

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

Declared at: llvm/lib/FileCheck/FileCheckImpl.h:182

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()

Declared at: llvm/lib/FileCheck/FileCheckImpl.h:180