SageInterface::findDeclarationStatement
Topdown traverse a subtree from root to find the first declaration given its name, scope (optional, can be NULL), and defining or nondefining flag.
Synopsis
Declared in <SageIII/sageInterface/sageInterface.h>
template<typename T>
T*
findDeclarationStatement(
SgNode* root,
std::string name,
SgScopeStatement* scope,
bool isDefining);
Parameters
Name |
Description |
root |
This class represents the base class for all IR nodes within Sage III. |
scope |
This class represents the concept of a scope in C++ (e.g. global scope, fuction scope, etc.). |
Created with MrDocs