diff options
author | ClausKlein <claus.klein@arcormail.de> | 2021-06-02 20:45:15 +0200 |
---|---|---|
committer | ClausKlein <claus.klein@arcormail.de> | 2021-06-02 20:45:15 +0200 |
commit | 2c7d1c0d018acfd7bee05099371f6eea534cd315 (patch) | |
tree | 0bf0ababa782671103e0fb213050d6268103fd8e /.clang-format | |
parent | 07fa228d53c104d14b136d6dd6cdb514b4b995f1 (diff) | |
download | ATCD-2c7d1c0d018acfd7bee05099371f6eea534cd315.tar.gz |
use make_unique if possible
change code style after review comments
Diffstat (limited to '.clang-format')
-rw-r--r-- | .clang-format | 21 |
1 files changed, 16 insertions, 5 deletions
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 ... |