[cfe-dev] Reflection from AST?

Douglas Gregor dgregor at apple.com
Wed Oct 14 08:08:07 PDT 2009


On Oct 14, 2009, at 7:14 AM, Axel Naumann wrote:

> Hi,
>
> similar to my other question, but different enough to start a separate
> thread: I need to get e.g. the offsets of data members in classes, of
> base classes, and the size of a class. Would the AST be the right  
> place?

ASTContext::getASTRecordLayout returns the layout of a class.

	- Doug



More information about the cfe-dev mailing list