This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r232076 - in /trunk/gcc: c-family/ChangeLog c-f...
- From: dmalcolm at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 05 Jan 2016 15:54:46 -0000
- Subject: r232076 - in /trunk/gcc: c-family/ChangeLog c-f...
Author: dmalcolm
Date: Tue Jan 5 15:54:46 2016
New Revision: 232076
URL: https://gcc.gnu.org/viewcvs?rev=232076&root=gcc&view=rev
Log:
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.
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