class UndefVarError

Declaration

class UndefVarError : public ErrorInfo { /* full declaration omitted */ };

Description

Class to represent an undefined variable error, which quotes that variable's name when printed.

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

Inherits from: ErrorInfo

Member Variables

private llvm::StringRef VarName
public static char ID

Method Overview

Methods

UndefVarError(llvm::StringRef VarName)

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

Parameters

llvm::StringRef VarName

std::error_code convertToErrorCode() const

Description

Convert this error to a std::error_code. This is a temporary crutch to enable interaction with code still using std::error_code. It will be removed in the future.

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

llvm::StringRef getVarName() const

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

void log(llvm::raw_ostream& OS) const

Description

Print name of variable associated with this error.

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

Parameters

llvm::raw_ostream& OS