Fix -Wmisleading indentation false-positive for do-while statement
authorPatrick Palka <ppalka@gcc.gnu.org>
Sun, 10 Jan 2016 16:39:39 +0000 (16:39 +0000)
committerPatrick Palka <ppalka@gcc.gnu.org>
Sun, 10 Jan 2016 16:39:39 +0000 (16:39 +0000)
commit21efdd809bbc9626f63f8886c69b1a86cd4223fc
treeb44f1ee9713bcf26b829d8fcfa922bd4b40a40e4
parentfd42eed899b14559a2a1dd8bdc07826b2174fb84
Fix -Wmisleading indentation false-positive for do-while statement

gcc/c-family/ChangeLog:

PR c++/69029
* c-indentation.c (should_warn_for_misleading_indentation):
Don't warn about do-while statements.

gcc/testsuite/ChangeLog:

PR c++/69029
* c-c++-common/Wisleading-indentation.c: Augment test.

From-SVN: r232202
gcc/c-family/ChangeLog
gcc/c-family/c-indentation.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wmisleading-indentation.c