SageInterface::isLoopIndexVariable
Check if a SgInitializedName is used as a loop index within a AST subtree This function will use a bottomāup traverse starting from the subtree_root to find all enclosing loops and check if ivar is used as an index for either of them.
Synopsis
Declared in <SageIII/sageInterface/sageInterface.h>
[[visibility]]
bool
isLoopIndexVariable(
SgInitializedName* ivar,
SgNode* subtree_root);
Parameters
Name |
Description |
ivar |
This class represents the notion of a declared variable. |
subtree_root |
This class represents the base class for all IR nodes within Sage III. |
Created with MrDocs