From 89f1c3130a05e7680ec3785d5e01bb0751d14faa Mon Sep 17 00:00:00 2001
From: Moritz Maxeiner <mm@ucw.sh>
Date: Mon, 17 Feb 2020 17:25:19 +0100
Subject: [PATCH] update format config

---
 .clang-format | 205 +++++++++++++++++++++++---------------------------
 1 file changed, 94 insertions(+), 111 deletions(-)

diff --git a/.clang-format b/.clang-format
index 5518241..c00c891 100644
--- a/.clang-format
+++ b/.clang-format
@@ -1,121 +1,104 @@
 ---
-Language:        Cpp
-TabWidth:        3
-IndentWidth:     3
-AccessModifierOffset: -3
-ConstructorInitializerIndentWidth: 0
-ContinuationIndentWidth: 3
-ColumnLimit:     79
-BinPackArguments: false
-BinPackParameters: false
-AlignAfterOpenBracket: Align
-AlignConsecutiveAssignments: true
-AlignConsecutiveDeclarations: true
-AlignOperands:   true
-AlignEscapedNewlines: Right
-AlignTrailingComments: true
-PenaltyBreakAssignment: 100
-PenaltyBreakBeforeFirstCallParameter: 19
-PenaltyBreakComment: 300
-PenaltyBreakFirstLessLess: 120
-PenaltyBreakString: 1000
-PenaltyBreakTemplateDeclaration: 10
-PenaltyExcessCharacter: 1000000
-PenaltyReturnTypeOnItsOwnLine: 1000
-AllowAllArgumentsOnNextLine: false # clang-format >= 9
-AllowAllConstructorInitializersOnNextLine: false # clang-format >= 9
-AllowAllParametersOfDeclarationOnNextLine: false
-AllowShortBlocksOnASingleLine: false
-AllowShortCaseLabelsOnASingleLine: false
-AllowShortFunctionsOnASingleLine: All
-AllowShortIfStatementsOnASingleLine: false
-AllowShortLoopsOnASingleLine: false
-AlwaysBreakAfterDefinitionReturnType: None
-AlwaysBreakAfterReturnType: None
-AlwaysBreakBeforeMultilineStrings: false
-AlwaysBreakTemplateDeclarations: true
-BreakBeforeBraces: Custom
+Language:                                                           Cpp
+Standard:                                                         Cpp11
+UseTab:                                                  ForIndentation
+TabWidth:                                                             3
+IndentWidth:                                                          3
+AccessModifierOffset:                                                -3
+ContinuationIndentWidth:                                              3
+ColumnLimit:                                                         79
+ConstructorInitializerIndentWidth:                                    0
+BinPackArguments:                                                 false
+BinPackParameters:                                                false
+AlignAfterOpenBracket:                                            Align
+AlignConsecutiveAssignments:                                       true
+AlignConsecutiveDeclarations:                                      true
+AlignOperands:                                                     true
+AlignEscapedNewlines:                                             Right
+AlignTrailingComments:                                             true
+AllowAllArgumentsOnNextLine:                                      false
+AllowAllConstructorInitializersOnNextLine:                        false
+ConstructorInitializerAllOnOneLineOrOnePerLine:                   false
+AllowAllParametersOfDeclarationOnNextLine:                        false
+AllowShortBlocksOnASingleLine:                                    false
+AllowShortCaseLabelsOnASingleLine:                                false
+AllowShortFunctionsOnASingleLine:                                  None
+AllowShortIfStatementsOnASingleLine:                              Never
+AllowShortLoopsOnASingleLine:                                     false
+AlwaysBreakAfterReturnType:                                        None
+AlwaysBreakBeforeMultilineStrings:                                 true
+AlwaysBreakTemplateDeclarations:                                    Yes
+BreakBeforeBraces:                                               Custom
 BraceWrapping:
-  AfterClass:      true
-  AfterControlStatement: false
-  AfterEnum:       false
-  AfterFunction:   true
-  AfterNamespace:  true
-  AfterObjCDeclaration: false
-  AfterStruct:     true
-  AfterUnion:      false
-  AfterExternBlock: false
-  BeforeCatch:     false
-  BeforeElse:      false
-  IndentBraces:    false
-  SplitEmptyFunction: true
-  SplitEmptyRecord: true
-  SplitEmptyNamespace: true
-BreakBeforeBinaryOperators: None
-BreakBeforeInheritanceComma: false
-BreakInheritanceList: BeforeColon
-BreakBeforeTernaryOperators: true
-BreakConstructorInitializers: BeforeComma
-BreakAfterJavaFieldAnnotations: false
-BreakStringLiterals: true
-CommentPragmas:  '^ IWYU pragma:'
-CompactNamespaces: false
-ConstructorInitializerAllOnOneLineOrOnePerLine: false
-Cpp11BracedListStyle: true
-DerivePointerAlignment: false
-DisableFormat:   false
-ExperimentalAutoDetectBinPacking: false
-FixNamespaceComments: false
+  AfterClass:                                                      true
+  AfterControlStatement:                                          false
+  AfterEnum:                                                      false
+  AfterFunction:                                                   true
+  AfterNamespace:                                                  true
+  AfterObjCDeclaration:                                           false
+  AfterStruct:                                                     true
+  AfterUnion:                                                     false
+  AfterExternBlock:                                               false
+  BeforeCatch:                                                    false
+  BeforeElse:                                                     false
+  IndentBraces:                                                   false
+  SplitEmptyFunction:                                              true
+  SplitEmptyRecord:                                                true
+  SplitEmptyNamespace:                                             true
+BreakBeforeBinaryOperators:                                        None
+BreakBeforeInheritanceComma:                                      false
+BreakInheritanceList:                                       BeforeColon
+BreakBeforeTernaryOperators:                                       true
+BreakConstructorInitializers:                               BeforeComma
+BreakAfterJavaFieldAnnotations:                                   false
+BreakStringLiterals:                                               true
+CompactNamespaces:                                                false
+Cpp11BracedListStyle:                                              true
+DerivePointerAlignment:                                           false
+DisableFormat:                                                    false
+ExperimentalAutoDetectBinPacking:                                 false
+FixNamespaceComments:                                             false
+IndentCaseLabels:                                                 false
+IndentPPDirectives:                                          BeforeHash
+IndentWrappedFunctionNames:                                        true
+KeepEmptyLinesAtTheStartOfBlocks:                                  true
+MaxEmptyLinesToKeep:                                                  1
+NamespaceIndentation:                                               All
+PointerAlignment:                                                  Left
+ReflowComments:                                                    true
+SortIncludes:                                                     false
+SortUsingDeclarations:                                             true
+SpaceAfterCStyleCast:                                              true
+SpaceAfterTemplateKeyword:                                        false
+SpaceBeforeAssignmentOperators:                                    true
+SpaceBeforeCpp11BracedList:                                       false
+SpaceBeforeCtorInitializerColon:                                   true
+SpaceBeforeInheritanceColon:                                       true
+SpaceBeforeParens:                                    ControlStatements
+SpaceBeforeRangeBasedForLoopColon:                                 true
+SpaceInEmptyParentheses:                                          false
+SpacesBeforeTrailingComments:                                         1
+SpacesInAngles:                                                   false
+SpacesInContainerLiterals:                                        false
+SpacesInCStyleCastParentheses:                                    false
+SpacesInParentheses:                                              false
+SpacesInSquareBrackets:                                           false
+PenaltyBreakAssignment:                                             100
+PenaltyBreakBeforeFirstCallParameter:                                19
+PenaltyBreakComment:                                                300
+PenaltyBreakFirstLessLess:                                          120
+PenaltyBreakString:                                                1000
+PenaltyBreakTemplateDeclaration:                                     10
+PenaltyExcessCharacter:                                         1000000
+PenaltyReturnTypeOnItsOwnLine:                                     1000
+CommentPragmas:                                                      ''
+MacroBlockBegin:                                                     ''
+MacroBlockEnd:                                                       ''
 ForEachMacros:
   - foreach
   - Q_FOREACH
   - BOOST_FOREACH
-IncludeBlocks:   Preserve
-IncludeCategories:
-  - Regex:           '^"(llvm|llvm-c|clang|clang-c)/'
-    Priority:        2
-  - Regex:           '^(<|"(gtest|gmock|isl|json)/)'
-    Priority:        3
-  - Regex:           '.*'
-    Priority:        1
-IncludeIsMainRegex: '(Test)?$'
-IndentCaseLabels: false
-IndentPPDirectives: None
-IndentWrappedFunctionNames: false
-JavaScriptQuotes: Leave
-JavaScriptWrapImports: true
-KeepEmptyLinesAtTheStartOfBlocks: true
-MacroBlockBegin: ''
-MacroBlockEnd:   ''
-MaxEmptyLinesToKeep: 1
-NamespaceIndentation: All
-ObjCBinPackProtocolList: Auto
-ObjCBlockIndentWidth: 2
-ObjCSpaceAfterProperty: false
-ObjCSpaceBeforeProtocolList: true
-PointerAlignment: Left
-ReflowComments:  true
-SortIncludes:    false
-SortUsingDeclarations: true
-SpaceAfterCStyleCast: true
-SpaceAfterTemplateKeyword: false
-SpaceBeforeAssignmentOperators: true
-SpaceBeforeCpp11BracedList: false
-SpaceBeforeCtorInitializerColon: true
-SpaceBeforeInheritanceColon: true
-SpaceBeforeParens: ControlStatements
-SpaceBeforeRangeBasedForLoopColon: true
-SpaceInEmptyParentheses: false
-SpacesBeforeTrailingComments: 1
-SpacesInAngles:  false
-SpacesInContainerLiterals: false
-SpacesInCStyleCastParentheses: false
-SpacesInParentheses: false
-SpacesInSquareBrackets: false
-Standard:        Cpp11
 StatementMacros:
   - Q_UNUSED
   - QT_REQUIRE_VERSION
-UseTab:          ForIndentation
 ...
-
-- 
GitLab