Skip to content

NodeQuery::querySubTree

****

Synopsis

Declared in <src/midend/astQuery/nodeQuery.h>

[[visibility]]
NodeQuerySynthesizedAttributeType
querySubTree(
    SgNode* subTree,
    SgNode* traversal,
    TypeOfQueryTypeTwoParameters elementReturnType,
    AstQueryNamespace::QueryDepth defineQueryType = AstQueryNamespace::AllNodes);

Description

The function querySubTree (SgNode * subTree, SgNode* traversal,TypeOfQueryTypeTwoParameters elementReturnType, AstQueryNamespace::QueryDepthdefineQueryType = AstQueryNamespace::AllNodes); returns a list of all SgNodesin the sub‐tree of the variable 'subTree' found by the preimplemented function'elementReturnType' given a second argument 'traversal'.***

Parameters

Name

Description

subTree

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

traversal

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

Created with MrDocs