This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1/4] -Wmisleading-indentation: don't warn in presence of entirely blank lines


On Oct 29, 2015, at 10:56 AM, Patrick Palka <patrick@parcs.ath.cx> wrote:
> On Thu, Oct 29, 2015 at 1:50 PM, Mike Stump <mikestump@comcast.net> wrote:
>> On Oct 29, 2015, at 10:42 AM, Patrick Palka <patrick@parcs.ath.cx> wrote:
>>> However we should definitely not warn on
>>> 
>>>   if (foo)
>>>     bar ();
>>> 
>>>     {
>>>       baz ();
>>>     }
>>> 
>>> Since that is valid GNU-style code :)
>> 
>> I’ll put it differently; no, that formatting is wrong.
>> 
> 
> Ah, okay. That simplifies things then. (I've seen that style used in
> GCC and in GDB

It doses not appear in gcc or gdb.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]