<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 3, 2015 at 8:08 AM, Marshall Clow 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">mclow.lists added a comment.<br>
<br>
I ran this on LLVM + clang, and it changed calls in 61 files.  The changed LLVM codebase compiled successfully, and passed all the tests.<br>
<br>
Re: @dblaikie's comment, I'd rather call such a beast `llvm::swap`, </blockquote><div><br></div><div>Strikes me as a little subtle, but I don't find it fundamentally objectionable.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">and it would have to go into a header file that everyone already includes.<br></blockquote><div><br></div><div>Fair - difficult to do fixits that add includes. And while we do have a few headers that nearly everyone includes, they're probably not /everywhere/ and it may not be appropriate to put this utility in them anyway. Perhaps we can just, as a rule, ignore the general fixit hint and fix it 'our' way?<br><br>(or could we (do we?) have a lower bar for clang-tidy fixit hints that would allow us to just fixit to this function and let the user realize they need to add a missing include?)<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><br>
<br>
<a href="http://reviews.llvm.org/D15121" rel="noreferrer" target="_blank">http://reviews.llvm.org/D15121</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>
</div></div></blockquote></div><br></div></div>