This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] Enable -Wsuggest-override


On 04/27/2018 03:07 PM, Tom Tromey wrote:
> I noticed the existence of -Wsuggest-override and so this patch
> enables it for gdb.  It found a few spots that could use "override".
> Also I went ahead and removed all uses of the "OVERRIDE" macro.
> 
> Using override is beneficial because it makes it harder to change a
> base class and then forget to change a derived class.
> 
> Tested by the buildbot.

Yes, please.  OK.

Thanks,
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]