主要内容

Cpp.FunctionDefinition Class

Namespace: Cpp
Superclasses: AstNodeProperties

Represents the function_definition nodes in the syntax tree of your code

Since R2026a

Description

The PQL class Cpp.FunctionDefinition represents the node function_definition in the syntax tree of your code.

// example demonstrating a simple function definition
int add(int a, int b) { return a + b; }

The C++ line int add(int a, int b) { return a + b; } contains a function_definition node which corresponds to Cpp.FunctionDefinition in PQL.

Predicates

expand all

Version History

Introduced in R2026a