From 869912368400b10b09e87792cd7b338fded5c19d Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Sat, 16 Oct 2021 11:44:53 +0300 Subject: [PATCH] .clang-format: update --- .clang-format | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.clang-format b/.clang-format index 621eb83f..91769fe3 100644 --- a/.clang-format +++ b/.clang-format @@ -1,20 +1,20 @@ --- AlignAfterOpenBracket: 'Align' -AlignConsecutiveAssignments: 'false' -AlignConsecutiveDeclarations: 'false' +AlignConsecutiveAssignments: 'true' +AlignConsecutiveDeclarations: 'true' AlignConsecutiveMacros: 'true' AlignOperands: 'true' AlignTrailingComments: 'true' AllowAllArgumentsOnNextLine: 'false' AllowAllParametersOfDeclarationOnNextLine: 'false' AllowShortBlocksOnASingleLine: 'false' -AllowShortCaseLabelsOnASingleLine: 'false' +AllowShortCaseLabelsOnASingleLine: 'true' AllowShortFunctionsOnASingleLine: 'Inline' AllowShortIfStatementsOnASingleLine: 'false' -AlwaysBreakAfterReturnType: 'All' -BinPackParameters: 'false' +AlwaysBreakAfterReturnType: 'TopLevelDefinitions' BinPackArguments: 'false' -BreakBeforeBraces: 'Linux' +BinPackParameters: 'false' +BreakBeforeBraces: 'WebKit' ColumnLimit: '100' DerivePointerAlignment: 'false' IndentCaseLabels: 'false' @@ -22,7 +22,9 @@ IndentWidth: '8' KeepEmptyLinesAtTheStartOfBlocks: 'false' Language: 'Cpp' MaxEmptyLinesToKeep: '1' -PointerAlignment: 'Right' +PenaltyBreakAssignment: '3' +PenaltyBreakBeforeFirstCallParameter: '15' +PointerAlignment: 'Left' SortIncludes: 'false' SpaceAfterCStyleCast: 'false' SpaceBeforeAssignmentOperators : 'true' @@ -31,8 +33,6 @@ SpaceInEmptyParentheses: 'false' SpacesInSquareBrackets: 'false' TabWidth: '8' UseTab: 'AlignWithSpaces' -PenaltyBreakAssignment: '3' -PenaltyBreakBeforeFirstCallParameter: '15' # Local Variables: # mode: yaml