On 01/08/2016 03:43 AM, Jakub Jelinek wrote:
On Tue, Dec 22, 2015 at 12:33:51PM -0500, Patrick Palka wrote:
We are emitting a bogus warning for the code

   do foo (0); while (flagA);
               ^--- NEXT
      ^------------ BODY
   ^--------------- GUARD

In general I don't think we can get any useful indentation warning out
of a do-while statement, so this patch makes it so that we just skip
them.

Not even say for
     do
   foo (0);
     while (flagA);
etc.?  Though, not sure if c-indentation.c wants to warn about those.
That's considered "bad" indentation, but not misleading indentation because it's not implying something is being guarded that isn't actually being guarded.

jeff

Reply via email to