Skip to content

getLocalScopeNum

Returns a unique positive integer ID to an SgScopeStatement within a function definition.

Synopsis

Declared in <SageIII/manglingSupport.h>

size_t
getLocalScopeNum(
    SgFunctionDefinition const* func_def,
    SgScopeStatement const* target);

Description

This routine computes a preorder numbering of the SgScopeStatements in the subtree rooted at 'func_def', and returns the number assigned to the 'target' scope statement, or 0 if the target could not be found in 'func_def'.

Parameters

Name

Description

func_def

This class represents the concept of a scope in C++ (e.g. global scope, fuction scope, etc.).

target

This class represents the concept of a scope in C++ (e.g. global scope, fuction scope, etc.).

Created with MrDocs