[PATCH] libclang: functions to deal with anonymous fields

Loïc Jaquemet loic.jaquemet at gmail.com
Sun Nov 17 17:07:27 PST 2013


>> > * libclang: Add three functions useful for dealing with anonymous
>> > fields.
>> > +clang_Cursor_getOffsetOfField
>> > +clang_Cursor_isAnonymous
>> > +clang_Type_visitFields
>>
>> Could you add a test, e.g. have c-index-test's '-test-print-type' print
>> this info ?
>>

tests added in PrintType and PrintTypeSize.
I also reorganised the validation code for
clang_Cursor_getOffsetOfField and clang_Type_getOffsetOf


>> >
>> > * Python; Add corresponding methods for dealing with anonymous fields.
>> >
>> > * Python; Add the __contains__ method to SourceRange
>> > its a useful helper function.
>> > Plus it is useful to detect bug
>> > http://llvm.org/bugs/show_bug.cgi?id=17475
>> >
>> > 2013/10/12 Loïc Jaquemet <loic.jaquemet at gmail.com>:
>> >> * Adds the __contains__ method to SourceRange
>> >> It is useful to detect bug http://llvm.org/bugs/show_bug.cgi?id=17475
>> >>




--
Loïc Jaquemet
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libclang-visit-fields
Type: application/octet-stream
Size: 18220 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131117/52227ac4/attachment.obj>


More information about the cfe-commits mailing list