主要内容

Cpp.ExpressionStatement Class

Namespace: Cpp
Superclasses: AstNodeProperties

Represents the expression_statement nodes in the syntax tree of your code

Since R2026a

Description

The PQL class Cpp.ExpressionStatement represents the node expression_statement in the syntax tree of your code.

void test_expression_stmt() {
    int x = 0;
    x = 42;
    a = 1, b = 2;
    (void)printf("%d\n", x);
}

The function body contains several expression_statement nodes such as x = 42;, a = 1, b = 2; and the cast-expression statement (void)printf("%d\n", x); which correspond to Cpp.ExpressionStatement in PQL.

Predicates

expand all

Version History

Introduced in R2026a