Help: minor improvements
[far2l.git] / .clang-format
blob07d9a82d51123ce19d0e969305240229bae36fde
2 ColumnLimit:  110
3 IndentWidth:  4
4 TabWidth:     4
5 Language:     Cpp
6 Standard:     Latest
7 SortIncludes: false
9 AccessModifierOffset:              -4
10 AlignAfterOpenBracket:             DontAlign
11 AlignConsecutiveAssignments:         false
12 AlignConsecutiveDeclarations:      false
13 AlignConsecutiveBitFields:         true
14 AlignConsecutiveMacros:            true
15 AllowAllArgumentsOnNextLine:       false
16 AllowShortFunctionsOnASingleLine:  Inline
17 AllowShortLambdasOnASingleLine:    Empty
18 AlwaysBreakTemplateDeclarations:   Yes
19 AlignTrailingComments:             true
20 BinPackArguments: true
21 ConstructorInitializerIndentWidth: 4
22 ContinuationIndentWidth:           8
23 IndentCaseLabels:                  true
25 BreakBeforeBraces:       Custom
26 BraceWrapping:
27   AfterClass:            true
28   AfterControlStatement: false
29   AfterEnum:             true
30   AfterFunction:         true
31   AfterNamespace:        true
32   AfterObjCDeclaration:  true
33   AfterStruct:           true
34   AfterUnion:            true
35   AfterExternBlock:      false
36   BeforeCatch:           false
37   BeforeElse:            false
38   IndentBraces:          false
39   SplitEmptyFunction:    false
40   SplitEmptyRecord:      false
41   SplitEmptyNamespace:   false
44 FixNamespaceComments:             true
45 KeepEmptyLinesAtTheStartOfBlocks: true
47 #PenaltyBreakAssignment: 10000
48 PenaltyBreakBeforeFirstCallParameter: 10000
49 #PenaltyBreakComment: 1000
50 PenaltyBreakFirstLessLess: 16
51 #PenaltyBreakOpenParenthesis: 1000
52 #PenaltyBreakString: 1000
53 #PenaltyBreakTemplateDeclaration: 1000
54 #PenaltyExcessCharacter: 1000
55 PenaltyIndentedWhitespace: 16
56 PenaltyReturnTypeOnItsOwnLine: 96
59 PointerAlignment:                 Right
60 ReferenceAlignment:               Pointer
62 SpaceAfterCStyleCast:             false
63 SpacesInCStyleCastParentheses:    false
65 SpaceAfterLogicalNot:             false
66 SpaceBeforeParens:                ControlStatements
67 SpaceInEmptyParentheses:          false
69 # needs a separate setting for namespace
70 SpacesBeforeTrailingComments:     4
71 SpacesInAngles:                   false
72 SpacesInParentheses:              false
73 SpacesInSquareBrackets:           false
75 #OperandAlignmentStyle:            DontAlign
76 AlignOperands:                     DontAlign
77 #BinPackParameters: true
79 BreakBeforeBinaryOperators:        NonAssignment
80 PackConstructorInitializers:       NextLine
82 AlignArrayOfStructures:            Left
84 ############ Options added for far2l, see https://github.com/elfmz/llvm-project
85 UseTab:                              ForContinuationAndIndentationAndComments
86 AlignByTab:                          true
87 BreakConstructorInitializers:        AfterColonSeparated
88 SpaceBeforeAssignmentOperators:      OnlyTrivial
89 AlignConsecutiveMembersAssignments:  true
90 AllowLongTrailingComments:           true