주요 콘텐츠

Cpp.Declaration Class

Namespace: Cpp
Superclasses: AstNodeProperties

Represents the declaration nodes in the syntax tree of your code

Since R2026a

Description

The PQL class Cpp.Declaration represents the node declaration in the syntax tree of your code.

int x = 42;
static const int y = 7;
[[nodiscard]] int f();
virtual void m();
__declspec(dllexport) int z;

The example contains several declaration nodes. Examples: int x = 42; is a declaration whose type is int, declarator is x and default value is 42.

Predicates

expand all

Version History

Introduced in R2026a