Skip to content

SageInterface::setLoopCondition

Set the condition statement of a loop, including While‐loop, For‐loop, and Do‐While‐loop.

Synopsis

Declared in <SageIII/sageInterface/sageInterface.h>

[[visibility]]
void
setLoopCondition(
    SgScopeStatement* loop,
    SgStatement* cond);

Parameters

Name

Description

loop

This class represents the concept of a scope in C++ (e.g. global scope, fuction scope, etc.).

cond

This class represents the notion of a statement.

Created with MrDocs