Skip to content

Commit c21bcec

Browse files
committed
[format] Improve alignment for ternary ops
1 parent 1cde698 commit c21bcec

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.clang-format

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ AllowShortIfStatementsOnASingleLine: false
1313
AlwaysBreakTemplateDeclarations: true
1414
BinPackArguments: false
1515
BinPackParameters: false
16+
BreakBeforeTernaryOperators: true
17+
AlignOperands: AlignAfterOperator
18+
PenaltyBreakAssignment: 10
1619
BraceWrapping:
1720
AfterCaseLabel: true
1821
AfterClass: true

0 commit comments

Comments
 (0)