Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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-v632/rootspi/rdoc/src/v6-32-00-patches/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.

  • core/metacling/src/TClingDiagnostics.h
  • core/metacling/src/TClingDiagnostics.cxx