25212a5fd95d84f6b318a4303d27c7ff19e348aa
dblume Add .clang-format

dblume authored 1 year ago

1) ---
2) Language:        Cpp
3) BasedOnStyle:    Google
4) AlignOperands:   false
5) AllowAllArgumentsOnNextLine: true
6) AllowAllParametersOfDeclarationOnNextLine: true
7) AllowShortCaseLabelsOnASingleLine: false
8) AllowShortFunctionsOnASingleLine: Empty
9) AllowShortIfStatementsOnASingleLine: WithoutElse
10) AllowShortLoopsOnASingleLine: false
11) BinPackArguments: true
12) BinPackParameters: true
13) 
dblume Added instructions for newe...

dblume authored 1 year ago

14) PackConstructorInitializers: NextLine  # available in v14
dblume Add .clang-format

dblume authored 1 year ago

15) 
16) # Support vim navigation with [[ and ]]
17) BreakBeforeBraces: Custom
18) BraceWrapping:
19)   AfterClass: true
20)   AfterFunction: true
21)   AfterStruct: true
22) 
23) BreakBeforeBinaryOperators: NonAssignment
24) 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
dblume Don't force column length l...

dblume authored 1 year ago

33) # Torvalds dislikes hard column length limits too.
34) # https://lkml.org/lkml/2020/5/29/1038
35) ColumnLimit: 0  # https://lkml.org/lkml/2020/5/29/1038