<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Hi Loïc,</div><div><br></div><div>About clang_Type_visitFields, can't the same functionality be achieved by getting the declaration cursor and using clang_visitChildren ?</div><br><div><div>On Dec 15, 2013, at 2:34 PM, Loïc Jaquemet <<a href="mailto:loic.jaquemet@gmail.com">loic.jaquemet@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Hi,<br><br>Nov 17 updated patch for 197355<br><br>* libclang: Add three functions useful for dealing with anonymous fields.<br>+clang_Cursor_getOffsetOfField<br>+clang_Cursor_isAnonymous<br>+clang_Type_visitFields<br><br>* Python; Add corresponding methods for dealing with anonymous fields.<br><br>* TU in print-type<br>- adds [nbFields] in c-index-test for records<br>- for anonymous record, shows offset of field in anonymous and parent<br>record. ( clang_Type_getOffsetOf/clang_Cursor_getOffsetOfField)<br><br>2013/11/17 Loïc Jaquemet <<a href="mailto:loic.jaquemet@gmail.com">loic.jaquemet@gmail.com</a>>:<br><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">* libclang: Add three functions useful for dealing with anonymous<br>fields.<br>+clang_Cursor_getOffsetOfField<br>+clang_Cursor_isAnonymous<br>+clang_Type_visitFields<br></blockquote><br>Could you add a test, e.g. have c-index-test's '-test-print-type' print<br>this info ?<br><br></blockquote></blockquote><br>tests added in PrintType and PrintTypeSize.<br>I also reorganised the validation code for<br>clang_Cursor_getOffsetOfField and clang_Type_getOffsetOf<br><br><br><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br>* Python; Add corresponding methods for dealing with anonymous fields.<br><br>* Python; Add the __contains__ method to SourceRange<br>its a useful helper function.<br>Plus it is useful to detect bug<br><a href="http://llvm.org/bugs/show_bug.cgi?id=17475">http://llvm.org/bugs/show_bug.cgi?id=17475</a><br><br>2013/10/12 Loïc Jaquemet <loic.jaquemet@gmail.com>:<br><blockquote type="cite">* Adds the __contains__ method to SourceRange<br>It is useful to detect bug http://llvm.org/bugs/show_bug.cgi?id=17475<br><br></blockquote></blockquote></blockquote></blockquote><br><br><br><br>--<br>Loïc Jaquemet<br></blockquote><br><br><br>--<span class="Apple-converted-space"> </span><br>Loïc Jaquemet<br><span><libclang-visit-fields-197355></span></div></blockquote></div><br></body></html>