GCC Middle and Back End API Reference
auto_diagnostic_nesting_level Class Reference

#include <diagnostic-core.h>

Public Member Functions

 auto_diagnostic_nesting_level ()
 
 ~auto_diagnostic_nesting_level ()
 

Detailed Description

RAII-style class for nesting hierarchical diagnostics.
Any diagnostics emitted within the lifetime of this object
will be treated as one level of nesting deeper than diagnostics
emitted outside the lifetime of the object.   

Constructor & Destructor Documentation

◆ auto_diagnostic_nesting_level()

auto_diagnostic_nesting_level::auto_diagnostic_nesting_level ( )
class auto_diagnostic_nesting_level.   

References global_dc, and diagnostic_context::push_nesting_level().

◆ ~auto_diagnostic_nesting_level()

auto_diagnostic_nesting_level::~auto_diagnostic_nesting_level ( )

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