소스 검색

Modify clang-format according to #207

bel 9 년 전
부모
커밋
1494876a16
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  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