]> sourceware.org Git - libabigail.git/commitdiff
Compare class names when comparing methods
authorDodji Seketeli <dodji@redhat.com>
Wed, 10 Sep 2014 16:07:11 +0000 (18:07 +0200)
committerDodji Seketeli <dodji@redhat.com>
Wed, 10 Sep 2014 16:08:41 +0000 (18:08 +0200)
Signed-off-by: Dodji Seketeli <dodji@redhat.com>
src/abg-ir.cc

index ab9281d07da90cb37793a6db5eedb906a25e3afb..e79aeaad5cdef9b599048c737ab5b1272a0e791e 100644 (file)
@@ -4382,6 +4382,19 @@ compare_function_types(const function_type& lhs,
   catch (...)
     {}
 
+  // Compare the names of the class of the method
+
+  if (!!lhs_class != !!rhs_class)
+    return false;
+
+  if (lhs_class
+      && (lhs_class->get_qualified_name() != rhs_class->get_qualified_name()))
+    return false;
+
+  // Then compare the return type; Beware if it's t's a class type
+  // that is the same as the method class name; we can recurse for
+  // ever in that case.
+
   decl_base_sptr lhs_return_type_decl =
     get_type_declaration(lhs.get_return_type());
   decl_base_sptr rhs_return_type_decl =
This page took 0.044615 seconds and 5 git commands to generate.