Skip to content

SageInterface::changeAllBodiesToBlocks

Fix up ifs, loops, while, switch, Catch, OmpBodyStatement, etc. to have blocks as body components. It also adds an empty else body to if statements that don't have them.

Synopsis

Declared in <SageIII/sageInterface/sageInterface.h>

void
changeAllBodiesToBlocks(
    SgNode* top,
    bool createEmptyBody = true);

Parameters

Name

Description

top

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

Created with MrDocs