Skip to content

SageInterface::getEnclosingFunctionDeclaration

Find the enclosing function declaration, including its derived instances like isSgProcedureHeaderStatement, isSgProgramHeaderStatement, and isSgMemberFunctionDeclaration.

Synopsis

Declared in <SageIII/sageInterface/sageInterface.h>

[[visibility]]
SgFunctionDeclaration*
getEnclosingFunctionDeclaration(
    SgNode* astNode,
    bool const includingSelf = false);

Return Value

This class represents the concept of a function declaration statement.

Parameters

Name

Description

astNode

This class represents the base class for all IR nodes within Sage III.

Created with MrDocs