[Bug c/69993] Misleading wording for -Wmisleading-indentation
dmalcolm at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Mar 22 14:21:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69993
--- Comment #5 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Author: dmalcolm
Date: Tue Mar 22 14:20:49 2016
New Revision: 234403
URL: https://gcc.gnu.org/viewcvs?rev=234403&root=gcc&view=rev
Log:
PR c/69993: improvements to wording of -Wmisleading-indentation
gcc/c-family/ChangeLog:
PR c/69993
* c-indentation.c (warn_for_misleading_indentation): Rewrite the
diagnostic text, reversing the order of the warning and note so
that they appear in source order.
gcc/testsuite/ChangeLog:
PR c/69993
* c-c++-common/Wmisleading-indentation-3.c: New test, based on
Wmisleading-indentation.c.
* c-c++-common/Wmisleading-indentation.c: Update thoughout to
reflect change to diagnostic text and order of messages.
* gcc.dg/plugin/location-overflow-test-2.c: Likewise.
Added:
trunk/gcc/testsuite/c-c++-common/Wmisleading-indentation-3.c
Modified:
trunk/gcc/c-family/ChangeLog
trunk/gcc/c-family/c-indentation.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/c-c++-common/Wmisleading-indentation.c
trunk/gcc/testsuite/gcc.dg/plugin/location-overflow-test-2.c
More information about the Gcc-bugs
mailing list