diff options
author | pgen <p.gen.progs@gmail.com> | 2023-09-10 00:35:48 +0200 |
---|---|---|
committer | pgen <p.gen.progs@gmail.com> | 2023-09-11 14:15:32 +0200 |
commit | 36881ac8835674bf5ce0112f1c5bfa7d1b1e3f27 (patch) | |
tree | 97e706c87e9189c1896b5117578f112f8ce7484d /.clang-format | |
parent | b4e826f3ce669758eb2847d5d7eb65ee2c4755d0 (diff) |
Reformatting source code
Diffstat (limited to '.clang-format')
-rw-r--r-- | .clang-format | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/.clang-format b/.clang-format index b957a81..442a2f6 100644 --- a/.clang-format +++ b/.clang-format @@ -1,13 +1,11 @@ -SortIncludes: 'false' -BasedOnStyle: Mozilla AlignAfterOpenBracket: 'true' AlignConsecutiveAssignments: 'true' AlignConsecutiveDeclarations: 'true' -AlignOperands: 'true' AlignEscapedNewlinesLeft: 'true' AlignOperands: 'true' +AlignOperands: 'true' AlignTrailingComments: 'true' -ReflowComments: 'false' +AllowAllArgumentsOnNextLine: 'false' AllowAllParametersOfDeclarationOnNextLine: 'false' AllowShortBlocksOnASingleLine: 'false' AllowShortCaseLabelsOnASingleLine: 'false' @@ -15,10 +13,11 @@ AllowShortFunctionsOnASingleLine: None AllowShortIfStatementsOnASingleLine: 'false' AllowShortLoopsOnASingleLine: 'false' AlwaysBreakBeforeMultilineStrings: 'false' -BinPackArguments: 'true' -BinPackParameters: 'true' -BreakBeforeBraces: Allman +BasedOnStyle: Mozilla +BinPackArguments: 'false' +BinPackParameters: 'false' BreakBeforeBinaryOperators: NonAssignment +BreakBeforeBraces: Allman BreakBeforeTernaryOperators: 'true' BreakConstructorInitializersBeforeComma: 'false' ColumnLimit: '80' @@ -29,11 +28,19 @@ IndentWidth: '2' KeepEmptyLinesAtTheStartOfBlocks: 'true' Language: Cpp MaxEmptyLinesToKeep: '1' -PointerAlignment: Middle +PenaltyBreakAssignment: '150' +PenaltyBreakBeforeFirstCallParameter: '100' +PointerAlignment: Right +ReflowComments: 'false' +SeparateDefinitionBlocks: 'Always' +SortIncludes: 'false' SpaceAfterCStyleCast: 'false' +SpaceAroundPointerQualifiers: 'Before' SpaceBeforeAssignmentOperators: 'true' -SpaceBeforeParens: Never SpaceBeforeParens: ControlStatements +SpaceBeforeCaseColon: 'false' +SpaceInEmptyBlock: 'false' +SpacesInSquareBrackets: 'false' SpaceInEmptyParentheses: 'false' SpacesBeforeTrailingComments: '1' SpacesInCStyleCastParentheses: 'false' @@ -41,5 +48,3 @@ SpacesInParentheses: 'false' SpacesInSquareBrackets: 'false' TabWidth: '2' UseTab: Never -PenaltyBreakBeforeFirstCallParameter: '100' -PenaltyBreakAssignment: '150' |