]> sourceware.org Git - libabigail.git/commit
Take anonymous scopes into account when comparing decls
authorDodji Seketeli <dodji@redhat.com>
Wed, 5 Jun 2019 14:20:13 +0000 (16:20 +0200)
committerDodji Seketeli <dodji@redhat.com>
Thu, 13 Jun 2019 15:54:45 +0000 (17:54 +0200)
commit073608f47d9909abf486a3ae7f2f50431b70643d
tree55340af2774eb5bd0d35596bd0359f614919cf6e
parentfb70149cb1bacb62209180d5ee59ba7022c7ec85
Take anonymous scopes into account when comparing decls

This is another attempt at handling anonymous decls comparison.  It's
not the full blown method that I'd like, but this one seems to be fast
enough.  In this method, we take the immediate scope (and whether it's
anonymous or not) of the anonymous decl into account.

* include/abg-interned-str.h (interned_string::clear): Add new
member function.
* src/abg-ir.cc (equals): In the overload for decl_base, consider
the scope of the current (anonymous) decl.  If that scope is
anonymous then take that into account as well.
* tests/data/test-diff-pkg/spice-server-0.12.4-19.el7.x86_64-0.12.8-1.el7.x86_64-report-3.txt:
Adjust.
* tests/data/test-read-dwarf/PR22122-libftdc.so.abi: Likewise.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
include/abg-interned-str.h
src/abg-ir.cc
tests/data/test-diff-pkg/spice-server-0.12.4-19.el7.x86_64-0.12.8-1.el7.x86_64-report-3.txt
tests/data/test-read-dwarf/PR22122-libftdc.so.abi
This page took 0.04354 seconds and 5 git commands to generate.