VariableRenaming::buildVariableReference¶
Get an AST fragment containing the appropriate varRefs and Dot/Arrow ops to access the given variable.
Synopsis¶
Declared in <src/midend/programAnalysis/variableRenaming/VariableRenaming.h>
static
SgExpression*
buildVariableReference(
VarName const& var,
SgScopeStatement* scope = NULL); Return Value¶
An expression that access the given variable in the given scope.
Parameters¶
| Name | Description |
|---|---|
| var | The variable to construct access for. |
| scope | The scope within which to construct the access. |
Created with MrDocs