ResetParentPointers::resetParentPointersInDeclaration
Reset parents of referenced defining and first non‐defining declaration.
Synopsis
Declared in <SageIII/astPostProcessing/resetParentPointers.h>
void
resetParentPointersInDeclaration(
SgDeclarationStatement* declaration,
SgNode* inputParent);
Description
SgDeclarationStatement objects contain references to the defining and first non‐defining declarations, both should have their parents set. In general this will be sufficient to set all the associated declarations used internally is they are shared. Declaration statements that are explicit forward declarations are however not all referencing the first non‐defining declaration (since this would violate the rule of uniqueness of statements (only enforced within a single scope).
Parameters
Name |
Description |
declaration |
This class represents the concept of a declaration statement. |
inputParent |
This class represents the base class for all IR nodes within Sage III. |
Created with MrDocs