SageInterface::isArrayReference
Check if an expression is an array access (SgPntrArrRefExp). If so, return its name expression and subscripts if requested. Users can use convertRefToInitializedName() to get the possible name. It does not check if the expression is a top level SgPntrArrRefExp.
Synopsis
Declared in <SageIII/sageInterface/sageInterface.h>
[[visibility]]
bool
isArrayReference(
SgExpression* ref,
SgExpression** arrayNameExp = NULL,
std::vector<SgExpression*>** subscripts = NULL);
Parameters
Name |
Description |
ref |
This class represents the notion of an expression. Expressions |
arrayNameExp |
This class represents the notion of an expression. Expressions |
subscripts |
A standard container which offers fixed time access to individual elements in any order. |
Created with MrDocs