[PATCH] libclang: functions to deal with anonymous fields

Argyrios Kyrtzidis akyrtzi at gmail.com
Wed Oct 30 16:29:13 PDT 2013


Hi, sorry for the delay!

On Oct 16, 2013, at 5:58 PM, Loïc Jaquemet <loic.jaquemet at gmail.com> wrote:

> * 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 ?

> 
> * 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
> 
> 
> 
> -- 
> Loïc Jaquemet
> <offsetof-field>





More information about the cfe-commits mailing list