[cfe-dev] Check C++ Bad Override

Don Quixote de la Mancha quixote at dulcineatech.com
Fri Oct 7 17:12:34 PDT 2011

On Fri, Oct 7, 2011 at 7:33 AM, Nico Weber <thakis at chromium.org> wrote:
>> The attached patch adds a C++ Checker to clang, it checks whether
>> there are mistakes in override.

My understanding is that it is not actually necessary to declare
member functions in subclasses as being virtual if the base class
declares them virtual.  The compiler just assumes they are.

That's my understanding anyway.  I do not own a copy of the C++ Spec
so I can't Quote Scripture.

I always declare them virtual anyway because it's confusing otherwise.
 Is that what you're trying to catch?

Don Quixote de la Mancha
Dulcinea Technologies Corporation
Software of Elegance and Beauty
quixote at dulcineatech.com

More information about the cfe-dev mailing list