c.opt (Wextra-semi): New C++ warning flag.
authorVolker Reichelt <v.reichelt@netcologne.de>
Thu, 20 Apr 2017 16:48:44 +0000 (16:48 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Thu, 20 Apr 2017 16:48:44 +0000 (16:48 +0000)
commitc3cbcd451736f5257446e927bb880ace569f4a45
tree7711463db0d0218b531e3efa05e231b763318b95
parent4ba07ed462c02f4de2205c3e2186a85e4d81fc2d
c.opt (Wextra-semi): New C++ warning flag.

        * c.opt (Wextra-semi): New C++ warning flag.
        * doc/invoke.texi (-Wextra-semi): Document new warning option.
        * parser.c (cp_parser_member_declaration): Add warning with fixit
        information for extra semicolon after in-class function definition.
        * g++.dg/warn/Wextra-semi.C: New test.

From-SVN: r247028
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c.opt
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wextra-semi.C [new file with mode: 0644]