Skip to content

SageInterface::findFunctionDeclaration

Topdown traverse a subtree from root to find the first function declaration matching the given name, scope (optional, can be NULL), and defining or nondefining flag. This is an instantiation of findDeclarationStatement<T>.

Synopsis

Declared in <SageIII/sageInterface/sageInterface.h>

SgFunctionDeclaration*
findFunctionDeclaration(
    SgNode* root,
    std::string name,
    SgScopeStatement* scope,
    bool isDefining);

Return Value

This class represents the concept of a function declaration statement.

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