Class VariableRenaming::UniqueNameTraversal#

Nested Relationships#

This class is a nested type of Class VariableRenaming.

Inheritance Relationships#

Base Type#

Class Documentation#

class UniqueNameTraversal : public AstBottomUpProcessing<VariableRenaming::VarRefSynthAttr>#

Class to traverse the AST and assign unique names to every varRef.

Public Functions

inline UniqueNameTraversal(VariableRenaming *varRenaming, const std::vector<SgInitializedName*> &allNames)#
virtual VariableRenaming::VarRefSynthAttr evaluateSynthesizedAttribute(SgNode *node, SynthesizedAttributesList attrs)#

Called to evaluate the synthesized attribute on every node.

This function will handle passing all variables that are referenced by a given expression.

Parameters:
  • node – The node being evaluated.

  • attrs – The attributes from the child nodes.

Returns:

The attribute at this node.