Skip to content

SageInterface::findMain

top‐down traversal from current node to find the main() function declaration

Synopsis

Declared in <SageIII/sageInterface/sageInterface.h>

[[visibility]]
SgFunctionDeclaration*
findMain(SgNode* currentNode);

Return Value

This class represents the concept of a function declaration statement.

Parameters

Name

Description

currentNode

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

Created with MrDocs