[cfe-dev] Reflection from AST?
Axel Naumann
Axel.Naumann at cern.ch
Thu Oct 15 01:22:58 PDT 2009
Hi Doug and Chris,
thanks SO much! Amazing, it's all there!
Cheers, Axel.
Douglas Gregor wrote on 10/14/2009 05:08 PM:
>
> 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