class Expression

Declaration

class Expression { /* full declaration omitted */ };

Description

Class representing an expression and its matching format.

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

Member Variables

private std::unique_ptr<ExpressionAST> AST
Pointer to AST of the expression.
private llvm::ExpressionFormat Format
Format to use (e.g. hex upper case letters) when matching the value.

Method Overview

  • public Expression(std::unique_ptr<ExpressionAST> AST, llvm::ExpressionFormat Format)
  • public llvm::ExpressionAST * getAST() const
  • public llvm::ExpressionFormat getFormat() const

Methods

Expression(std::unique_ptr<ExpressionAST> AST,
           llvm::ExpressionFormat Format)

Description

Generic constructor for an expression represented by the given \p AST and whose matching format is \p Format.

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

Parameters

std::unique_ptr<ExpressionAST> AST
llvm::ExpressionFormat Format

llvm::ExpressionAST* getAST() const

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

Returns

pointer to AST of the expression. Pointer is guaranteed to be valid as long as this object is.

llvm::ExpressionFormat getFormat() const

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