struct ByteCodeGenError

Declaration

struct ByteCodeGenError : public ErrorInfo { /* full declaration omitted */ };

Description

Error thrown by the compiler.

Declared at: clang/lib/AST/Interp/ByteCodeGenError.h:21

Inherits from: ErrorInfo

Member Variables

private clang::SourceLocation Loc
public static char ID

Method Overview

Methods

ByteCodeGenError(clang::SourceLocation Loc)

Declared at: clang/lib/AST/Interp/ByteCodeGenError.h:23

Parameters

clang::SourceLocation Loc

ByteCodeGenError(const clang::Stmt* S)

Declared at: clang/lib/AST/Interp/ByteCodeGenError.h:24

Parameters

const clang::Stmt* S

ByteCodeGenError(const clang::Decl* D)

Declared at: clang/lib/AST/Interp/ByteCodeGenError.h:25

Parameters

const clang::Decl* D

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: clang/lib/AST/Interp/ByteCodeGenError.h:38

const clang::SourceLocation& getLoc() const

Declared at: clang/lib/AST/Interp/ByteCodeGenError.h:29

void log(llvm::raw_ostream& OS) const

Description

Print an error message to an output stream.

Declared at: clang/lib/AST/Interp/ByteCodeGenError.h:27

Parameters

llvm::raw_ostream& OS