[cfe-commits] libclang: Updated patch to expose array size and element type

Vinay Sajip vinay_sajip at yahoo.co.uk
Mon Oct 3 08:54:49 PDT 2011


I've attached a patch to do the following:

clang_getArrayElementType is renamed to clang_getElementType. The comment reflects that it supports not only arrays but vector and complex types.
The implementation supports constant and incomplete arrays, vector and complex types.

clang_getArraySize now also supports vector types.



----- Original Message -----
> From: Argyrios Kyrtzidis <kyrtzidis at apple.com>
> To: Vinay Sajip <vinay_sajip at yahoo.co.uk>
> Cc: "cfe-commits at cs.uiuc.edu" <cfe-commits at cs.uiuc.edu>
> Sent: Tuesday, 27 September 2011, 21:11
> Subject: Re: [cfe-commits] libclang: Patch to expose array size and element type
> 
> 
> On Sep 27, 2011, at 12:08 PM, Vinay Sajip wrote:
> 
>>>  From: Argyrios Kyrtzidis <kyrtzidis at apple.com>
>> 
>>> 
>>>  In r140614, thanks!
>>> 
>> 
>> 
>>  Thanks very much. Actually, I had an additional use case I came across: I 
> want to get the element type for incomplete arrays, too, and also for complex 
> types. Possibly the clang_getArrayElementType() function could be just renamed 
> to clang_getElementType(), where it could serve to return also the element type 
> for Complex as well as the array types. Alternatively, we could leave the Array 
> one as is and add an explicit clang_getComplexElementType().
> 
> clang_getElementType() sounds good.
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: arrays.diff
Type: application/octet-stream
Size: 3197 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111003/611603b2/attachment.obj>


More information about the cfe-commits mailing list