Skip to content

NodeQuery::querySubTree

****

Synopsis

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

template<typename NodeFunctional>
std::invoke_result_t<NodeFunctional&, SgNode*>
querySubTree(
    SgNode* subTree,
    NodeFunctional pred,
    AstQueryNamespace::QueryDepth defineQueryType = AstQueryNamespace::AllNodes);

Description

The function template querySubTree (SgNode * subTree, NodeFunctional , AstQueryNamespace::QueryDepth defineQueryType =AstQueryNamespace::AllNodes); returns all nodes produced by NodeFunctionalwhen applied to either all the nodes in a subTree or the children of the node'subTree'.***

Parameters

Name

Description

subTree

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

Created with MrDocs