breakStatement

Coverity Documentation

Version
latest

Matches break statements.

This pattern only matches nodes of type statement.

Properties

breakStatement produces a record that contains the following property:

Name Type Description
controlStatement statement The flow-of-control statement, such as while, within which the break occurs

Inherits properties from:

Example

The following CodeXM pattern matches break statements within while loops:

CXM code follows
    pattern breakFromSwitch {
        breakStatement {
            .controlStatement == whileLoop
        }
    };