<div dir="ltr">+Lang, because he was asking me recently about this improvement & thinking of chipping in</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 18, 2016 at 10:56 AM, David Blaikie via cfe-commits <span dir="ltr"><<a href="mailto:cfe-commits@lists.llvm.org" target="_blank">cfe-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">dblaikie added a subscriber: dblaikie.<br>
dblaikie added a comment.<br>
<br>
It's not just modifications of shadowed variables that are a problem - one of the one's I'm concerned we should catch is:<br>
<br>
  struct foo {<br>
    std::unique_ptr<int> p;<br>
    foo(std::unique_ptr<int> p) : p(std::move(p)) {<br>
      f(*p);<br>
    }<br>
  };<br>
<br>
<br>
<a href="http://reviews.llvm.org/D18271" rel="noreferrer" target="_blank">http://reviews.llvm.org/D18271</a><br>
<br>
<br>
<br>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@lists.llvm.org">cfe-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits</a><br>
</blockquote></div><br></div>