mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-26 19:52:08 +00:00
9b99a77d8a
* src/abg-ir.h (class_decl::base_spec::base_spec): Take an offset and a is_virtual flag. (class_decl::base_spec::{get_is_virtual, get_offset_in_bits}): New methods. (class_decl::has_no_base_nor_member): New method declaration.. * src/abg-ir.cc (class_decl::base_spec::base_spec): Take an offset and a is_virtual flag (class_decl::has_no_base_nor_member): Define it. * src/abg-reader.cc (read_offset_in_bits): Renamed read_var_offset_in_bits into this. (read_is_virtual): New static function. (build_class_decl): Read the 'layout-offset-in-bits' and the 'is-virtual' of the base class specifier. Adjust for the read_var_offset_in_bits -> read_offset_in_bits rename. * src/abg-writer.cc (write_layout_offset): New overload for the base class specifiers. (write_class_decl): If the class has no member or base class, make it a proper empty xml element. Write the offset and the is-virtual attribute. * tests/data/test-read-write/test20.xml: New test input data. * tests/test-read-write.cc: De-serialize the test above, serialize it back and compare that both versions are the same. |
||
---|---|---|
.. | ||
test0.xml | ||
test1.xml | ||
test2.xml | ||
test3.xml | ||
test4.xml | ||
test5.xml | ||
test6.xml | ||
test7.xml | ||
test8.xml | ||
test9.xml | ||
test10.xml | ||
test11.xml | ||
test12.xml | ||
test13.xml | ||
test14.xml | ||
test15.xml | ||
test16.xml | ||
test17.xml | ||
test18.xml | ||
test19.xml | ||
test20.xml |