Improve -Wmisleading-indentation heuristics
authorPatrick Palka <ppalka@gcc.gnu.org>
Sun, 2 Aug 2015 17:39:23 +0000 (17:39 +0000)
committerPatrick Palka <ppalka@gcc.gnu.org>
Sun, 2 Aug 2015 17:39:23 +0000 (17:39 +0000)
commit8ebca419e837774146ef77574580456107d7315b
treebb853556afc05d1d755f8887612038504e3c912d
parent1a1e101ff50564a44dcd12522236f04caaa6dcab
Improve -Wmisleading-indentation heuristics

gcc/c-family/ChangeLog:

* c-indentation.c (should_warn_for_misleading_indentation):
Improve heuristics.

gcc/testsuite/ChangeLog:

* c-c++-common/Wmisleading-indentation.c: Add more tests.

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