[m5-dev] Style additions

2008-12-09 Thread nathan binkert
Ok, we've talked a lot about style, but the document hasn't really been updated: Things to add: 1) if/while/for statements must use braces unless the entirety of the statement fits in two lines. if/elseif/else blocks can skip the braces only if all blocks fit on two lines. i.e. (if: 2 lines,

Re: [m5-dev] Style additions

2008-12-09 Thread Steve Reinhardt
On Tue, Dec 9, 2008 at 3:18 PM, nathan binkert [EMAIL PROTECTED] wrote: Ok, we've talked a lot about style, but the document hasn't really been updated: Things to add: 1) if/while/for statements must use braces unless the entirety of the statement fits in two lines. if/elseif/else blocks