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:
parent
0fde92d3e4
commit
2581dbcb0f
1 changed files with 10 additions and 8 deletions
|
@ -39,8 +39,8 @@ BraceWrapping:
|
||||||
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
|
||||||
|
@ -117,7 +117,9 @@ 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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue