clang-format: Adjust style of pointers

We gernerally have our pointers aligned to the right. SpaceAroundPointerQualifiers
makes sure "const char * const" is formatted nicely.
This commit is contained in:
Jan Janssen 2022-05-28 14:25:15 +02:00 committed by Yu Watanabe
parent 0fde92d3e4
commit 2581dbcb0f

View file

@ -27,22 +27,22 @@
AccessModifierOffset: -4 AccessModifierOffset: -4
AlignAfterOpenBracket: AlwaysBreak AlignAfterOpenBracket: AlwaysBreak
AlignEscapedNewlines: Left AlignEscapedNewlines: Left
AlignOperands: false AlignOperands: false
AllowShortFunctionsOnASingleLine: None AllowShortFunctionsOnASingleLine: None
AlwaysBreakBeforeMultilineStrings: true AlwaysBreakBeforeMultilineStrings: true
AlwaysBreakTemplateDeclarations: Yes AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: false BinPackArguments: false
BinPackParameters: false BinPackParameters: false
BraceWrapping: BraceWrapping:
AfterEnum: false AfterEnum: false
SplitEmptyFunction: false SplitEmptyFunction: false
SplitEmptyRecord: false SplitEmptyRecord: false
SplitEmptyNamespace: false SplitEmptyNamespace: false
BreakBeforeBraces: Custom BreakBeforeBraces: Custom
BreakInheritanceList: BeforeComma
BreakBeforeTernaryOperators: false BreakBeforeTernaryOperators: false
BreakInheritanceList: BeforeComma
BreakStringLiterals: false BreakStringLiterals: false
ColumnLimit: 109 ColumnLimit: 109
CompactNamespaces: true CompactNamespaces: true
ConstructorInitializerAllOnOneLineOrOnePerLine: true ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 8 ConstructorInitializerIndentWidth: 8
@ -107,7 +107,7 @@ ForEachMacros:
- STRV_FOREACH_BACKWARDS - STRV_FOREACH_BACKWARDS
- STRV_FOREACH_PAIR - STRV_FOREACH_PAIR
IndentPPDirectives: AfterHash IndentPPDirectives: AfterHash
IndentWidth: 8 IndentWidth: 8
IndentWrappedFunctionNames: true IndentWrappedFunctionNames: true
MaxEmptyLinesToKeep: 2 MaxEmptyLinesToKeep: 2
PenaltyBreakAssignment: 65 PenaltyBreakAssignment: 65
@ -117,8 +117,10 @@ PenaltyBreakFirstLessLess: 50
PenaltyBreakString: 0 PenaltyBreakString: 0
PenaltyExcessCharacter: 10 PenaltyExcessCharacter: 10
PenaltyReturnTypeOnItsOwnLine: 100 PenaltyReturnTypeOnItsOwnLine: 100
PointerAlignment: Right
SpaceAfterCStyleCast: true SpaceAfterCStyleCast: true
SpaceAroundPointerQualifiers: Both
SpaceBeforeParens: ControlStatementsExceptForEachMacros SpaceBeforeParens: ControlStatementsExceptForEachMacros
SpacesInAngles: true SpacesInAngles: true
TabWidth: 8 TabWidth: 8
UseCRLF: false UseCRLF: false