Skip to content

validateParentPointers

Validate exact parent ownership for a published AST.

Synopsis

Declared in <SageIII/astPostProcessing/resetParentPointers.h>

void
validateParentPointers(
    SgNode* node,
    SgNode* parent = nullptr);

Description

Interface for resetting parent pointers (called by temporaryAstFixes() function, but also required to reset parent pointers after any addition of new AST fragments to the AST).

This function can be called directly as well.

Parameters

Name

Description

node

This class represents the base class for all IR nodes within Sage III.

parent

This class represents the base class for all IR nodes within Sage III.

Created with MrDocs