[cfe-dev] Determining what destructors are run by a goto statement

Richard Smith via cfe-dev cfe-dev at lists.llvm.org
Thu May 19 15:16:03 PDT 2016


On Thu, May 19, 2016 at 2:48 PM, Michael Layzell via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160519/4bc32391/attachment.html>


More information about the cfe-dev mailing list