I’m trying to determine which destructors are being executed by a goto statement in a clang plugin. Is there a way to accomplish that easily?
We don't explicitly model that in the AST. If you don't want to compute it
yourself, you could build a CFG with the AddImplicitDtors flag set -- that
should include CFGImplicitDtor elements for the destructor calls.