libabigail/tests/data/test-read-write
Dodji Seketeli 9b99a77d8a Support offsets and virtual attribute in base class specifiers
* 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.
2013-07-23 23:13:53 +02:00
..
test0.xml Support qualified types & Misc ancillary fixes 2013-03-27 23:59:16 +01:00
test1.xml Support qualified types & Misc ancillary fixes 2013-03-27 23:59:16 +01:00
test2.xml Support qualified types & Misc ancillary fixes 2013-03-27 23:59:16 +01:00
test3.xml Support qualified types & Misc ancillary fixes 2013-03-27 23:59:16 +01:00
test4.xml Support pointer types & Fix IR types equality 2013-03-28 15:42:12 +01:00
test5.xml Support reference types 2013-03-29 16:44:08 +01:00
test6.xml Update enum decl representation as per the schema 2013-07-23 23:13:49 +02:00
test7.xml Support typedef declarations 2013-03-30 21:59:19 +01:00
test8.xml Support var decl & mangled_name attributes 2013-04-02 16:51:59 +02:00
test9.xml Support function_type and adapt a function_decl to use it 2013-07-23 23:13:53 +02:00
test10.xml Support method type/decl, variadic functions, class declarations-only 2013-07-23 23:13:53 +02:00
test11.xml Support function_type and adapt a function_decl to use it 2013-07-23 23:13:53 +02:00
test12.xml Support function_type and adapt a function_decl to use it 2013-07-23 23:13:53 +02:00
test13.xml Support function_type and adapt a function_decl to use it 2013-07-23 23:13:53 +02:00
test14.xml Support function_type and adapt a function_decl to use it 2013-07-23 23:13:53 +02:00
test15.xml Initial support of class templates 2013-07-23 23:13:51 +02:00
test16.xml Initial support for member class templates 2013-07-23 23:13:51 +02:00
test17.xml Support method type/decl, variadic functions, class declarations-only 2013-07-23 23:13:53 +02:00
test18.xml Fix handling of forward decl of classes 2013-07-23 23:13:53 +02:00
test19.xml Iron out support for simple base classes. 2013-07-23 23:13:53 +02:00
test20.xml Support offsets and virtual attribute in base class specifiers 2013-07-23 23:13:53 +02:00