Skip to content

NodeQuery::querySubTree

****

Synopsis

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

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

Description

The function querySubTree (SgNode * subTree, SgNode* traversal,roseFunctionPointerTwoParameters elementReturnType, AstQueryNamespace::QueryDepth defineQueryType =AstQueryNamespace::AllNodes); returns a list of all SgNodes in the sub‐tree ofthe variable 'subTree' found by the function 'querySolverFunction' given asecond 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