Skip to content

SageInterface::convertRefToInitializedName

Variable references can be introduced by SgVarRef, SgPntrArrRefExp, SgInitializedName, SgMemberFunctionRef etc. For Dot and Arrow Expressions, their lhs is used to obtain SgInitializedName (coarse grain) by default. Otherwise, fine‐grain rhs is used.

Synopsis

Declared in <SageIII/sageInterface/sageInterface.h>

[[visibility]]
SgInitializedName*
convertRefToInitializedName(
    SgNode* current,
    bool coarseGrain = true);

Return Value

This class represents the notion of a declared variable.

Parameters

Name

Description

current

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

Created with MrDocs