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:216
Inherits from: DiagnosticHandler
Member Variables
- public llvm::DiagnosticHandlerFunction* Fn
Inherited from DiagnosticHandler:
- public DiagnosticContext = nullptr
- public DiagHandlerCallback = nullptr
Method Overview
- public LTOLLVMDiagnosticHandler(llvm::DiagnosticHandlerFunction * DiagHandlerFn)
- public bool handleDiagnostics(const llvm::DiagnosticInfo & DI)
Inherited from DiagnosticHandler:
- public handleDiagnostics
- public isAnalysisRemarkEnabled
- public isAnyRemarkEnabled
- public isAnyRemarkEnabled
- public isMissedOptRemarkEnabled
- public isPassedOptRemarkEnabled
Methods
¶LTOLLVMDiagnosticHandler(
llvm::DiagnosticHandlerFunction*
DiagHandlerFn)
LTOLLVMDiagnosticHandler(
llvm::DiagnosticHandlerFunction*
DiagHandlerFn)
Declared at: llvm/include/llvm/LTO/Config.h:218
Parameters
- llvm::DiagnosticHandlerFunction* DiagHandlerFn
¶bool handleDiagnostics(
const llvm::DiagnosticInfo& DI)
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:220
Parameters
- const llvm::DiagnosticInfo& DI