Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
ROOT::TestSupport::FilterDiagsRAII Class Reference

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

FilterDiagsRAII RAII([] (int level, Bool_t abort,
const char *location, const char *msg) {
EXPECT_THAT(msg, Not(HasSubstr("-Wunused-result")));
});
bool Bool_t
Boolean (0=false, 1=true) (bool).
Definition RtypesCore.h:77
FilterDiagsRAII(ErrorHandlerFunc_t fn)

Definition at line 39 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 48 of file TestSupport.hxx.

Member Data Documentation

◆ fPrevHandler

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

Definition at line 40 of file TestSupport.hxx.


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