Skip to content

InitializeExplicitScopes

Support for initialization of explicit scopes (located only at specific IR nodes).

Synopsis

Declared in <SageIII/astPostProcessing/initializeExplicitScopeData.h>

class InitializeExplicitScopes
    : public ROSE_VisitTraversal

Base Classes

Name

Description

ROSE_VisitTraversal

Member Functions

Name

Description

~InitializeExplicitScopes [destructor] [virtual]

Destructor

visit [virtual]

Required traversal function

visitType

Function to support traversal of types (where islands can hide)

Description

This function initializes any uninitialized explicit scope data members. Some IR nodes have explicit scope information where the parent pointer is insufficient to identify the scope because of structural flexability in the layout of the C++ source code.

The explicitly stored scope information is called by the
  get_scope() function on those IR nodes where the scope is explicitly stored.
  Else the get_scope() function computes the scope using either the paranet
  information or the results of other get_scope() member function calls.

Created with MrDocs