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

Member predicate Stmt::getImplicitDestructorCall

Gets the nth compiler-generated destructor call that is performed after this statement, in order of destruction.

For instance, in the following code, getImplicitDestructorCall(0) for the block will be the destructor call for c2:

{
     MyClass c1;
     MyClass c2;
}
DestructorCall getImplicitDestructorCall(int n)