[gcc-in-cxx] Put empty loop ';' on new line

Robert Dewar dewar@adacore.com
Tue Feb 3 02:22:00 GMT 2009


Ian Lance Taylor wrote:

> I personally think a standalone ';' on the following line is
> sufficiently clear.
> 
> 	  for (p = classp; (next = p->next_same_value) && CHEAPER (next, elt);
> 	       p = next)
> 	    ;
> 
> Of course I would not object if somebody wants to write it
> differently.

Seems like the coding standard should have a clear rule on this, you 
certainly don't want variations in style on this!



More information about the Gcc-patches mailing list