[PATCH] Fix -Wmisleading indentation false-positive for do-while statement

Bernd Schmidt bschmidt@redhat.com
Tue Jan 5 22:07:00 GMT 2016


On 01/05/2016 10:58 PM, David Malcolm wrote:
>>
>> 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.
>>
>> Is this OK to commit after testing?
>
> It looks like this is PR c++/69029.  FWIW, I agree with your rationale -
> though perhaps we should instead update the frontends to not even call
> into c-indentation.c for do-while statements?

Ok with the PR mentioned in the ChangeLog as usual. I thought about 
David's idea, but I think it's reasonable to keep all knowledge inside 
c-indentation.c as in Patrick's patch.


Bernd



More information about the Gcc-patches mailing list