Force braces around leaf 'else if' for consistency.
This complements r233697.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Thanks for the fix! LG
BTW, it seems wrong that we don't allow if-else chains without braces, when every body fits on one line.
if (...) ...; else if (....) ...; ...
or
if (...) ...; else if (....) ...; ...
depending on the style and ShortStatementLines setting.
Comment Actions
I think it does that because we are looking at the range between the start of the "then" until the "else" keyword, and that has a newline in it.
But that is a different bug to fix.