主要内容

Cpp.ArrayDeclarator Class

Namespace: Cpp
Superclasses: AstNodeProperties

Represents the array_declarator nodes in the syntax tree of your code

Since R2026a

Description

The PQL class ArrayDeclarator represents the node array_declarator in the syntax tree of your code.

// Example showing several kinds of array declarators
int a[10];
int b[const 20];
int c[static const 30];
int d[];
int (*e)[40];

The examples above include array_declarator nodes: a[10], b[const 20], c[static const 30], d[], and the pointer-to-array (*e)[40], all of which correspond to array_declarator nodes.

Predicates

expand all

Version History

Introduced in R2026a