libclang: expose pointer-to-member type
akyrtzi at gmail.com
Wed Oct 2 16:24:29 PDT 2013
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:
>> What do you think about the patch? Any comments?
>> 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.
More information about the cfe-commits