77897e40d5acf9cf8dab23d68ec47882408d77c9
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 Minor comment tweak on line...

dblume authored 1 year ago

33) 
dblume Don't force column length l...

dblume authored 1 year ago

34) # Torvalds dislikes hard column length limits too.
35) # https://lkml.org/lkml/2020/5/29/1038
dblume Minor comment tweak on line...

dblume authored 1 year ago

36) ColumnLimit: 0