libabigail/tests/data/test-read-write
Dodji Seketeli ed5cd14a34 Get rid of class_decl::data_member
* include/abg-fwd.h (has_scope): Delete the overloads for
	type_base.
	(get_member_is_static): Add an overload for decl_base*.
	({is,get,set}_data_member,{get_,set}_data_member_is_laid_out)
	({get,set}_data_member_offset): New access declarations.
	* include/abg-ir.h (class context_rel): Move up.
	(decl_base::set_context_rel): New definition.
	(class dm_context_rel): New type.
	(decl_base::hash_as_member): Remove.
	(var_decl::set_scope): Declare new virtual member.
	(class_decl::data_member): Remove.
	(ir_node_visitor::visit): Remove the overload for
	class_decl::data_member.
	(represent_data_member): Remove the represent overload for
	class_decl::data_member into this.  Make it take a var_decl.
	(represent): Change the overload that takes two
	class_decl::data_member take two var_decl.  And adjust it.
	(class_diff::report): Adjust.
	* src/abg-corpus.cc (symtab_build_visitor_type::visit): Remove the
	overload that takes a class_decl::data_member*.  Adjust the
	overload that takes a var_decl to recognize (static) data members.
	* src/abg-dwarf-reader.cc (build_translation_unit_and_add_to_ir)
	(build_class_type_and_add_to_ir, build_ir_node_from_die):
	Adjust.
	* src/abg-hash.cc (var_decl:#️⃣:operator()): Adjust.
	(class_decl::data_member:#️⃣:operator()): Remove.
	(decl_base:#️⃣:operator()): Take the context relationship in
	account here.
	(decl_base::hash_as_member::operator()): Remove.
	({enum_type_decl,typedef_decl}:#️⃣:operator()): Adjust.
	(class_decl::member_function:#️⃣:operator()): Adjust.
	(type_base::dynamic_hash::operator()): Adjust.
	* src/abg-ir.cc (dm_context_rel::~dm_context_rel): New definition.
	(has_scope): Remove overload for type_base.
	(get_member_is_static): New overload for decl_base*.
	(is_data_member): New function definition.
	({get,set}_data_member_{offset,is_laid_out}): Define new
	accessors.
	(var_decl::set_scope): Define new member function.  Make this set
	a dm_context_rel as the context relationship.
	(var_decl::operator==): Adjust to take in account the new data
	member relationship.
	(class_decl::class_decl): Adjust.
	(class_decl::insert_member_decl): Adjust.
	(class_decl::add_data_member): Remove the overload for
	class_decl::data_member.
	(class_decl::add_data_member): Adjust the overload for var_decl.
	(operator==): Remove overload for class_decl::data_member*.
	(class_decl::data_member::operator==): Likewise.
	(ir_node_visitor::visit): Remove overload for
	class_decl::data_member.
	* src/abg-writer.cc (write_layout_offset, write_class_decl):
	Adjust.
	* tests/data/test-read-write/test20.xml: Adjust.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
2014-03-19 21:18:38 +01:00
..
test0.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test1.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test2.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test3.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test4.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test5.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test6.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test7.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test8.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test9.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test10.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test11.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test12.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test13.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test14.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test15.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test16.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test17.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test18.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test19.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test20.xml Get rid of class_decl::data_member 2014-03-19 21:18:38 +01:00
test21.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test22.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00
test23.xml Support new 'abi-corpus' native XML format (.abi) 2014-01-07 14:12:26 +01:00