Uses clang::TextDiagnosticPrinter
to format diagnostics, which are then passed to a user-specified function.
Definition at line 27 of file TClingDiagnostics.h.
Public Types | |
typedef void(* | handler_t) (clang::DiagnosticsEngine::Level Level, const std::string &Info) |
Public Member Functions | |
TClingDelegateDiagnosticPrinter (clang::DiagnosticOptions *DiagOpts, clang::LangOptions &LangOpts, handler_t fn) | |
~TClingDelegateDiagnosticPrinter () override=default | |
void | HandleDiagnostic (clang::DiagnosticsEngine::Level Level, const clang::Diagnostic &Info) override |
Private Attributes | |
handler_t | fHandler |
llvm::raw_string_ostream | fOS |
std::string | fOS_out |
typedef void(* TClingDelegateDiagnosticPrinter::handler_t) (clang::DiagnosticsEngine::Level Level, const std::string &Info) |
Definition at line 29 of file TClingDiagnostics.h.
TClingDelegateDiagnosticPrinter::TClingDelegateDiagnosticPrinter | ( | clang::DiagnosticOptions * | DiagOpts, |
clang::LangOptions & | LangOpts, | ||
handler_t | fn | ||
) |
Definition at line 14 of file TClingDiagnostics.cxx.
|
overridedefault |
|
override |
Definition at line 23 of file TClingDiagnostics.cxx.
|
private |
Definition at line 34 of file TClingDiagnostics.h.
|
private |
Definition at line 33 of file TClingDiagnostics.h.
|
private |
Definition at line 32 of file TClingDiagnostics.h.