Yesterday I enabled -Wsuggest-override in the main LLVM build and have been fighting with the -Werror bots ever since. The key culprits making this difficult are googletest and googlemock, which do not use the override keyword in their sources, so any files that include them are met with massive warning (or error, in the case of -Werror) spam.
I've been going through and playing whack-a-mole by adding -Wno-suggest-override to directories that have code that uses gtest and/or gmock; this approach is feeling increasingly inelegant the more I do it, but all the patches I've submitted for review have been LGTM'd so far.
I'm wondering if I should do this a different way, or if it's fine to just proceed along this path until the bots are green again.
Thank you for your review.
Because it's added as a define, this gets passed to rc.exe in Windows builds, which is used for some clang-tools-extra unittest target, which then proceeds to fail with:
fatal error RC1106: invalid option: -o-suggest-override
(See e.g. https://logs.chromium.org/logs/chromium/buildbucket/cr-buildbucket.appspot.com/8874065661026292624/+/steps/package_clang/0/stdout)
I don't know why this doesn't happen to other flags, but I think there's been enough fallout from this now that it should be reverted while that's figured out. Reverting in 3eec65782575a1284391e447142fd004dd5de4a9.