]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c-family/ChangeLog
Fix PR c/69122 (-Wmisleading-indentation false positive with empty macros)
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 Jan 2016 15:54:46 +0000 (15:54 +0000)
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 Jan 2016 15:54:46 +0000 (15:54 +0000)
commitd42aa6198a400c3a3c5212bb15c5748ea3dc230c
tree1722ad395e726afbc91a2ce866781377c0ff8db4
parent2d7d361d4903a1c3d4b496b7526b7784c45513f0
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@232076 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.c