Contenuto principale

Cpp.GotoStatement Class

Namespace: Cpp
Superclasses: AstNodeProperties

Represents the goto_statement nodes in the syntax tree of your code

Since R2026a

Description

The PQL class Cpp.GotoStatement represents the node goto_statement in the syntax tree of your code.

void test_goto() {
    goto myLabel;
myLabel:
    return;
}

The example defines a goto statement and a labeled statement. The goto myLabel; corresponds to the goto_statement node represented by Cpp.GotoStatement.

Predicates

expand all

Version History

Introduced in R2026a