CodeQL library for C/C++
codeql/cpp-all 1.1.0 (changelog, source)

Member predicate DeleteOrDeleteArrayExpr::getDestructorCall

Gets the call to a destructor that occurs prior to the object’s memory being deallocated, if any.

In the case of delete[] at runtime, the destructor will be called once for each element in the array, but the destructor call only exists once in the AST.

DestructorCall getDestructorCall()