This is the base class for diagnostic handling in LLVM.
Synopsis
Declared in <llvm/IR/DiagnosticHandler.h>
struct DiagnosticHandler;
Description
The handleDiagnostics method must be overridden by the subclasses to handle diagnostic. The *RemarkEnabled methods can be overridden to control which remarks are enabled.
Type Aliases
Name |
Description |
Function pointer type for C‐style diagnostic callbacks. |
Member Functions
Name |
Description |
|
Construct a handler, optionally storing an opaque client context. |
|
Destroy the diagnostic handler. |
|
Handle a diagnostic, returning true if reporting was consumed. |
|
Return true if analysis remarks are enabled, override to provide different implementation. |
|
|
|
Return true if missed optimization remarks are enabled, override to provide different implementation. |
|
Return true if passed optimization remarks are enabled, override to provide different implementation. |
Data Members
Name |
Description |
Callback set from the C API and invoked by handleDiagnostics(). |
|
Opaque client context passed to |
|
True if an error diagnostic has been reported. |
Derived Classes
Name |
Description |
Diagnostic handler that forwards diagnostics to a function callback. |
Created with MrDocs