Tweak .clang-format
authorRobin Gareus <robin@gareus.org>
Mon, 12 Aug 2019 23:06:12 +0000 (01:06 +0200)
committerRobin Gareus <robin@gareus.org>
Mon, 12 Aug 2019 23:06:12 +0000 (01:06 +0200)
tools/clang-format

index fe6f4d264bd53b397a7c09fcad6a1d037e0dbb07..8e31d8ca5fce5386f2a8d7ce4894e3810bbe4fe7 100644 (file)
@@ -10,24 +10,29 @@ AllowShortBlocksOnASingleLine: true
 AllowShortIfStatementsOnASingleLine: false
 AllowShortCaseLabelsOnASingleLine : false
 AllowShortLoopsOnASingleLine: false
-AlwaysBreakAfterReturnType: AllDefinitions
+AlwaysBreakAfterReturnType: TopLevel
 AlwaysBreakTemplateDeclarations: true
 BreakBeforeBraces: Linux
 BreakConstructorInitializersBeforeComma: true
-ColumnLimit:     0
+#ColumnLimit:      92
+ColumnLimit:      0
 ConstructorInitializerAllOnOneLineOrOnePerLine: false
+ConstructorInitializerIndentWidth: 8
 IndentCaseLabels: true
 AccessModifierOffset: -8
+#IndentPPDirectives: AfterHash
 IndentWidth:     8
 KeepEmptyLinesAtTheStartOfBlocks: false
 PenaltyReturnTypeOnItsOwnLine: 1
 MaxEmptyLinesToKeep: 1
+NamespaceIndentation: None
 ReflowComments:  true
 PointerAlignment: Left
 SortIncludes:    true
 SpaceAfterCStyleCast: false
 SpaceBeforeAssignmentOperators: true
 SpaceBeforeParens: Always
+#SpacesInAngles: true
 SpaceInEmptyParentheses: false
 SpacesBeforeTrailingComments: 1
 SpacesInContainerLiterals: true