Thanks, r181077.<div><br><div class="gmail_quote">On Fri, May 3, 2013 at 2:46 PM, Faisal Vali <span dir="ltr"><<a href="mailto:faisalv@gmail.com" target="_blank">faisalv@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div>Ok - Used the appropriate ArrayRef ctor, and folded that line.<br></div><br>No commit access.<br></div><br>Thanks!<span class="HOEnZb"><font color="#888888"><br><br></font></span></div><div class="gmail_extra">
<span class="HOEnZb"><font color="#888888"><br clear="all"><div>Faisal Vali<br><br></div></font></span><div><div class="h5">
<br><br><div class="gmail_quote">On Fri, May 3, 2013 at 4:38 PM, Richard Smith <span dir="ltr"><<a href="mailto:richard@metafoo.co.uk" target="_blank">richard@metafoo.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Also...</div><div><br></div><div>--- lib/Sema/SemaTemplateInstantiateDecl.cpp<span style="white-space:pre-wrap"> </span>(revision 181010)</div><div>+++ lib/Sema/SemaTemplateInstantiateDecl.cpp<span style="white-space:pre-wrap"> </span>(working copy)</div>
<div>@@ -1152,12 +1152,12 @@</div><div> // this declaration.</div><div> FunctionTemplateDecl *FunctionTemplate = D->getDescribedFunctionTemplate();</div><div> if (FunctionTemplate && !TemplateParams) {</div>
<div>- std::pair<const TemplateArgument *, unsigned> Innermost</div><div>+ ArrayRef<TemplateArgument> Innermost</div><div> = TemplateArgs.getInnermost();</div><div><br></div><div>May as well fold this to one line now.</div>
<div><div>
<br><div class="gmail_quote">On Fri, May 3, 2013 at 2:36 PM, Richard Smith <span dir="ltr"><<a href="mailto:richard@metafoo.co.uk" target="_blank">richard@metafoo.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The data() + size() changes shouldn't be necessary; there's an ArrayRef(const T *data, size_t length) constructor. Otherwise, looks great. Do you have commit access yet?<div><div><br><br>
<div class="gmail_quote">On Fri, May 3, 2013 at 2:17 PM, Faisal Vali <span dir="ltr"><<a href="mailto:faisalv@gmail.com" target="_blank">faisalv@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>As requested - a patch that replaces the pair kludge with ArrayRef.<br><br></div>Sorry about that earlier non-sense comment - I just assumed I remembered how that member was used correctly when i fiddled with it last (months ago). Should have looked at the code.<br>
<br></div>Let me know what you think of this patch.<span><font color="#888888"><br></font></span></div><div class="gmail_extra"><span><font color="#888888"><br clear="all"><div>Faisal Vali<br>
<br></div></font></span><div><div>
<br><br><div class="gmail_quote">On Fri, May 3, 2013 at 1:19 PM, Richard Smith <span dir="ltr"><<a href="mailto:richard@metafoo.co.uk" target="_blank">richard@metafoo.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>The Template.h comment is not right -- an ArgList is really a second-rate facsimile of an ArrayRef. A patch making it be a typedef for ArrayRef<TemplateArgument> would be great, though...<br><div>
<br></div><div>getTemplateInstantiationArgs already has a doc comment in SemaTemplateInstantiate.cpp, which seems pretty good.</div></div></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Fri, May 3, 2013 at 8:00 AM, Faisal Vali <span dir="ltr"><<a href="mailto:faisalv@gmail.com" target="_blank">faisalv@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">What do you think Richard? Are the comments accurate - and should we add them?<span><font color="#888888"><br>
<br clear="all"><div><div>Faisal Vali<br><br></div>
</div></font></span></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br></div>