enum FormatStyle::ShortIfStyle

Description

Different styles for handling short if statements.

Declared at: clang/include/clang/Format/Format.h:536

Enumerators

NameValueComment
SIS_Never0Never put short ifs on the same line.
SIS_WithoutElse1Put short ifs on the same line only if there is no else statement.
SIS_OnlyFirstIf2Put short ifs, but not else ifs nor else statements, on the same line.
SIS_AllIfsAndElse3Always put short ifs, else ifs and else statements on the same line.