Contenuto principale

Cpp.DestructorName Class

Namespace: Cpp
Superclasses: AstNodeProperties

Represents the destructor_name nodes in the syntax tree of your code

Since R2026a

Description

The PQL class DestructorName represents the node destructor_name in the syntax tree of your code.

struct Foo {
  ~Foo();
};

void test() {
  Foo f;
  f.~Foo();
}

The ~Foo tokens in the code produce destructor_name nodes; both the declaration ~Foo() and the explicit call f.~Foo() contain destructor_name in the tree.

Predicates

expand all

Version History

Introduced in R2026a