SgNodeHelper::correspondingSgFunctionDefinition
this function should only be called for a node in the subtree of a SgFunctionDefinition node. For a given 'node' it determines the correspondnig functionDefinition node when searching upwards in the AST for such a SgFunctionDefinition node. It is useful as a simple lookup function from inside the AST subtree of a SgFunctionDefinition. Returns 0 if no SgFunctionDefinition is found (e.g. global scope).
Synopsis
Declared in <src/midend/abstractLayer/SgNodeHelper.h>
SgFunctionDefinition*
correspondingSgFunctionDefinition(SgNode* node);
Return Value
This class represents the concept of a scope in C++ (e.g. global scope, fuction scope, etc.).
Parameters
Name |
Description |
node |
This class represents the base class for all IR nodes within Sage III. |
Created with MrDocs