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