[cfe-dev] destroy local objects at the end of a compound statement

peter jacobsen jacobsen.peter at gmail.com
Fri Dec 7 05:31:13 PST 2012


Hi All,

I am new to Clang, so may be missing something obvious.

I am implementing a static analyser and I want to know when objects are
constructed and deleted:

{
  MyClass c;
}

in this case, I climb the Ast and visit a CXXConstructExpr but nothing to
tell me about the implied destroy.  I could reverse iterate through the
compound statement and look for declarations etc. But I was not expecting
to have to do this.

Thanks,
Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20121207/c66fa5f5/attachment.html>


More information about the cfe-dev mailing list