[PATCH] D82728: [clang] Add -Wsuggest-override
David Blaikie via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 6 11:51:57 PDT 2020
dblaikie added a comment.
Generally Clang tries to avoid stylistic warnings like this (& they are left to be addressed by tools like clang-tidy), hence why -Winconsistent-missing-override was implemented that way (the presence of at least one "override" being a signal the user intended to use override and missed some, rather than that maybe the user hadn't intended to use it at all (because they were compiling their code with multiple versions, etc)). (but I wouldn't outright rule this out - just mentioning the general principle here, perhaps @rsmith or others have other ideas.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D82728/new/
https://reviews.llvm.org/D82728
More information about the cfe-commits
mailing list