implement -Wsuggest-override
authorTrevor Saunders <tsaunders@mozilla.com>
Tue, 6 Jan 2015 02:02:47 +0000 (02:02 +0000)
committerTrevor Saunders <tbsaunde@gcc.gnu.org>
Tue, 6 Jan 2015 02:02:47 +0000 (02:02 +0000)
commit2f42e5de44255be86141a2d2468d0dd575981dc4
treee105777f028705614c3513197fcc19cd6e120408
parent86cfdb4ea9bfb37fa1c9a573f20dd8e7c745b45f
implement -Wsuggest-override

c-family/

PR c++/31397
* c.opt (Wsuggest-override): New option.

cp/

PR c++/31397
* class.c (check_for_override): Warn when a virtual function is an
override not marked override.

gcc/

PR c++/31397
* doc/invoke.texi: Document -Wsuggest-override.

From-SVN: r219213
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c.opt
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/doc/invoke.texi
gcc/testsuite/g++.dg/warn/Wsuggest-override.C [new file with mode: 0644]