Reviewed and sorted .clang-format
dblume

dblume commited on 2023-08-19 17:37:53
Showing 1 changed files, with 7 additions and 18 deletions.

... ...
@@ -1,17 +1,10 @@
1 1
 ---
2 2
 Language:        Cpp
3 3
 BasedOnStyle:    Google
4
+AccessModifierOffset: -2
4 5
 AlignOperands:   false
5
-AllowAllArgumentsOnNextLine: true
6
-AllowAllParametersOfDeclarationOnNextLine: true
7
-AllowShortCaseLabelsOnASingleLine: false
8
-AllowShortFunctionsOnASingleLine: Empty
9
-AllowShortIfStatementsOnASingleLine: WithoutElse
10 6
 AllowShortLoopsOnASingleLine: false
11
-BinPackArguments: true
12
-BinPackParameters: true
13
-
14
-PackConstructorInitializers: NextLine  # available in v14
7
+BreakBeforeBinaryOperators: NonAssignment
15 8
 
16 9
 # Support vim navigation with [[ and ]]
17 10
 BreakBeforeBraces: Custom
... ...
@@ -20,18 +13,14 @@ BraceWrapping:
20 13
   AfterFunction: true
21 14
   AfterStruct: true
22 15
 
23
-BreakBeforeBinaryOperators: NonAssignment
24 16
 BreakConstructorInitializers: AfterColon
25
-DerivePointerAlignment: false
26
-SortIncludes:    false
27
-SpacesBeforeTrailingComments: 1
28
-AccessModifierOffset: -4
29
-IndentWidth: 4
30
-ContinuationIndentWidth: 8
31
-ConstructorInitializerIndentWidth: 8
32
-IndentCaseLabels: false
33 17
 
34 18
 # Torvalds dislikes hard column length limits too.
35 19
 # https://lkml.org/lkml/2020/5/29/1038
36 20
 ColumnLimit: 0
21
+
22
+IndentWidth: 4
23
+PackConstructorInitializers: NextLine  # available in v14
24
+
25
+SortIncludes: false
37 26
 ...
38 27