[coreboot] Proposing a change to Coding Style

Felix Held felix-coreboot at felixheld.de
Thu May 17 00:19:53 CEST 2018


Hi!

> I hereby propose that
> going forward, we should always wrap conditional blocks in braces, even
> one-liners.

I'd also like to have this change, since it might prevent bugs and 
doesn't add too much verbosity.

Related question: Should the else line in if else statements look like this:

} else {

The else won't start in the same column as the corresponding if, but 
this would save one line compared to having the closing curly brace on 
one line and the else on the next one.

Regards
Felix



More information about the coreboot mailing list