From 2ac1459f044ee5a6ec5aee53a87fd3b8974a77f5 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Mon, 23 May 2022 15:08:13 -0400 Subject: analyzer: use 'final' and 'override' where appropriate gcc/analyzer/ChangeLog: * call-info.cc: Add "final" and "override" to all vfunc implementations that were missing them, as appropriate. * engine.cc: Likewise. * region-model.cc: Likewise. * sm-malloc.cc: Likewise. * supergraph.h: Likewise. * svalue.cc: Likewise. * varargs.cc: Likewise. Signed-off-by: David Malcolm --- gcc/analyzer/sm-malloc.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gcc/analyzer/sm-malloc.cc') diff --git a/gcc/analyzer/sm-malloc.cc b/gcc/analyzer/sm-malloc.cc index abdce6b..3c0f890 100644 --- a/gcc/analyzer/sm-malloc.cc +++ b/gcc/analyzer/sm-malloc.cc @@ -1015,7 +1015,8 @@ public: const char *get_kind () const final override { return "possible_null_arg"; } - bool subclass_equal_p (const pending_diagnostic &base_other) const + bool subclass_equal_p (const pending_diagnostic &base_other) + const final override { const possible_null_arg &sub_other = (const possible_null_arg &)base_other; @@ -1119,7 +1120,8 @@ public: const char *get_kind () const final override { return "null_arg"; } - bool subclass_equal_p (const pending_diagnostic &base_other) const + bool subclass_equal_p (const pending_diagnostic &base_other) + const final override { const null_arg &sub_other = (const null_arg &)base_other; -- cgit v1.1