From 5b8ea2af2d2b32d1026bfa6e13ee4486e5178ba9 Mon Sep 17 00:00:00 2001 From: coderkun Date: Fri, 27 Apr 2018 19:58:10 +0200 Subject: [PATCH] Adjust several clang formatting options --- .clang-format | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.clang-format b/.clang-format index f422387..7f617d1 100644 --- a/.clang-format +++ b/.clang-format @@ -3,8 +3,8 @@ Language: Cpp # BasedOnStyle: LLVM AccessModifierOffset: -2 AlignAfterOpenBracket: Align -AlignConsecutiveAssignments: true -AlignConsecutiveDeclarations: true +AlignConsecutiveAssignments: false +AlignConsecutiveDeclarations: false AlignEscapedNewlines: Right AlignOperands: true AlignTrailingComments: true @@ -18,13 +18,13 @@ AlwaysBreakAfterDefinitionReturnType: None AlwaysBreakAfterReturnType: None AlwaysBreakBeforeMultilineStrings: false AlwaysBreakTemplateDeclarations: false -BinPackArguments: true +BinPackArguments: false BinPackParameters: true BraceWrapping: AfterClass: true AfterControlStatement: false AfterEnum: false - AfterFunction: false + AfterFunction: true AfterNamespace: false AfterObjCDeclaration: false AfterStruct: false @@ -41,7 +41,7 @@ BreakBeforeBraces: Custom BreakBeforeInheritanceComma: false BreakBeforeTernaryOperators: true BreakConstructorInitializersBeforeComma: true -BreakConstructorInitializers: BeforeColon +BreakConstructorInitializers: AfterColon BreakAfterJavaFieldAnnotations: false BreakStringLiterals: true ColumnLimit: 80 @@ -95,7 +95,7 @@ RawStringFormats: Language: TextProto BasedOnStyle: google ReflowComments: true -SortIncludes: true +SortIncludes: false SortUsingDeclarations: true SpaceAfterCStyleCast: false SpaceAfterTemplateKeyword: true @@ -106,10 +106,10 @@ SpacesBeforeTrailingComments: 1 SpacesInAngles: false SpacesInContainerLiterals: true SpacesInCStyleCastParentheses: false -SpacesInParentheses: false +SpacesInParentheses: true SpacesInSquareBrackets: false Standard: Cpp11 TabWidth: 4 -UseTab: ForIndentation +UseTab: ForContinuationAndIndentation ...