When compiling with g ++, -fdump-class-hierarchy exports the vtables program in a (more or less) human readable format. However, the resulting file contains only information about the virtual table, but not about the layout of the class itself. I would like to get a complete list of layouts of all my program classes.
clang offers the arguments -cc1 -fdump-record-layouts to achieve this. The MS compiler can be called using -d1reportAllClassLayout. Is there any g ++ switch that does this?
source
share