enum FormatStyle::ShortIfStyle
Description
Different styles for handling short if statements.
Declared at: clang/include/clang/Format/Format.h:536
Enumerators
Name | Value | Comment |
---|---|---|
SIS_Never | 0 | Never put short ifs on the same line. |
SIS_WithoutElse | 1 | Put short ifs on the same line only if there is no else statement. |
SIS_OnlyFirstIf | 2 | Put short ifs, but not else ifs nor else statements, on the same line. |
SIS_AllIfsAndElse | 3 | Always put short ifs, else ifs and else statements on the same line. |