]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c-family/ChangeLog
PR c/68187: fix overzealous -Wmisleading-indentation (comment #1)
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Mar 2016 15:50:27 +0000 (15:50 +0000)
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Mar 2016 15:50:27 +0000 (15:50 +0000)
commit0060768a36ed0590c30cedc3e92cd096708a1c31
tree24010d29aad3b44205b89c06002db41c9964abd6
parent74c6fd40a953e2ad1657d06946994d51ec8a64e0
PR c/68187: fix overzealous -Wmisleading-indentation (comment #1)

gcc/c-family/ChangeLog:
PR c/68187
* c-indentation.c (get_visual_column): Move code to determine next
tab stop to...
(next_tab_stop): ...this new function.
(line_contains_hash_if): Delete function.
(detect_preprocessor_logic): Delete function.
(get_first_nws_vis_column): New function.
(detect_intervening_unindent): New function.
(should_warn_for_misleading_indentation): Replace call to
detect_preprocessor_logic with a call to
detect_intervening_unindent.

gcc/testsuite/ChangeLog:
PR c/68187
* c-c++-common/Wmisleading-indentation.c (fn_42_a): New test
function.
(fn_42_b): Likewise.
(fn_42_c): Likewise.

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