Skip to content

AstQueryNamespace::querySubTree

**** The function std::list<ListElement> querySubTree<ListElement>(SgNode* node,Predicate& _pred) will query the subtree of the IR node in the first argumentfor nodes satisfying the criteria specified in and returned by the predicatein the second argument.**

Synopsis

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

template<typename NodeFunctional>
std::invoke_result_t<NodeFunctional&, SgNode*>
querySubTree(
    SgNode* node,
    NodeFunctional nodeFunc,
    AstQueryNamespace::QueryDepth defineQueryType = AstQueryNamespace::AllNodes,
    t_traverseOrder treeTraversalOrder = preorder);

Parameters

Name

Description

node

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

Created with MrDocs