Logo ROOT  
Reference Guide
ROOT::TestSupport::FilterDiagsRAII Class Reference

Allows a user function to catch and filter/analyse ROOT and cling diagnostics, e.g.

{c++}
FilterDiagsRAII RAII([] (int level, Bool_t abort,
const char *location, const char *msg) {
EXPECT_THAT(msg, Not(HasSubstr("-Wunused-result")));
});
#define c(i)
Definition: RSha256.hxx:101
Allows a user function to catch and filter/analyse ROOT and cling diagnostics, e.g.
Definition: TestSupport.hxx:40
auto Not(F &&f) -> decltype(RDFInternal::NotHelper(Args(), std::forward< F >(f)))
Given a callable with signature bool(T1, T2, ...) return a callable with same signature that returns ...
Definition: RDFHelpers.hxx:79

Definition at line 40 of file TestSupport.hxx.

Public Member Functions

 FilterDiagsRAII (ErrorHandlerFunc_t fn)
 
 ~FilterDiagsRAII ()
 

Private Attributes

ErrorHandlerFunc_t fPrevHandler
 

#include <ROOT/TestSupport.hxx>

Constructor & Destructor Documentation

◆ FilterDiagsRAII()

ROOT::TestSupport::FilterDiagsRAII::FilterDiagsRAII ( ErrorHandlerFunc_t  fn)
inline

Definition at line 43 of file TestSupport.hxx.

◆ ~FilterDiagsRAII()

ROOT::TestSupport::FilterDiagsRAII::~FilterDiagsRAII ( )
inline

Definition at line 47 of file TestSupport.hxx.

Member Data Documentation

◆ fPrevHandler

ErrorHandlerFunc_t ROOT::TestSupport::FilterDiagsRAII::fPrevHandler
private

Definition at line 41 of file TestSupport.hxx.


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