主要内容

Cpp.FunctionDeclarator Class

Namespace: Cpp
Superclasses: AstNodeProperties

Represents the function_declarator nodes in the syntax tree of your code

Since R2026a

Description

The PQL class FunctionDeclarator represents the node function_declarator in the syntax tree of your code.

[[nodiscard]] void foo(int a) noexcept [[gnu::always_inline]] __asm__("bar") & requires (true) -> int;
int main() { return 0; }

The preceding example contains several function_declarator nodes:

  • In foo(int a), foo is a function declarator.

  • In main(){...}, main() is a function declarator.

Predicates

expand all

Version History

Introduced in R2026a