diff options
author | David Malcolm <dmalcolm@redhat.com> | 2022-05-23 15:08:13 -0400 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2022-05-23 15:08:13 -0400 |
commit | 2ac1459f044ee5a6ec5aee53a87fd3b8974a77f5 (patch) | |
tree | 417f566ad56850fdf74e4624cfe45b4eec29f889 /gcc/analyzer/engine.cc | |
parent | a239aff82c3771242d957c0f744cf62b42ed2f2a (diff) | |
download | gcc-2ac1459f044ee5a6ec5aee53a87fd3b8974a77f5.zip gcc-2ac1459f044ee5a6ec5aee53a87fd3b8974a77f5.tar.gz gcc-2ac1459f044ee5a6ec5aee53a87fd3b8974a77f5.tar.bz2 |
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 <dmalcolm@redhat.com>
Diffstat (limited to 'gcc/analyzer/engine.cc')
-rw-r--r-- | gcc/analyzer/engine.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/analyzer/engine.cc b/gcc/analyzer/engine.cc index c59374b..5ccfedf 100644 --- a/gcc/analyzer/engine.cc +++ b/gcc/analyzer/engine.cc @@ -328,7 +328,7 @@ public: } state_machine::state_t get_state (const gimple *stmt ATTRIBUTE_UNUSED, - tree var) + tree var) final override { logger * const logger = get_logger (); LOG_FUNC (logger); @@ -342,7 +342,7 @@ public: return current; } state_machine::state_t get_state (const gimple *stmt ATTRIBUTE_UNUSED, - const svalue *sval) + const svalue *sval) final override { logger * const logger = get_logger (); LOG_FUNC (logger); @@ -355,7 +355,7 @@ public: void set_next_state (const gimple *stmt, tree var, state_machine::state_t to, - tree origin) + tree origin) final override { logger * const logger = get_logger (); LOG_FUNC (logger); @@ -384,7 +384,7 @@ public: void set_next_state (const gimple *stmt, const svalue *sval, state_machine::state_t to, - tree origin) + tree origin) final override { logger * const logger = get_logger (); LOG_FUNC (logger); @@ -1597,7 +1597,7 @@ public: return false; } - label_text describe_final_event (const evdesc::final_event &ev) + label_text describe_final_event (const evdesc::final_event &ev) final override { if (m_stack_pop_event) return ev.formatted_print |