주요 콘텐츠

Cpp.FieldDeclaration Class

Namespace: Cpp
Superclasses: AstNodeProperties

Represents the field_declaration nodes in the syntax tree of your code

Since R2026a

Description

The PQL class Cpp.FieldDeclaration represents the node field_declaration in the syntax tree of your code.

struct S {
    int x = 42;
    [[nodiscard]] int y;
    virtual int z;
    int w : 3;
    __declspec(align(16)) int a;
    static const int b = 1;
    [[deprecated]] int d;
};

The struct members like int x = 42; and [[nodiscard]] int y; correspond to field_declaration nodes that Cpp.FieldDeclaration models.

Predicates

expand all

Version History

Introduced in R2026a