CodeQL library for C/C++
codeql/cpp-all 0.12.12-dev (changelog, source)
Search

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()