Skip to content

Commit

Permalink
Update configuration for clang-format
Browse files Browse the repository at this point in the history
Don't derive the pointer alignment. Always use left alignment.
Remove also spaces at line endings.

Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed May 24, 2018
1 parent d55e4e5 commit 544d399
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ AlwaysBreakBeforeMultilineStrings: true
AlwaysBreakTemplateDeclarations: true
BinPackArguments: true
BinPackParameters: true
BraceWrapping:
BraceWrapping:
AfterClass: false
AfterControlStatement: false
AfterEnum: false
Expand Down Expand Up @@ -51,16 +51,16 @@ ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DerivePointerAlignment: true
DerivePointerAlignment: false
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: true
ForEachMacros:
ForEachMacros:
- foreach
- Q_FOREACH
- BOOST_FOREACH
IncludeBlocks: Preserve
IncludeCategories:
IncludeCategories:
- Regex: '^<ext/.*\.h>'
Priority: 2
- Regex: '^<.*\.h>'
Expand Down Expand Up @@ -93,9 +93,9 @@ PenaltyBreakString: 1000
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 200
PointerAlignment: Left
RawStringFormats:
RawStringFormats:
- Language: Cpp
Delimiters:
Delimiters:
- cc
- CC
- cpp
Expand All @@ -106,7 +106,7 @@ RawStringFormats:
CanonicalDelimiter: ''
BasedOnStyle: google
- Language: TextProto
Delimiters:
Delimiters:
- pb
- PB
- proto
Expand Down

0 comments on commit 544d399

Please sign in to comment.