LLVM: llvm::DiagnosticHandler Struct Reference (original) (raw)
This is the base class for diagnostic handling in LLVM. More...
#include "[llvm/IR/DiagnosticHandler.h](DiagnosticHandler%5F8h%5Fsource.html)"
| Public Member Functions | |
|---|---|
| DiagnosticHandler (void *DiagContext=nullptr) | |
| virtual | ~DiagnosticHandler ()=default |
| virtual bool | handleDiagnostics (const DiagnosticInfo &DI) |
| Override handleDiagnostics to provide custom implementation. | |
| virtual bool | isAnalysisRemarkEnabled (StringRef PassName) const |
| Return true if analysis remarks are enabled, override to provide different implementation. | |
| virtual bool | isMissedOptRemarkEnabled (StringRef PassName) const |
| Return true if missed optimization remarks are enabled, override to provide different implementation. | |
| virtual bool | isPassedOptRemarkEnabled (StringRef PassName) const |
| Return true if passed optimization remarks are enabled, override to provide different implementation. | |
| bool | isAnyRemarkEnabled (StringRef PassName) const |
| Return true if any type of remarks are enabled for this pass. | |
| virtual bool | isAnyRemarkEnabled () const |
| Return true if any type of remarks are enabled for any pass. |
| Public Attributes | |
|---|---|
| void * | DiagnosticContext = nullptr |
| bool | HasErrors = false |
| DiagnosticHandlerTy | DiagHandlerCallback = nullptr |
| DiagHandlerCallback is settable from the C API and base implementation of DiagnosticHandler will call it from handleDiagnostics(). |
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.
Definition at line 25 of file DiagnosticHandler.h.
◆ DiagnosticHandlerTy
| llvm::DiagnosticHandler::DiagnosticHandler ( void * DiagContext = nullptr) | inline |
|---|
◆ ~DiagnosticHandler()
| virtual llvm::DiagnosticHandler::~DiagnosticHandler ( ) | virtualdefault |
|---|
◆ handleDiagnostics()
◆ isAnalysisRemarkEnabled()
| bool DiagnosticHandler::isAnalysisRemarkEnabled ( StringRef PassName) const | virtual |
|---|
◆ isAnyRemarkEnabled() [1/2]
| bool DiagnosticHandler::isAnyRemarkEnabled ( ) const | virtual |
|---|
◆ isAnyRemarkEnabled() [2/2]
| bool llvm::DiagnosticHandler::isAnyRemarkEnabled ( StringRef PassName) const | inline |
|---|
◆ isMissedOptRemarkEnabled()
| bool DiagnosticHandler::isMissedOptRemarkEnabled ( StringRef PassName) const | virtual |
|---|
◆ isPassedOptRemarkEnabled()
| bool DiagnosticHandler::isPassedOptRemarkEnabled ( StringRef PassName) const | virtual |
|---|
◆ DiagHandlerCallback
DiagnosticHandlerTy llvm::DiagnosticHandler::DiagHandlerCallback = nullptr
◆ DiagnosticContext
void* llvm::DiagnosticHandler::DiagnosticContext = nullptr
◆ HasErrors
bool llvm::DiagnosticHandler::HasErrors = false
The documentation for this struct was generated from the following files:
- include/llvm/IR/DiagnosticHandler.h
- lib/IR/DiagnosticHandler.cpp