Skip to content

SageInterface::isAncestor

check if node1 is a strict ancestor of node 2. (a node is not considered its own ancestor)

Synopsis

Declared in <SageIII/sageInterface/sageInterface.h>

[[visibility]]
bool
isAncestor(
    SgNode* node1,
    SgNode* node2);

Parameters

Name

Description

node1

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

node2

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

Created with MrDocs