struct LTOLLVMDiagnosticHandler

Declaration

struct LTOLLVMDiagnosticHandler : public DiagnosticHandler { /* full declaration omitted */ };

Description

This is the base class for diagnostic handling in LLVM. The handleDiagnostics method must be overriden by the subclasses to handle diagnostic. The *RemarkEnabled methods can be overriden to control which remarks are enabled.

Declared at: llvm/include/llvm/LTO/Config.h:278

Inherits from: DiagnosticHandler

Member Variables

public llvm::DiagnosticHandlerFunction* Fn

Inherited from DiagnosticHandler:

public DiagnosticContext = nullptr
public DiagHandlerCallback = nullptr

Method Overview

Inherited from DiagnosticHandler:

Methods

LTOLLVMDiagnosticHandler(
    llvm::DiagnosticHandlerFunction*
        DiagHandlerFn)

Declared at: llvm/include/llvm/LTO/Config.h:280

Parameters

llvm::DiagnosticHandlerFunction* DiagHandlerFn

bool handleDiagnostics(
    const llvm::DiagnosticInfo& DI)

Description

Override handleDiagnostics to provide custom implementation. Return true if it handles diagnostics reporting properly otherwise return false to make LLVMContext::diagnose() to print the message with a prefix based on the severity.

Declared at: llvm/include/llvm/LTO/Config.h:282

Parameters

const llvm::DiagnosticInfo& DI