주요 콘텐츠

Cpp.ForStatement Class

Namespace: Cpp
Superclasses: AstNodeProperties

Represents the for_statement nodes in the syntax tree of your code

Since R2026a

Description

The PQL class Cpp.ForStatement represents the node for_statement in the syntax tree of your code.

void example() {
    for (int i = 0; i < 10; ++i) {
        // loop body
    }
}

The for (int i = 0; i < 10; ++i) { ... } statement is a for_statement node that Cpp.ForStatement models.

Predicates

expand all

Version History

Introduced in R2026a