https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68187

--- Comment #8 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Author: dmalcolm
Date: Fri Mar  4 15:50:27 2016
New Revision: 233972

URL: https://gcc.gnu.org/viewcvs?rev=233972&root=gcc&view=rev
Log:
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.


Modified:
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-indentation.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/c-c++-common/Wmisleading-indentation.c

Reply via email to