Skip to content

VariableRenaming::expandMemberDefinitions

Expand all member definitions (chained names) to define every name in the chain.

Synopsis

Declared in <src/midend/programAnalysis/variableRenaming/VariableRenaming.h>

bool
expandMemberDefinitions(cfgNode curNode);

Description

When a member of a struct/class is referenced, this will insert definitions for every member referenced to access the currently referenced one.

ex. Obj o; //Declare o of type Obj o.a.b = 5; //Def for o.a.b

In the second line, this function will insert the following:

o.a.b = 5; //Def for o.a.b, o.a, o

Return Value

Whether or not any new defs were inserted.

Parameters

Name

Description

curNode

The node to expand the definitions on.

Created with MrDocs