[cfe-dev] Interest in a -Wimplicit-virtual?
Elliot Glaysher (Chromium)
erg at chromium.org
Wed Mar 2 14:01:01 PST 2011
In the chromium clang plugin, we check for the following case:
struct A {
virtual void method();
};
struct B : public A {
void method(); // expected-warning {{Overridden method must have
"virtual" keyword}}
};
Our style guide requires people to not depend on virtual being
implicit. Would there be interest in upstreaming this warning to the
cfe proper?
-- Elliot Glaysher
More information about the cfe-dev
mailing list