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")));
});
Allows a user function to catch and filter/analyse ROOT and cling diagnostics, e.g.

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.

  • core/testsupport/inc/ROOT/TestSupport.hxx