Contenido principal

Cpp.ParenthesizedDeclarator Class

Namespace: Cpp
Superclasses: AstNodeProperties

Represents the parenthesized_declarator nodes in the syntax tree of your code

Since R2026a

Description

The PQL class ParenthesizedDeclarator represents the node parenthesized_declarator in the syntax tree of your code.

// example.cpp
struct MyType { int (MyType::*m)(int); };

int (*f)[10];
int (*g)(int);
int (__stdcall *h)(int);

int main() {
    (void)f; (void)g; (void)h;
    return 0;
}

The above C++ file contains several parenthesized_declarator occurrences such as (*f)[10], (*g)(int) and (__stdcall *h)(int). These nodes match the PQL ParenthesizedDeclarator class.

Predicates

expand all

Version History

Introduced in R2026a