<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;">On Mar 29, 2013, at 9:30 AM, Loïc Jaquemet <<a href="mailto:loic.jaquemet@gmail.com">loic.jaquemet@gmail.com</a>> wrote:<br><div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="letter-spacing: 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;">any comments ?<br></div></blockquote><div><br></div><div>I'll review it soon(ish).</div><br><blockquote type="cite"><div style="letter-spacing: 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;"><br>2013/3/25 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">Does this handle anonymous structs/unions ? For example:<br><br>struct Test {<br> struct {<br> union {<br> int foo;<br> };<br> };<br>};<br><br>If I pass "struct Test", "foo" will it work ? If yes, could you add a<br>related test ?<br><br></blockquote><br>It does not work.<br>I will look into that.<br></blockquote><br>And now it does handle anonymous records.<br>I added some tests cases and changed the unit test code.<br><br>I also removed the duplicate clang_Cursor_getOffsetOf().<br>After consideration, it did not make sense, especially in the<br>anonymous record situation.<br><br>Please see attached diffs.<br><br>* Implementation of sizeof, alignof and offsetof for libclang.<br>* Unit Tests<br>* Python bindings<br>* Python tests<br><br><br><br><br><br>--<br>Loïc Jaquemet<br></blockquote><br><br><br>--<span class="Apple-converted-space"> </span><br>Loïc Jaquemet</div></blockquote></div><br></body></html>