From 2c7d1c0d018acfd7bee05099371f6eea534cd315 Mon Sep 17 00:00:00 2001 From: ClausKlein Date: Wed, 2 Jun 2021 20:45:15 +0200 Subject: use make_unique if possible change code style after review comments --- .clang-format | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to '.clang-format') diff --git a/.clang-format b/.clang-format index cdb39325377..91421e535a6 100644 --- a/.clang-format +++ b/.clang-format @@ -1,18 +1,25 @@ --- -# This configuration requires clang-format version 12.0 or newer. +# This configuration requires clang-format version v12.0 or newer. BasedOnStyle: Mozilla -AlignOperands: false +# AlignConsecutiveDeclarations: Consecutive +AlignEscapedNewlines: Left +AlignOperands: false AllowAllParametersOfDeclarationOnNextLine: false AllowShortBlocksOnASingleLine: true AllowShortFunctionsOnASingleLine: InlineOnly +AlwaysBreakAfterDefinitionReturnType: None +AlwaysBreakAfterReturnType: None +# AlwaysBreakAfterDefinitionReturnType: TopLevel +# AlwaysBreakAfterReturnType: TopLevelDefinitions BinPackArguments: false BinPackParameters: false +# parameters will either all be on the same line or will have one line each. BreakBeforeBraces: Custom BraceWrapping: AfterCaseLabel: true AfterClass: true - AfterControlStatement: Never + AfterControlStatement: Always AfterEnum: true AfterFunction: true AfterNamespace: true @@ -29,10 +36,14 @@ BraceWrapping: SplitEmptyRecord: true SplitEmptyNamespace: true # based on BreakBeforeBraces: GNU -ColumnLimit: 79 -#XXX IndentAccessModifiers: true +ColumnLimit: 123 # MAYBE up to 160 +# +# XXX v13.0 only IndentAccessModifiers: true +# IndentPPDirectives: AfterHash SortUsingDeclarations: false SpaceAfterTemplateKeyword: true +SpaceAfterLogicalNot: true SpaceBeforeParens: Always +SpaceInEmptyBlock: false ... -- cgit v1.2.1