[cfe-dev] [analyzer] Thoughts on Temporary Destructors
jordan_rose at apple.com
Tue Dec 17 16:55:51 PST 2013
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 ?
> 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)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev