Skip to content

SageInterface::normalizeForLoopInitDeclaration

Normalize loop init stmt by promoting the single variable declaration statement outside of the for loop header's init statement, e.g. for (int i=0;) becomes int i_x; for (i_x=0;..) and rewrite the loop with the new index variable, if necessary

Synopsis

Declared in <SageIII/sageInterface/sageInterface.h>

[[visibility]]
bool
normalizeForLoopInitDeclaration(SgForStatement* loop);

Parameters

Name

Description

loop

This class represents the concept of a for loop.

Created with MrDocs