[cfe-dev] [analyzer] Thoughts on Temporary Destructors

Daniel Connelly dconnelly at google.com
Fri Jan 31 02:32:48 PST 2014

After digging into this for a couple of weeks across the 2013/2014
boundary, I now doubt that my 20% time will be enough to properly implement
this support. Anybody who's interested should feel free to work on this
instead, as I'll not be moving forward with it. Jordan, thanks for the
pointers and the summary of the problem!

On Wed, Dec 18, 2013 at 1:55 AM, Jordan Rose <jordan_rose at apple.com> wrote:

> On Dec 16, 2013, at 6:57 , Daniel Connelly <dconnelly at google.com> wrote:
> On Fri, Dec 13, 2013 at 7:13 PM, Jordan Rose <jordan_rose at apple.com>wrote:
>> In discussing the first problem, Ted and Anna realized that the liveness
>> information for nested && and || expressions was still incorrect: the
>> outermost expression may potentially depend on all of the inner
>> expressions, but that means that those sub-expressions are *always* considered
>> live (since expressions are marked dead, in a reverse analysis, at the
>> point of evaluation, and there are paths that don't evaluate a particular
>> sub-expression in a complex logical expression). This wasn't an issue
>> before because && and || didn't actually use those expressions to compute
>> their value, but it's still incorrect.
> Is this http://llvm.org/bugs/show_bug.cgi?id=18159 ?
> Yes.
> Thanks for the overview. This is all pretty new to me, so I'm going to dig
> into the problem for a couple of days and hopefully come up with some
> intelligent questions.
> Sorry for the blast of information. If you want an easier place to start
> playing with the analyzer, you could try hacking on productizing
> SimpleStreamChecker. (And if you haven't watched our talk from last year's
> LLVM dev meeting, I definitely suggest taking the time to do so. It's aimed
> at checker writers, but still describes the general structure of the
> analyzer. It's linked near the top of
> http://clang-analyzer.llvm.org/checker_dev_manual.html)
> Jordan

Daniel Connelly | Software Engineer – Chrome | dconnelly at google.com |

Google Germany GmbH
Dienerstr. 12
80331 München

Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschäftsführer: Graham Law, Christine Elizabeth Flores
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140131/bcceb7c1/attachment.html>

More information about the cfe-dev mailing list