Skip to content

SageInterface::getEnclosingClassDefinition

Get the closest class definition enclosing the specified AST node,

Synopsis

Declared in <SageIII/sageInterface/sageInterface.h>

[[visibility]]
SgClassDefinition*
getEnclosingClassDefinition(
    SgNode* astnode,
    bool const includingSelf = false);

Return Value

the closest class definition enclosing the specified AST node,

Parameters

Name

Description

astnode

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

Created with MrDocs