[cfe-dev] Get member offset in a non-POD type

vlad zag destdestiny1 at gmail.com
Wed Mar 25 10:05:18 PDT 2015


Hi! I need to implement reflection for my C++ project. I was thinking about
something like offsetof() to get offset of a class member, but offsetof()
is applicable just for POD types. So, I have a question: is it possible to
implement Clang plugin(or tool) to generate metadata(like offsets, names,
types, ...) needed for reflection?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150325/a9553798/attachment.html>


More information about the cfe-dev mailing list