주요 콘텐츠

Cpp.Comment Class

Namespace: Cpp
Superclasses: AstNodeProperties

Represents the comment nodes in the syntax tree of your code

Since R2026a

Description

The PQL class Cpp.Comment represents the node comment in the syntax tree of your code.

// This is a single-line comment
/* This is a
   multi-line comment */
int main() {
    return 0; // inline comment
}

The code shows comment nodes as // ... and /* ... */ forms. Each comment in the example is modelled by Cpp.Comment class.

Predicates

expand all

Version History

Introduced in R2026a