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("default")]]
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