diff --git a/contrib/conf/editors/clang-format b/contrib/conf/editors/clang-format index 97493b58a..992b2e6e1 100644 --- a/contrib/conf/editors/clang-format +++ b/contrib/conf/editors/clang-format @@ -5,21 +5,21 @@ AccessModifierOffset: -2 AlignAfterOpenBracket: Align AlignConsecutiveAssignments: false AlignConsecutiveDeclarations: false -AlignEscapedNewlines: Right -AlignOperands: true -AlignTrailingComments: true -AllowAllParametersOfDeclarationOnNextLine: true +AlignEscapedNewlines: Left +AlignOperands: true # CG: not precisely what I like, but OK +AlignTrailingComments: false +AllowAllParametersOfDeclarationOnNextLine: false # CG: documentation has AllowAllArgumentsOfDeclarationsOnNextLine! AllowShortBlocksOnASingleLine: false AllowShortCaseLabelsOnASingleLine: false AllowShortFunctionsOnASingleLine: All AllowShortIfStatementsOnASingleLine: false AllowShortLoopsOnASingleLine: false -AlwaysBreakAfterDefinitionReturnType: None +AlwaysBreakAfterDefinitionReturnType: All AlwaysBreakAfterReturnType: TopLevel AlwaysBreakBeforeMultilineStrings: false AlwaysBreakTemplateDeclarations: MultiLine -BinPackArguments: true -BinPackParameters: true +BinPackArguments: false # FIXME: ideally exceptions apply for key-value pairs +BinPackParameters: false BraceWrapping: AfterClass: false AfterControlStatement: false @@ -36,7 +36,7 @@ BraceWrapping: SplitEmptyFunction: true SplitEmptyRecord: true SplitEmptyNamespace: true -BreakBeforeBinaryOperators: None +BreakBeforeBinaryOperators: All BreakBeforeBraces: Custom BreakBeforeInheritanceComma: false BreakInheritanceList: BeforeColon @@ -44,7 +44,7 @@ BreakBeforeTernaryOperators: true BreakConstructorInitializersBeforeComma: false BreakConstructorInitializers: BeforeColon BreakAfterJavaFieldAnnotations: false -BreakStringLiterals: true +BreakStringLiterals: false ColumnLimit: 80 CommentPragmas: '^ IWYU pragma:' CompactNamespaces: false @@ -94,9 +94,10 @@ PenaltyExcessCharacter: 1000000 PenaltyReturnTypeOnItsOwnLine: 60 PointerAlignment: Right ReflowComments: true -SortIncludes: true +SortIncludes: false SortUsingDeclarations: true SpaceAfterCStyleCast: false +SpaceAfterLogicalNot: true SpaceAfterTemplateKeyword: true SpaceBeforeAssignmentOperators: true SpaceBeforeCpp11BracedList: false