SageInterface::hasMultipleInitStatmentsOrExpressions
Check if a for loop uses C99 style initialization statement with multiple expressions like for (int i=0, j=0; ..) or for (i=0,j=0;...)
Synopsis
Declared in <SageIII/sageInterface/sageInterface.h>
[[visibility]]
bool
hasMultipleInitStatmentsOrExpressions(SgForStatement* for_loop);
Description
for (int i=0, j=0; ..) is stored as two variable declarations under SgForInitStatement's init_stmt member for (i=0,j=0;...) is stored as a single expression statement, with comma expression (i=0,j=0).
Parameters
Name |
Description |
for_loop |
This class represents the concept of a for loop. |
Created with MrDocs