Thanks!!<div>I've found all informations which I need.<br><br><div class="gmail_quote">2011/5/27 Douglas Gregor <span dir="ltr"><<a href="mailto:dgregor@apple.com">dgregor@apple.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
On May 27, 2011, at 8:05 AM, Wenhan Gu wrote:<br>
<br>
> Hi all,<br>
><br>
> I want to get sizeof, offsetof, alignment... of struct type using clang.<br>
> I've already seek all RecordDecl and related inheritance class on doxygen but cannot find interfaces like getSizeOf().<br>
><br>
> Could someone give me a hand?<br>
<br>
</div>ASTContext::getTypeInfo().<br>
<br>
ASTContext has many manipulation routines for AST nodes.<br>
<br>
        - Doug<br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Wen-Han<br>
</div>