Hi,

Nov 17 updated patch for 197355

* libclang: Add three functions useful for dealing with anonymous fields.
+clang_Cursor_getOffsetOfField
+clang_Cursor_isAnonymous
+clang_Type_visitFields

* Python; Add corresponding methods for dealing with anonymous fields.

* TU in print-type
- adds [nbFields] in c-index-test for records
- for anonymous record, shows offset of field in anonymous and parent
record. ( clang_Type_getOffsetOf/clang_Cursor_getOffsetOfField)

2013/11/17 Loïc Jaquemet <[email protected]>:
>>> > * 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 <[email protected]>:
>>> >> * 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

Attachment: libclang-visit-fields-197355
Description: Binary data

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to