Merge pull request #2512 from spnethw/tmppanel_fix_menu_from_file_list_crash
[far2l.git] / .clang-format
blob99b577673d39afbc83afad28603c8020da040723
2 ColumnLimit:  110
3 IndentWidth:  4
4 TabWidth:     4
5 Language:     Cpp
6 Standard:     Latest
7 SortIncludes: Never
9 AccessModifierOffset:              -4
10 AlignAfterOpenBracket:             DontAlign
11 AlignConsecutiveAssignments:
12   Enabled: false
13 AlignConsecutiveDeclarations:
14   Enabled: false
15 AlignConsecutiveBitFields:
16   Enabled: true
17   AcrossEmptyLines: true
18   AcrossComments: true
19 AlignConsecutiveMacros:
20   Enabled: true
21   AcrossEmptyLines: true
22   AcrossComments: true
23 AllowAllArgumentsOnNextLine:       false
24 AllowShortFunctionsOnASingleLine:  Inline
25 AllowShortLambdasOnASingleLine:    Empty
26 AlwaysBreakTemplateDeclarations:   Yes
27 AlignTrailingComments:             true
28 BinPackArguments: true
29 ConstructorInitializerIndentWidth: 4
30 ContinuationIndentWidth:           8
31 IndentCaseLabels:                  true
33 BreakBeforeBraces:       Custom
34 BraceWrapping:
35   AfterClass:            true
36   AfterControlStatement: Never
37   AfterEnum:             true
38   AfterFunction:         true
39   AfterNamespace:        true
40   AfterObjCDeclaration:  true
41   AfterStruct:           true
42   AfterUnion:            true
43   AfterExternBlock:      false
44   BeforeCatch:           false
45   BeforeElse:            false
46   IndentBraces:          false
47   SplitEmptyFunction:    false
48   SplitEmptyRecord:      false
49   SplitEmptyNamespace:   false
52 FixNamespaceComments:             true
53 KeepEmptyLinesAtTheStartOfBlocks: true
55 #PenaltyBreakAssignment: 10000
56 PenaltyBreakBeforeFirstCallParameter: 10000
57 #PenaltyBreakComment: 1000
58 PenaltyBreakFirstLessLess: 16
59 #PenaltyBreakOpenParenthesis: 1000
60 #PenaltyBreakString: 1000
61 #PenaltyBreakTemplateDeclaration: 1000
62 #PenaltyExcessCharacter: 1000
63 PenaltyIndentedWhitespace: 16
64 PenaltyReturnTypeOnItsOwnLine: 96
67 PointerAlignment:                 Right
68 ReferenceAlignment:               Pointer
70 SpaceAfterCStyleCast:             false
71 SpacesInCStyleCastParentheses:    false
73 SpaceAfterLogicalNot:             false
74 SpaceBeforeParens:                ControlStatements
75 SpaceInEmptyParentheses:          false
77 # needs a separate setting for namespace
78 SpacesBeforeTrailingComments:     4
79 SpacesInAngles:                   false
80 SpacesInParentheses:              false
81 SpacesInSquareBrackets:           false
83 #OperandAlignmentStyle:            DontAlign
84 AlignOperands:                     DontAlign
85 #BinPackParameters: true
87 BreakBeforeBinaryOperators:        NonAssignment
88 PackConstructorInitializers:       NextLine
90 AlignArrayOfStructures:            Left
92 ############ Options added for far2l, see https://github.com/elfmz/llvm-project
93 UseTab:                              ForContinuationAndIndentationAndComments
94 AlignByTab:                          true
95 BreakConstructorInitializers:        AfterColonSeparated
96 SpaceBeforeAssignmentOperators:      OnlyTrivial
97 AlignConsecutiveMembersAssignments:  true
98 AllowLongTrailingComments:           true