Main Content

Cpp.CallExpression Class

Namespace: Cpp
Superclasses: AstNodeProperties

Represents the call_expression nodes in the syntax tree of your code

Since R2026a

Description

The PQL class CallExpression represents the node call_expression in the syntax tree of your code.

// example.cpp
void foo(int, int);
void bar();
void baz(int, int);

void test() {
    foo(1, 2);
    bar();
    int x = 42;
    baz(x, x + 1);
}

int main() {
    test();
    return 0;
}

The sample shows several call_expression nodes such as foo(1, 2), bar(), test() and baz(x, x + 1), which matches with the CallExpression PQL class.

Predicates

expand all

Version History

Introduced in R2026a