libclang: expose pointer-to-member type

Che-Liang Chiou clchiou at gmail.com
Wed Oct 2 18:53:07 PDT 2013


Rename to clang_Type_getClassType

On Wed, Oct 2, 2013 at 4:24 PM, Argyrios Kyrtzidis <akyrtzi at gmail.com> wrote:
> Hi Che-Liang, sorry for the delay,
>
>  /**
> + * \brief Return the class type of an member pointer type.
> + *
> + * If a non-member-pointer type is passed in, an invalid type is returned.
> + */
> +CINDEX_LINKAGE CXType clang_getClassType(CXType T);
> +
> +/**
>
> I suggest naming this "clang_Type_getClassType", otherwise it looks good!
>
> On Oct 2, 2013, at 4:05 PM, Che-Liang Chiou <clchiou at gmail.com> wrote:
>
>> Hello, any concerns about the patch?
>>
>> On Sat, Sep 28, 2013 at 11:41 AM, Che-Liang Chiou <clchiou at gmail.com> wrote:
>>> Hello,
>>>
>>> What do you think about the patch? Any comments?
>>>
>>> Regards,
>>> Che-Liang
>>>
>>> On Fri, Sep 20, 2013 at 8:10 PM, Che-Liang Chiou <clchiou at gmail.com> wrote:
>>>> Conceptually the pointer-to-member type is, roughly speaking, a
>>>> composite of two types: the class type and the pointee type. This
>>>> patch adds clang_getClassType to Index.h which returns the class type
>>>> of a pointer-to-member, and extends clang_getPointeeType to return the
>>>> pointee type of a pointer-to-member. These two changes to the public
>>>> API should be the minimal amount of change needed for accessing
>>>> pointer-to-member type information.
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: memberpointer-v2.patch
Type: application/octet-stream
Size: 4645 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131002/2a1ea4c3/attachment.obj>


More information about the cfe-commits mailing list