Skip to content

SageInterface::findBreakStmts

Find break statements inside a particular statement, stopping at nested loops or switches loops or switch statements defines their own contexts for break statements. The function will stop immediately if run on a loop or switch statement. If fortranLabel is non‐empty, breaks (EXITs) to that label within nested loops are included in the returned list.

Synopsis

Declared in <SageIII/sageInterface/sageInterface.h>

std::vector<SgBreakStmt*>
findBreakStmts(
    SgStatement* code,
    std::string const& fortranLabel = "");

Return Value

A standard container which offers fixed time access to individual elements in any order.

Parameters

Name

Description

code

This class represents the notion of a statement.

Created with MrDocs