* [PATCH][pushed] analyzer: add more final override keywords
@ 2022-08-16 9:01 Martin Liška
0 siblings, 0 replies; only message in thread
From: Martin Liška @ 2022-08-16 9:01 UTC (permalink / raw)
To: gcc-patches
Pushed as obvious.
Martin
gcc/analyzer/ChangeLog:
* region-model.cc: Fix -Winconsistent-missing-override clang
warning.
* region.h: Likewise.
---
gcc/analyzer/region-model.cc | 4 ++--
gcc/analyzer/region.h | 3 ++-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/gcc/analyzer/region-model.cc b/gcc/analyzer/region-model.cc
index b05b7097c00..b5bc3efda32 100644
--- a/gcc/analyzer/region-model.cc
+++ b/gcc/analyzer/region-model.cc
@@ -3425,7 +3425,7 @@ public:
result_set.add (sval);
}
- void visit_unaryop_svalue (const unaryop_svalue *sval)
+ void visit_unaryop_svalue (const unaryop_svalue *sval) final override
{
const svalue *arg = sval->get_arg ();
if (result_set.contains (arg))
@@ -3449,7 +3449,7 @@ public:
}
}
- void visit_repeated_svalue (const repeated_svalue *sval)
+ void visit_repeated_svalue (const repeated_svalue *sval) final override
{
sval->get_inner_svalue ()->accept (this);
if (result_set.contains (sval->get_inner_svalue ()))
diff --git a/gcc/analyzer/region.h b/gcc/analyzer/region.h
index 20dffc7f577..d37584b7285 100644
--- a/gcc/analyzer/region.h
+++ b/gcc/analyzer/region.h
@@ -919,7 +919,8 @@ public:
const svalue *get_byte_offset () const { return m_byte_offset; }
bool get_relative_concrete_offset (bit_offset_t *out) const final override;
- const svalue * get_byte_size_sval (region_model_manager *mgr) const;
+ const svalue * get_byte_size_sval (region_model_manager *mgr)
+ const final override;
private:
--
2.37.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-08-16 9:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-16 9:01 [PATCH][pushed] analyzer: add more final override keywords Martin Liška
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).