Skip to content

sg::forAllNodes

calls fn with all applicable nodes in the AST

Synopsis

Declared in <SageIII/sageInterface/sageGeneric.h>

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

Description

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.

Parameters

Name

Description

root

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

Created with MrDocs