Template Function sg::forAllNodes(F, SgNode *, AstSimpleProcessing::Order)

Template Function sg::forAllNodes(F, SgNode *, AstSimpleProcessing::Order)#

Function Documentation#

template<class F>
static inline F sg::forAllNodes(F fn, SgNode *root, AstSimpleProcessing::Order order = postorder)#

calls fn with all applicable nodes in the AST

extracts the variant type from the function argument in fn and collects all nodes using querySubTree. After that, iterates through the result list and executes fn all all identified nodes.