Main Content

Cpp.PointerExpression Class

Namespace: Cpp
Superclasses: AstNodeProperties

Represents the pointer_expression nodes in the syntax tree of your code

Since R2026a

Description

The PQL class Cpp.PointerExpression represents the node pointer_expression in the syntax tree of your code.

int foo(int *p) {
  int x = 42;
  int *q = &x;
  return *q;
}

The demo contains pointer_expression nodes for int *p, int *q, &x, and *q. These correspond to the Cpp.PointerExpression PQL class.

Predicates

expand all

Version History

Introduced in R2026a