From 13de7213ab9ddf67cf5e60d30089fb17ccd7be7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C5=93ur?= Date: Fri, 1 Nov 2024 23:18:52 +0100 Subject: [PATCH] code review: BasedOnStyle: Google --- .clang-format | 35 ++++++++++------------------------- 1 file changed, 10 insertions(+), 25 deletions(-) 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