mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-22 09:49:59 +00:00
661f76c8f4
* include/abg-comparison.h (class base_diff): New. * include/abg-ir.h (function_decl::get_first_non_implicit_parm): New member function. (function_type::get_first_non_implicit_parm): Likewise. * src/abg-comparison.cc (base_has_changed): Change parm to take class_decl::base_spec_sptr. (class_diff::ensure_lookup_tables_populated): Compare the base specs not just the base classes. (class_diff::report): Adjust. Report sub-type changes in the member functions. (base_diff::*): Define member functions. (compute_diff): Define an overload for base_diff_sptr. * src/abg-hash.cc ({function_type, method_type}:#️⃣:operator()): Do not hash the implicit parm of member functions. (class_decl:#️⃣:operator()): Do not hash member types. * src/abg-ir.cc (decl_base::decl_base): Initialize the hashing_started_ member that got moved here from class_decl. (decl_base::get_hash): Do not set the hash if it's being set b/c we are in a class_decl. (decl_base::operator==) Do not compare hashes for now. Two decls can have different hashes and compare equal; think about an incomplete type foo, that compares equal with a complete foo. Their hashes will be different though. So for now, just avoid comparing these. (compare_function_types): Avoid comparing the implicit parameter for member functions. ({function, method}_type::get_first_non_implicit_parm): New definition. * tests/data/test-read-write/test20.xml: Update. Signed-off-by: Dodji Seketeli <dodji@redhat.com> |
||
---|---|---|
.. | ||
test-bidiff | ||
test-core-diff | ||
test-read-dwarf | ||
test-read-write | ||
test-write-read-archive |