refactor: Apply override specifier consistently#18914
refactor: Apply override specifier consistently#18914maflcko merged 2 commits intobitcoin:masterfrom
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
|
ACK d044e0e: consistent use of |
|
ACK d044e0e, based on my understanding that adding |
|
ACK d044e0e @MarcoFalke that is my understanding too, except that if |
|
It's my understanding that changing In addition, |
Summary: refactor: Use override for non-final overriders 1551cea2d52cac403ff506a7cc955d8de8fd6f3e refactor: Remove override for final overriders d044e0ec7d37bbcdf10bbdb903b9119741c7297d > Two commits are split out from [[bitcoin/bitcoin#16710 | PR16710]] to make reviewing easier. > > From C++ FAQ: > > C.128: Virtual functions should specify exactly one of virtual, override, or final > Reason Readability. Detection of mistakes. Writing explicit virtual, override, or final is self-documenting and enables the compiler to catch mismatch of types and/or names between base and derived classes. However, writing more than one of these three is both redundant and a potential source of errors. This is a backport of Core [[bitcoin/bitcoin#18914 | PR18914]] Most of the work was done already in D767 Test Plan: `ninja all check-all` Reviewers: #bitcoin_abc, majcosta Reviewed By: #bitcoin_abc, majcosta Differential Revision: https://reviews.bitcoinabc.org/D9082
merge bitcoin#18914, bitcoin#13306, bitcoin#16424, bitcoin#13899, bitcoin#17486, bitcoin#17880, bitcoin#18145, bitcoin#18843, bitcoin#16710: split warnings out of CXXFLAGS, add more flags
Two commits are split out from #16710 to make reviewing easier.
From C++ FAQ: