PR c/69993: improvements to wording of -Wmisleading-indentation
commit4baec9f2acc198aa29bfe38d95a3794b9b3f4779
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 22 Mar 2016 14:20:49 +0000 (22 14:20 +0000)
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 22 Mar 2016 14:20:49 +0000 (22 14:20 +0000)
tree4ec7a98191c5579ee965a5da16e54b282da5cc8d
parentfcfec1264cf08cc79ab9239a7325f745de9eaea8
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234403 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/c-family/ChangeLog
gcc/c-family/c-indentation.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wmisleading-indentation-3.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/Wmisleading-indentation.c
gcc/testsuite/gcc.dg/plugin/location-overflow-test-2.c