]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c-family/ChangeLog
Fix -Wmisleading-indentation false-positive
authorppalka <ppalka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 22 Sep 2015 23:06:31 +0000 (23:06 +0000)
committerppalka <ppalka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 22 Sep 2015 23:06:31 +0000 (23:06 +0000)
commit60897493ba43dcee3347fdee64bc9973390cb1a7
treee099691467a47f2147d2919e9f0fd19d7753e672
parentf6378b86af8c7d71e06638d7be04f94fd4422ef4
Fix -Wmisleading-indentation false-positive

gcc/c-family/ChangeLog:

* c-indentation.c (should_warn_for_misleading_indentation):
Float out and consolidate the calls to get_visual_column that
are passed guard_exploc as an argument.  Compare
next_stmt_vis_column with guard_line_first_nws instead of with
body_line_first_nws.

gcc/testsuite/ChangeLog:

* c-c++-common/Wmisleading-indentation.c: Augment test.

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