Skip to content

ResetParentPointers

This traversal implements the mechanism to reset all parent pointers (back edges in the AST graph)

Synopsis

Declared in <SageIII/astPostProcessing/resetParentPointers.h>

Member Functions

Name

Description

evaluateInheritedAttribute [virtual]

Required traversal function

resetParentPointersInDeclaration

Reset parents of referenced defining and first non‐defining declaration.

resetParentPointersInTemplateArgumentList

Reset parent pointers appearing in subtrees represnting the template arguments

resetParentPointersInType

resets pointers in islands of AST code not currently traversed (hidden in types or arrays of types)

traceBackToRoot

Test function to test parent pointers (from any point back to the root)

Description

This traversal traverses the whole AST except types and symbols (future versions of the traversal will traverse type and symbols)

This traversal is a demonstration of how to traverse the full AST
  including islands of code not yet handled in the default traversal.  Nested
  traversals are used to implement the traversal of source code (typically
  class definitions) hidden in types.

Created with MrDocs