ΒΆvoid logAllUnhandledErrors(
    llvm::Error E,
    llvm::raw_ostream& OS,
    llvm::Twine ErrorBanner = {})

Description

Log all errors (if any) in E to OS. If there are any errors, ErrorBanner will be printed before the first one is logged. A newline will be printed after each error. This function is compatible with the helpers from Support/WithColor.h. You can pass any of them as the OS. Please consider using them instead of including 'error: ' in the ErrorBanner. This is useful in the base level of your program to allow clean termination (allowing clean deallocation of resources, etc.), while reporting error information to the user.

Declared at: llvm/include/llvm/Support/Error.h:1024

Parameters

llvm::Error E
llvm::raw_ostream& OS
llvm::Twine ErrorBanner = {}