forked from chan-sccp/chan-sccp
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.clang-format
182 lines (181 loc) · 5.36 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
#BasedOnStyle : WebKit
#AccessModifierOffset : -4
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: true
AlignConsecutiveBitFields: true
AlignConsecutiveDeclarations: true
AlignConsecutiveMacros: true
AlignEscapedNewlines: Right
AlignOperands: AlignAfterOperator
AlignTrailingComments: true
AllowAllArgumentsOnNextLine: true
AllowAllConstructorInitializersOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: Never
AllowShortCaseLabelsOnASingleLine: false
AllowShortEnumsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: Never
AllowShortLambdasOnASingleLine: Empty
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: Yes
AttributeMacros: ['NONENULL','gcc_inline','extern','SCCP_API','SCCP_CALL','__PURE__','__CONST__','__NONNULL','__attribute__']
BinPackArguments: true
BinPackParameters: true
BitFieldColonSpacing: None
BreakBeforeBraces: Custom
BraceWrapping:
AfterCaseLabel: true
AfterClass: true
AfterControlStatement: Never
AfterEnum: true
AfterFunction: true
AfterNamespace: true
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
AfterExternBlock: true
BeforeCatch: false
BeforeElse: false
BeforeLambdaBody: false
BeforeWhile: false
IndentBraces: true
SplitEmptyFunction: false
SplitEmptyRecord: false
SplitEmptyNamespace: false
BreakAfterJavaFieldAnnotations: false
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeBraces: Linux
BreakBeforeTernaryOperators: true
BreakConstructorInitializers: AfterColon
BreakInheritanceList: BeforeComma
BreakStringLiterals: true
ColumnLimit: 225
CommentPragmas: '^ IWYU pragma:'
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 8
ContinuationIndentWidth: 4
Cpp11BracedListStyle: false
DeriveLineEnding: false
DerivePointerAlignment: false
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: true
ForEachMacros: [
'SCCP_LIST_TRAVERSE',
'SCCP_RWLIST_TRAVERSE',
'SCCP_LIST_TRAVERSE_BACKWARDS',
'SCCP_RWLIST_TRAVERSE_BACKWARDS',
'SCCP_LIST_TRAVERSE_SAFE_BEGIN',
'SCCP_RWLIST_TRAVERSE_SAFE_BEGIN',
'SCCP_LIST_TRAVERSE_BACKWARDS_SAFE_BEGIN',
'SCCP_RWLIST_TRAVERSE_BACKWARDS_SAFE_BEGIN',
'SCCP_LIST_TRAVERSE_SAFE_END',
'SCCP_RWLIST_TRAVERSE_SAFE_END'
]
IncludeBlocks: Preserve
IncludeCategories:
- Regex: 'config.h' # primary local headers
Priority: 1
- Regex: 'common.h' # primary local headers
Priority: 2
- Regex: '.*' # any local headers
Priority: 3
- Regex: 'pbx_impl/.*' # any local headers
Priority: 4
- Regex: '^<[a-z]*>' # language headers like <algorithm>
Priority: 5
- Regex: '^<.*\.h>' # platform headers like <unistd.h>
Priority: 6
- Regex: '^<asterisk/.*' # asterisk headers
Priority: 7
- Regex: '^<.*' # other external headers
Priority: 8
IndentCaseBlocks: true
IndentCaseLabels: true
IndentExternBlock: AfterExternBlock
IndentGotoLabels: false
IndentPPDirectives: AfterHash
IndentWidth: 8
IndentWrappedFunctionNames: true
#InsertTrailingCommas: Wrapped
KeepEmptyLinesAtTheStartOfBlocks: false
Language: Cpp
#MacroBlockBegin: ''
#MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
NamespaceIndentation: Inner
#NamespaceMacros: ''
PenaltyBreakAssignment: 100
PenaltyBreakBeforeFirstCallParameter: 100
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyBreakTemplateDeclaration: 100
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 200
PointerAlignment: Middle
RawStringFormats:
- Language: Cpp
Delimiters:
- 'cc'
- 'cpp'
BasedOnStyle: llvm
CanonicalDelimiter: 'cc'
ReflowComments: true
SortIncludes: false
SortUsingDeclarations: true
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: false
SpaceAroundPointerQualifiers: Both
SpaceBeforeAssignmentOperators: true
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: false
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatementsExceptForEachMacros
SpaceBeforeRangeBasedForLoopColon: false
SpaceBeforeSquareBrackets: false
SpaceInEmptyBlock: false
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 40
SpacesInAngles: false
SpacesInCStyleCastParentheses: false
SpacesInConditionalStatement: false
SpacesInContainerLiterals: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: Latest
StatementMacros: []
TabWidth: 8
TypenameMacros: [
'SCCP_LIST_HEAD ',
'SCCP_RWLIST_HEAD',
'SCCP_LIST_ENTRY',
'SCCP_RWLIST_ENTRY',
'SCCP_API',
'SCCP_CALL',
'sccp_push_result_t',
'boolean_t',
'sessionPtr',
'devicePtr',
'linePtr',
'channelPtr',
'lineDevicePtr',
'conferencePtr',
'constSessionPtr',
'constDevicePtr',
'constLinePtr',
'constChannelPtr',
'constLineDevicePtr',
'constConferencePtr',
'messagePtr',
'constMessagePtr',
]
UseCRLF: false
#UseTab: ForContinuationAndIndentation
UseTab: AlignWithSpaces
WhitespaceSensitiveMacros: []