Logo ROOT  
Reference Guide
TClingDelegateDiagnosticPrinter Class Reference

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
 

#include </home/sftnight/build/workspace/root-makedoc-master/rootspi/rdoc/src/master/core/metacling/src/TClingDiagnostics.h>

Inheritance diagram for TClingDelegateDiagnosticPrinter:
[legend]

Member Typedef Documentation

◆ handler_t

typedef void(* TClingDelegateDiagnosticPrinter::handler_t) (clang::DiagnosticsEngine::Level Level, const std::string &Info)

Definition at line 29 of file TClingDiagnostics.h.

Constructor & Destructor Documentation

◆ TClingDelegateDiagnosticPrinter()

TClingDelegateDiagnosticPrinter::TClingDelegateDiagnosticPrinter ( clang::DiagnosticOptions *  DiagOpts,
clang::LangOptions &  LangOpts,
handler_t  fn 
)

Definition at line 14 of file TClingDiagnostics.cxx.

◆ ~TClingDelegateDiagnosticPrinter()

TClingDelegateDiagnosticPrinter::~TClingDelegateDiagnosticPrinter ( )
overridedefault

Member Function Documentation

◆ HandleDiagnostic()

void TClingDelegateDiagnosticPrinter::HandleDiagnostic ( clang::DiagnosticsEngine::Level  Level,
const clang::Diagnostic &  Info 
)
override

Definition at line 23 of file TClingDiagnostics.cxx.

Member Data Documentation

◆ fHandler

handler_t TClingDelegateDiagnosticPrinter::fHandler
private

Definition at line 34 of file TClingDiagnostics.h.

◆ fOS

llvm::raw_string_ostream TClingDelegateDiagnosticPrinter::fOS
private

Definition at line 33 of file TClingDiagnostics.h.

◆ fOS_out

std::string TClingDelegateDiagnosticPrinter::fOS_out
private

Definition at line 32 of file TClingDiagnostics.h.


The documentation for this class was generated from the following files: