跳转至

BreakBeforeTernaryOperators

BreakBeforeTernaryOperators (Boolean)

Info

clang-format 3.7

如果为 true,将在换行符之后放置三元操作符。

veryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryLongDescription
    ? firstValue
    : SecondValueVeryVeryVeryVeryLong;
veryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryLongDescription ?
    firstValue :
    SecondValueVeryVeryVeryVeryLong;

最后更新: 2022-10-31