Do any C++ automatic-refactoring tools exist that can mark all classes with non-virtual destructors final
? This could prevent bad inheritance choices which would potentially lead to undefined behavior.
It seems like a fairly simple Perl script could do a decent job with this, but an even better option would be something based on Clang tools.
A Windows tool would be acceptable, even if it requires an MSVC license, but I'd prefer something that can run on Debian Linux.