login
Header Space

 
 

Re: [PATCH] CodingStyle: proscribe do-while without braces.

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>
Cc: Josh Triplett <josht@...>, <linux-kernel@...>, Linus Torvalds <torvalds@...>, <linux-sparse@...>
Date: Friday, July 27, 2007 - 12:00 pm

Andrew Morton <akpm@linux-foundation.org> writes:


It's certainly true WRT things like indentation but IMHO it shouldn't
go that far, and if it goes, it should be non-braced version.

If we prefer non-braced versions of "if" and "while", it would be
a bit strange to require braces with "do while", wouldn't it?

Sparse warnings... I think it shouldn't complain either, unless
called with extra parameter.


Perhaps some pointer to a bad-looking example so I can see for myself?
-- 
Krzysztof Halasa
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] CodingStyle: proscribe do-while without braces., Josh Triplett, (Thu Jul 26, 5:37 pm)
Re: [PATCH] CodingStyle: proscribe do-while without braces., Krzysztof Halasa, (Thu Jul 26, 8:18 pm)
Re: [PATCH] CodingStyle: proscribe do-while without braces., Krzysztof Halasa, (Fri Jul 27, 12:00 pm)
Re: [PATCH] CodingStyle: proscribe do-while without braces., Krzysztof Halasa, (Fri Jul 27, 1:44 pm)
speck-geostationary