Implementation of Jarkko Hietaniemi original AlwaysBreakBeforeElse and AlwaysBreakBeforeCatch to avoid cuddled braces on an "else/catch" statement.
WebKit Style + Linux BreakBeforeBraces style gives cuddled else/catch brackets (e.g. "} else {") , this patch adds an AlwaysBreakBeforeElse and AlwaysBreakBeforeCatch style to allow required brace style such that the else/catch is placed on a newline after the closing brace of the if/try
Patch by: Jarkko Hietaniemi
Hm, I think these should be grouped in some way and interact with BreakBeforeBraces.
I theory, I'd like to have a lot of different flags and make BreakBeforeBraces select specific presents for them. However, maybe we can put all the brace breaking options together in some nice way (don't have a very good idea yet).
Not saying that you need to do all of this, but pulling these two options out from the other BreakBeforeBraces options seems a little undesirable. They essentially also just define what we do around braces.