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 <[email protected]> > To: Vinay Sajip <[email protected]> > Cc: "[email protected]" <[email protected]> > 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 <[email protected]> >> >>> >>> 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. >
arrays.diff
Description: Binary data
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
