]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix PR c/69122 (-Wmisleading-indentation false positive with empty macros)
authorDavid Malcolm <dmalcolm@redhat.com>
Tue, 5 Jan 2016 15:54:46 +0000 (15:54 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Tue, 5 Jan 2016 15:54:46 +0000 (15:54 +0000)
commitc589e975638b217501e4e868e7d706bb318e18e9
tree1722ad395e726afbc91a2ce866781377c0ff8db4
parentce3e43d7c8622171301e253ce5ffeba0e24d8d39
Fix PR c/69122 (-Wmisleading-indentation false positive with empty macros)

gcc/c-family/ChangeLog:
PR c/69122
* c-indentation.c (get_visual_column): Remove default argument.
(should_warn_for_misleading_indentation): For the multiline case,
update call to get_visual_column for next_stmt_exploc so that it
captures the location of the first non-whitespace character in the
relevant line.  Don't issue warnings if there is non-whitespace
before the next statement.

gcc/testsuite/ChangeLog:
PR c/69122
* c-c++-common/Wmisleading-indentation.c (pr69122): New function.

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