]> sourceware.org Git - libabigail.git/commit
Make var_diff and function_decl_diff extend decl_diff_base
authorDodji Seketeli <dodji@redhat.com>
Sat, 1 Nov 2014 10:50:10 +0000 (11:50 +0100)
committerDodji Seketeli <dodji@redhat.com>
Sat, 1 Nov 2014 11:15:14 +0000 (12:15 +0100)
commitba77dd98c4eebb390c96ea238512d2ff82aa7a92
tree4b418eacc3906d480fe41637d04a4209ccf5e6ec
parentad9c8a1b61324f466c09de1ca3bd19a10ebc89ae
Make var_diff and function_decl_diff extend decl_diff_base

* include/abg-comparison.h (class var_diff, class
function_decl_diff): Make these types inherit the decl_diff_base
class.  This is like the fact that all kinds of diff inherit the
type_diff_base class.
* src/abg-comparison.cc (var_diff::var_diff)
(function_decl_diff::function_decl_diff): Adjust to initialize the
sub-object of decl_diff_base;
(is_decl_diff): New predicate to know if a diff is about decls.
(is_function_decl): New predicate to know if a diff is about
function decls.
(function_suppression::suppresses_diff): Adjust to use the new
is_function_decl.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
include/abg-comparison.h
src/abg-comparison.cc
This page took 0.033205 seconds and 5 git commands to generate.