Skip to content

Commit 544d399

Browse files
committed
Update configuration for clang-format
Don't derive the pointer alignment. Always use left alignment. Remove also spaces at line endings. Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent d55e4e5 commit 544d399

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.clang-format

+7-7
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ AlwaysBreakBeforeMultilineStrings: true
2020
AlwaysBreakTemplateDeclarations: true
2121
BinPackArguments: true
2222
BinPackParameters: true
23-
BraceWrapping:
23+
BraceWrapping:
2424
AfterClass: false
2525
AfterControlStatement: false
2626
AfterEnum: false
@@ -51,16 +51,16 @@ ConstructorInitializerAllOnOneLineOrOnePerLine: true
5151
ConstructorInitializerIndentWidth: 4
5252
ContinuationIndentWidth: 4
5353
Cpp11BracedListStyle: true
54-
DerivePointerAlignment: true
54+
DerivePointerAlignment: false
5555
DisableFormat: false
5656
ExperimentalAutoDetectBinPacking: false
5757
FixNamespaceComments: true
58-
ForEachMacros:
58+
ForEachMacros:
5959
- foreach
6060
- Q_FOREACH
6161
- BOOST_FOREACH
6262
IncludeBlocks: Preserve
63-
IncludeCategories:
63+
IncludeCategories:
6464
- Regex: '^<ext/.*\.h>'
6565
Priority: 2
6666
- Regex: '^<.*\.h>'
@@ -93,9 +93,9 @@ PenaltyBreakString: 1000
9393
PenaltyExcessCharacter: 1000000
9494
PenaltyReturnTypeOnItsOwnLine: 200
9595
PointerAlignment: Left
96-
RawStringFormats:
96+
RawStringFormats:
9797
- Language: Cpp
98-
Delimiters:
98+
Delimiters:
9999
- cc
100100
- CC
101101
- cpp
@@ -106,7 +106,7 @@ RawStringFormats:
106106
CanonicalDelimiter: ''
107107
BasedOnStyle: google
108108
- Language: TextProto
109-
Delimiters:
109+
Delimiters:
110110
- pb
111111
- PB
112112
- proto

0 commit comments

Comments
 (0)