LGTM<br><br><div class="gmail_quote">On Fri, Sep 28, 2012 at 7:44 PM, Richard Trieu <span dir="ltr"><<a href="mailto:rtrieu@google.com" target="_blank">rtrieu@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Do a little cleaning for the self reference visitor.<div>-Allow Sema to do more processing on the initial Expr before checking it.</div><div>-Remove the special conditions in HandleExpr()</div><div>-Move the code so that only one call site is needed.</div>

<div>-Removed the function from Sema and only call it locally.</div><div>-Warn on potentially evaluated reference variables, not just those cast to r-values.</div><div>-Update tests.</div><div><div><br></div><div>This new version will catch the following cases:</div>

<div>int &a(a);</div><div>int &a{a};</div><div>int a(a);</div><div>int a{a};</div></div>
</blockquote></div><br>