aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/cxx-pretty-print.h
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2022-06-27 17:00:34 -0400
committerDavid Malcolm <dmalcolm@redhat.com>2022-06-27 17:00:34 -0400
commit26f77c4d19b827f3a2a8a9323df8e182e1389cb9 (patch)
tree34c4715289d2b7bd46c08eca7265916bfc9304e6 /gcc/cp/cxx-pretty-print.h
parent0a8333ade9a03fc203055e69c05008d9733e9e9d (diff)
downloadgcc-26f77c4d19b827f3a2a8a9323df8e182e1389cb9.zip
gcc-26f77c4d19b827f3a2a8a9323df8e182e1389cb9.tar.gz
gcc-26f77c4d19b827f3a2a8a9323df8e182e1389cb9.tar.bz2
Add 'final' and 'override' in various places
gcc/cp/ChangeLog: * cxx-pretty-print.h: Add "final" and "override" to various vfunc implementations, removing redundant "virtual" as appropriate. * module.cc: Likewise. gcc/ChangeLog: * genmatch.cc: Add "final" and "override" to various vfunc implementations, removing redundant "virtual" as appropriate. * gensupport.cc: Likewise. * gimple-range-cache.h: Likewise. * ipa-icf-gimple.h: Likewise. * ipa-icf.h: Likewise. * read-md.h: Likewise. * read-rtl-function.cc: Likewise. * tree-ssa-loop-ch.cc: Likewise. * tree-ssa-sccvn.cc: Likewise. gcc/lto/ChangeLog: * lto-dump.cc: Add "final" and "override" to various vfunc implementations, removing redundant "virtual" as appropriate. Signed-off-by: David Malcolm <dmalcolm@redhat.com>
Diffstat (limited to 'gcc/cp/cxx-pretty-print.h')
-rw-r--r--gcc/cp/cxx-pretty-print.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/gcc/cp/cxx-pretty-print.h b/gcc/cp/cxx-pretty-print.h
index 5080f70..593bd91 100644
--- a/gcc/cp/cxx-pretty-print.h
+++ b/gcc/cp/cxx-pretty-print.h
@@ -36,25 +36,25 @@ public:
pretty_printer *clone () const override;
- void constant (tree);
- void id_expression (tree);
- void primary_expression (tree);
- void postfix_expression (tree);
- void unary_expression (tree);
- void multiplicative_expression (tree);
- void conditional_expression (tree);
- void assignment_expression (tree);
- void expression (tree);
- void type_id (tree);
- void statement (tree);
- void declaration (tree);
- void declaration_specifiers (tree);
- void simple_type_specifier (tree);
- void function_specifier (tree);
- void declarator (tree);
- void direct_declarator (tree);
- void abstract_declarator (tree);
- void direct_abstract_declarator (tree);
+ void constant (tree) final override;
+ void id_expression (tree) final override;
+ void primary_expression (tree) final override;
+ void postfix_expression (tree) final override;
+ void unary_expression (tree) final override;
+ void multiplicative_expression (tree) final override;
+ void conditional_expression (tree) final override;
+ void assignment_expression (tree) final override;
+ void expression (tree) final override;
+ void type_id (tree) final override;
+ void statement (tree) final override;
+ void declaration (tree) final override;
+ void declaration_specifiers (tree) final override;
+ void simple_type_specifier (tree) final override;
+ void function_specifier (tree) final override;
+ void declarator (tree) final override;
+ void direct_declarator (tree) final override;
+ void abstract_declarator (tree) final override;
+ void direct_abstract_declarator (tree) final override;
/* This is the enclosing scope of the entity being pretty-printed. */
tree enclosing_scope;