Currently this warning is on for both clang and GCC, when building clang.
It's off for the rest of LLVM, so my sense is it isn't that vital.
Clang's version seems to be OK: it warns if you're declaring a method that's
virtual in the base, but not overriding.
GCC's version warns whenever there's name hiding, even if you are overriding
something. It fires on this legitimate pattern:
class Base { virtual void foo(); // to be overridden void foo(int); // implemented in terms of foo() };
foo(int) is hidden in derived classes, but foo(int) is used polymorphically
through Base* and works fine there.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=20423
nit: maybe put the gnu bug link in comments