This is an archive of the discontinued LLVM Phabricator instance.

[NFC] Add 'override' keyword where missing in include/ and lib/.
ClosedPublic

Authored by logan-5 on Jul 13 2020, 11:51 AM.

Details

Summary

This fixes warnings raised by Clang's new -Wsuggest-override, in preparation for enabling that warning in the LLVM build.

This patch also removes the virtual keyword where redundant, but only in places where doing so improves consistency within a given file. It also removes a couple unnecessary virtual destructor declarations in derived classes where the destructor inherited from the base class is already virtual.

Diff Detail

Event Timeline

logan-5 created this revision.Jul 13 2020, 11:51 AM
lattner accepted this revision.Jul 13 2020, 12:47 PM

Thanks

This revision is now accepted and ready to land.Jul 13 2020, 12:47 PM
This revision was automatically updated to reflect the committed changes.