GCC Middle and Back End API Reference
undo_recog_changes Class Reference

#include <recog.h>

Public Member Functions

 undo_recog_changes (int)
 
 ~undo_recog_changes ()
 

Static Public Member Functions

static bool is_active ()
 

Private Attributes

int m_old_num_changes
 

Static Private Attributes

static int s_num_changes = 0
 

Detailed Description

An RAII class that temporarily undoes part of the current change group.
The sequence:

  {
    ...;
    undo_recog_changes undo (NUM);
    STMTS;
  }

executes STMTS with all the changes numbered NUM and up temporarily
reverted.  STMTS must not try to add to the current change group.

Nested uses are supported, but each nested NUM must be no greater than
outer NUMs.   

Constructor & Destructor Documentation

◆ undo_recog_changes()

undo_recog_changes::undo_recog_changes ( int num)

◆ ~undo_recog_changes()

undo_recog_changes::~undo_recog_changes ( )

Member Function Documentation

◆ is_active()

static bool undo_recog_changes::is_active ( )
inlinestatic

Field Documentation

◆ m_old_num_changes

int undo_recog_changes::m_old_num_changes
private

Referenced by ~undo_recog_changes().

◆ s_num_changes

int undo_recog_changes::s_num_changes = 0
staticprivate

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