主要内容

Cpp.CompoundStatement Class

Namespace: Cpp
Superclasses: AstNodeProperties

Represents the compound_statement nodes in the syntax tree of your code

Since R2026a

Description

The PQL class Cpp.CompoundStatement represents the node compound_statement in the syntax tree of your code.

void f() {
    int x = 0;
    {
        x++;
    }
}

The outer and inner block bodies in f correspond to compound_statement nodes and are what Cpp.CompoundStatement models.

Predicates

expand all

Version History

Introduced in R2026a