diff --git a/.clang-format b/.clang-format index 91bb5441..5a6c1b25 100644 --- a/.clang-format +++ b/.clang-format @@ -1,38 +1,23 @@ -AlignAfterOpenBracket: AlwaysBreak +--- +BasedOnStyle: Google + +AccessModifierOffset: -2 AlignArrayOfStructures: Right -AlignConsecutiveAssignments: None -AlignConsecutiveBitFields: AcrossEmptyLinesAndComments +AlignConsecutiveBitFields: AcrossEmptyLines AlignConsecutiveDeclarations: true -AlignConsecutiveMacros: AcrossEmptyLinesAndComments +AlignConsecutiveMacros: AcrossEmptyLines AlignEscapedNewlines: Right -AlignOperands: false -AlignTrailingComments: true -AllowAllArgumentsOnNextLine: false -AllowAllParametersOfDeclarationOnNextLine: false +AlignOperands: DontAlign AllowShortFunctionsOnASingleLine: Empty AllowShortIfStatementsOnASingleLine: Never AllowShortLambdasOnASingleLine: Empty AllowShortLoopsOnASingleLine: false -AlwaysBreakBeforeMultilineStrings: false -BinPackArguments: true -BinPackParameters: true -BreakBeforeBraces: Attach -BreakBeforeBinaryOperators: None -ColumnLimit: 100 -Cpp11BracedListStyle: false +ColumnLimit: 120 +DerivePointerAlignment: false +IndentCaseLabels: false IndentPPDirectives: AfterHash IndentWidth: 4 -InsertBraces: false InsertNewlineAtEOF: true -MaxEmptyLinesToKeep: 1 -PenaltyBreakAssignment: 1000 -PenaltyBreakBeforeFirstCallParameter: 1000 -PenaltyExcessCharacter: 1 -PenaltyReturnTypeOnItsOwnLine: 1000 PointerAlignment: Right PPIndentWidth: 2 SortIncludes: Never -SpaceAfterCStyleCast: false -SpacesInAngles: Never -SpacesInSquareBrackets: false -UseTab: Never