Re: [PATCH 00/10] Add 'final' and 'override' where missing

2022-05-24 Thread Eric Gallager via Gcc-patches
On Mon, May 23, 2022 at 3:32 PM David Malcolm via Gcc-patches wrote: > > With C++11 we can add "final" and "override" to the decls of vfuncs > in derived classes, which documents to both human and automated readers > of the code that a decl is intended to override a vfunc in a base class, > and ca

[PATCH 00/10] Add 'final' and 'override' where missing

2022-05-23 Thread David Malcolm via Gcc-patches
With C++11 we can add "final" and "override" to the decls of vfuncs in derived classes, which documents to both human and automated readers of the code that a decl is intended to override a vfunc in a base class, and can help catch mistakes where we intended to override a vfunc, but messed up the p