Skip to content

Commit 2581dbc

Browse files
medhefgoyuwata
authored andcommitted
clang-format: Adjust style of pointers
We gernerally have our pointers aligned to the right. SpaceAroundPointerQualifiers makes sure "const char * const" is formatted nicely.
1 parent 0fde92d commit 2581dbc

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.clang-format

+10-8
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,22 @@
2727
AccessModifierOffset: -4
2828
AlignAfterOpenBracket: AlwaysBreak
2929
AlignEscapedNewlines: Left
30-
AlignOperands: false
30+
AlignOperands: false
3131
AllowShortFunctionsOnASingleLine: None
3232
AlwaysBreakBeforeMultilineStrings: true
3333
AlwaysBreakTemplateDeclarations: Yes
3434
BinPackArguments: false
3535
BinPackParameters: false
3636
BraceWrapping:
37-
AfterEnum: false
37+
AfterEnum: false
3838
SplitEmptyFunction: false
3939
SplitEmptyRecord: false
4040
SplitEmptyNamespace: false
4141
BreakBeforeBraces: Custom
42-
BreakInheritanceList: BeforeComma
4342
BreakBeforeTernaryOperators: false
43+
BreakInheritanceList: BeforeComma
4444
BreakStringLiterals: false
45-
ColumnLimit: 109
45+
ColumnLimit: 109
4646
CompactNamespaces: true
4747
ConstructorInitializerAllOnOneLineOrOnePerLine: true
4848
ConstructorInitializerIndentWidth: 8
@@ -107,7 +107,7 @@ ForEachMacros:
107107
- STRV_FOREACH_BACKWARDS
108108
- STRV_FOREACH_PAIR
109109
IndentPPDirectives: AfterHash
110-
IndentWidth: 8
110+
IndentWidth: 8
111111
IndentWrappedFunctionNames: true
112112
MaxEmptyLinesToKeep: 2
113113
PenaltyBreakAssignment: 65
@@ -117,8 +117,10 @@ PenaltyBreakFirstLessLess: 50
117117
PenaltyBreakString: 0
118118
PenaltyExcessCharacter: 10
119119
PenaltyReturnTypeOnItsOwnLine: 100
120+
PointerAlignment: Right
120121
SpaceAfterCStyleCast: true
122+
SpaceAroundPointerQualifiers: Both
121123
SpaceBeforeParens: ControlStatementsExceptForEachMacros
122-
SpacesInAngles: true
123-
TabWidth: 8
124-
UseCRLF: false
124+
SpacesInAngles: true
125+
TabWidth: 8
126+
UseCRLF: false

0 commit comments

Comments
 (0)