expressionStatement

Coverity Documentation

Version
latest

Matches individual executable expressions.

This pattern only matches nodes of type statement.

Properties

expressionStatement produces a record that contains the following property:

Name Type Description
expression expression The expression itself

Inherits properties from:

Example

The following CodeXM pattern matches a function call:

CXM code follows
    pattern expressionStatementFunctionCall {
        expressionStatement {
            .expression == functionCall
        }
    };