[cfe-dev] How could I get sizeof from RecordDecl with clang?

Wen-Han Gu nowar100 at gmail.com
Fri May 27 08:48:09 PDT 2011


Thanks!!
I've found all informations which I need.

2011/5/27 Douglas Gregor <dgregor at apple.com>

>
> On May 27, 2011, at 8:05 AM, Wenhan Gu wrote:
>
> > Hi all,
> >
> > I want to get sizeof, offsetof, alignment... of struct type using clang.
> > I've already seek all RecordDecl and related inheritance class on doxygen
> but cannot find interfaces like getSizeOf().
> >
> > Could someone give me a hand?
>
> ASTContext::getTypeInfo().
>
> ASTContext has many manipulation routines for AST nodes.
>
>        - Doug
>
>


-- 
Best regards,
Wen-Han
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110527/932ea853/attachment.html>


More information about the cfe-dev mailing list