[PATCH] Just some comments related to Template Instantiation constructs

Richard Smith richard at metafoo.co.uk
Fri May 3 14:36:38 PDT 2013


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?

On Fri, May 3, 2013 at 2:17 PM, Faisal Vali <faisalv at gmail.com> wrote:

> As requested - a patch that replaces the pair kludge with ArrayRef.
>
> 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.
>
> Let me know what you think of this patch.
>
> Faisal Vali
>
>
>
> On Fri, May 3, 2013 at 1:19 PM, Richard Smith <richard at metafoo.co.uk>wrote:
>
>> 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...
>>
>> getTemplateInstantiationArgs already has a doc comment in
>> SemaTemplateInstantiate.cpp, which seems pretty good.
>>
>>
>> On Fri, May 3, 2013 at 8:00 AM, Faisal Vali <faisalv at gmail.com> wrote:
>>
>>> What do you think Richard?  Are the comments accurate - and should we
>>> add them?
>>>
>>> Faisal Vali
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130503/510ad711/attachment.html>


More information about the cfe-commits mailing list