[#llvm-DiagnosticHandler-handleDiagnostics] = xref:llvm.adoc[llvm]::xref:llvm/DiagnosticHandler.adoc[DiagnosticHandler]::handleDiagnostics :relfileprefix: ../../ :mrdocs: Handle a diagnostic, returning true if reporting was consumed. == Synopsis Declared in `<llvm/IR/DiagnosticHandler.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool handleDiagnostics(xref:llvm/DiagnosticInfo.adoc[DiagnosticInfo] const& DI); ---- == Description Override handleDiagnostics to provide a custom implementation. Return true if it handles diagnostics reporting properly otherwise return false to make LLVMContext::diagnose() print the message with a prefix based on the severity. == Return Value True if the diagnostic was handled; false to let LLVMContext print it. == Parameters [cols="1,4"] |=== | Name| Description | *DI* | Diagnostic to handle. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#