Browse Source

Modify clang-format according to #207

bel 9 năm trước cách đây
mục cha
commit
1494876a16
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      .clang-format

+ 4 - 1
.clang-format

@@ -9,7 +9,6 @@ ColumnLimit: 80
 
 Language: Cpp
 
-AccessModifierOffset: 2
 AlignAfterOpenBracket: true
 AllowAllParametersOfDeclarationOnNextLine: false
 AllowShortBlocksOnASingleLine: false
@@ -17,11 +16,15 @@ AllowShortCaseLabelsOnASingleLine: false
 AllowShortFunctionsOnASingleLine: None
 AllowShortIfStatementsOnASingleLine: false
 AllowShortLoopsOnASingleLine: false
+AlwaysBreakAfterDefinitionReturnType: TopLevel
 BinPackArguments: false
 BinPackParameters: false
+BreakBeforeBinaryOperators: NonAssignment
 BreakBeforeBraces: Linux
 DerivePointerAlignment: false
 MaxEmptyLinesToKeep: 2
+PenaltyBreakBeforeFirstCallParameter: 100
+
 SpaceBeforeParens: ControlStatements
 SpaceInEmptyParentheses: false
 SpacesInSquareBrackets: false