Skip to content

Commit 54a9548

Browse files
authored
Initial commit
0 parents  commit 54a9548

File tree

7 files changed

+634
-0
lines changed

7 files changed

+634
-0
lines changed

.clang-format

Lines changed: 334 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,334 @@
1+
Language: C
2+
BasedOnStyle: Google
3+
AccessModifierOffset: -4
4+
AlignAfterOpenBracket: Align
5+
AlignConsecutiveMacros: true
6+
AlignConsecutiveAssignments: true
7+
AlignConsecutiveDeclarations: false
8+
AlignEscapedNewlines: Left
9+
AlignOperands: true
10+
AlignTrailingComments: true
11+
AllowAllArgumentsOnNextLine: true
12+
AllowAllConstructorInitializersOnNextLine: true
13+
AllowAllParametersOfDeclarationOnNextLine: true
14+
AllowShortBlocksOnASingleLine: Never
15+
AllowShortCaseLabelsOnASingleLine: false
16+
AllowShortFunctionsOnASingleLine: false
17+
AllowShortLambdasOnASingleLine: All
18+
AllowShortIfStatementsOnASingleLine: WithoutElse
19+
AllowShortLoopsOnASingleLine: true
20+
AlwaysBreakAfterDefinitionReturnType: None
21+
AlwaysBreakAfterReturnType: None
22+
AlwaysBreakBeforeMultilineStrings: true
23+
AlwaysBreakTemplateDeclarations: Yes
24+
BinPackArguments: true
25+
BinPackParameters: true
26+
BraceWrapping:
27+
AfterCaseLabel: false
28+
AfterClass: false
29+
AfterControlStatement: false
30+
AfterEnum: false
31+
AfterFunction: true
32+
AfterNamespace: false
33+
AfterObjCDeclaration: false
34+
AfterStruct: false
35+
AfterUnion: false
36+
AfterExternBlock: false
37+
BeforeCatch: false
38+
BeforeElse: false
39+
IndentBraces: false
40+
SplitEmptyFunction: true
41+
SplitEmptyRecord: true
42+
SplitEmptyNamespace: true
43+
BreakBeforeBinaryOperators: None
44+
BreakBeforeBraces: Custom
45+
BreakBeforeInheritanceComma: false
46+
BreakInheritanceList: BeforeColon
47+
BreakBeforeTernaryOperators: true
48+
BreakConstructorInitializersBeforeComma: false
49+
BreakConstructorInitializers: BeforeColon
50+
BreakAfterJavaFieldAnnotations: false
51+
BreakStringLiterals: true
52+
ColumnLimit: 120
53+
CommentPragmas: '^ IWYU pragma:'
54+
CompactNamespaces: false
55+
ConstructorInitializerAllOnOneLineOrOnePerLine: true
56+
ConstructorInitializerIndentWidth: 4
57+
ContinuationIndentWidth: 4
58+
Cpp11BracedListStyle: true
59+
DeriveLineEnding: true
60+
DerivePointerAlignment: true
61+
DisableFormat: false
62+
ExperimentalAutoDetectBinPacking: false
63+
FixNamespaceComments: true
64+
ForEachMacros:
65+
- foreach
66+
- Q_FOREACH
67+
- BOOST_FOREACH
68+
IncludeBlocks: Regroup
69+
IncludeCategories:
70+
- Regex: '^<ext/.*\.h>'
71+
Priority: 2
72+
SortPriority: 0
73+
- Regex: '^<.*\.h>'
74+
Priority: 1
75+
SortPriority: 0
76+
- Regex: '^<.*'
77+
Priority: 2
78+
SortPriority: 0
79+
- Regex: '.*'
80+
Priority: 3
81+
SortPriority: 0
82+
IncludeIsMainRegex: '([-_](test|unittest))?$'
83+
IncludeIsMainSourceRegex: ''
84+
IndentCaseLabels: true
85+
IndentGotoLabels: true
86+
IndentPPDirectives: None
87+
IndentWidth: 4
88+
IndentWrappedFunctionNames: false
89+
JavaScriptQuotes: Leave
90+
JavaScriptWrapImports: true
91+
KeepEmptyLinesAtTheStartOfBlocks: false
92+
MacroBlockBegin: ''
93+
MacroBlockEnd: ''
94+
MaxEmptyLinesToKeep: 1
95+
NamespaceIndentation: None
96+
ObjCBinPackProtocolList: Never
97+
ObjCBlockIndentWidth: 2
98+
ObjCSpaceAfterProperty: false
99+
ObjCSpaceBeforeProtocolList: true
100+
PenaltyBreakAssignment: 2
101+
PenaltyBreakBeforeFirstCallParameter: 1
102+
PenaltyBreakComment: 300
103+
PenaltyBreakFirstLessLess: 120
104+
PenaltyBreakString: 1000
105+
PenaltyBreakTemplateDeclaration: 10
106+
PenaltyExcessCharacter: 1000000
107+
PenaltyReturnTypeOnItsOwnLine: 200
108+
PointerAlignment: Left
109+
RawStringFormats:
110+
- Language: Cpp
111+
Delimiters:
112+
- cc
113+
- CC
114+
- cpp
115+
- Cpp
116+
- CPP
117+
- 'c++'
118+
- 'C++'
119+
CanonicalDelimiter: ''
120+
BasedOnStyle: google
121+
- Language: TextProto
122+
Delimiters:
123+
- pb
124+
- PB
125+
- proto
126+
- PROTO
127+
EnclosingFunctions:
128+
- EqualsProto
129+
- EquivToProto
130+
- PARSE_PARTIAL_TEXT_PROTO
131+
- PARSE_TEST_PROTO
132+
- PARSE_TEXT_PROTO
133+
- ParseTextOrDie
134+
- ParseTextProtoOrDie
135+
CanonicalDelimiter: ''
136+
BasedOnStyle: google
137+
ReflowComments: true
138+
SortIncludes: false
139+
SortUsingDeclarations: true
140+
SpaceAfterCStyleCast: false
141+
SpaceAfterLogicalNot: false
142+
SpaceAfterTemplateKeyword: true
143+
SpaceBeforeAssignmentOperators: true
144+
SpaceBeforeCpp11BracedList: false
145+
SpaceBeforeCtorInitializerColon: true
146+
SpaceBeforeInheritanceColon: true
147+
SpaceBeforeParens: ControlStatements
148+
SpaceBeforeRangeBasedForLoopColon: true
149+
SpaceInEmptyBlock: false
150+
SpaceInEmptyParentheses: false
151+
SpacesBeforeTrailingComments: 2
152+
SpacesInAngles: false
153+
SpacesInConditionalStatement: false
154+
SpacesInContainerLiterals: true
155+
SpacesInCStyleCastParentheses: false
156+
SpacesInParentheses: false
157+
SpacesInSquareBrackets: false
158+
SpaceBeforeSquareBrackets: false
159+
Standard: Auto
160+
StatementMacros:
161+
- Q_UNUSED
162+
- QT_REQUIRE_VERSION
163+
TabWidth: 4
164+
UseCRLF: false
165+
UseTab: Never
166+
...
167+
168+
---
169+
Language: Cpp
170+
BasedOnStyle: Google
171+
AccessModifierOffset: -4
172+
AlignAfterOpenBracket: Align
173+
AlignConsecutiveMacros: true
174+
AlignConsecutiveAssignments: true
175+
AlignConsecutiveDeclarations: false
176+
AlignEscapedNewlines: Left
177+
AlignOperands: true
178+
AlignTrailingComments: true
179+
AllowAllArgumentsOnNextLine: true
180+
AllowAllConstructorInitializersOnNextLine: true
181+
AllowAllParametersOfDeclarationOnNextLine: true
182+
AllowShortBlocksOnASingleLine: Never
183+
AllowShortCaseLabelsOnASingleLine: false
184+
AllowShortFunctionsOnASingleLine: false
185+
AllowShortLambdasOnASingleLine: All
186+
AllowShortIfStatementsOnASingleLine: WithoutElse
187+
AllowShortLoopsOnASingleLine: true
188+
AlwaysBreakAfterDefinitionReturnType: None
189+
AlwaysBreakAfterReturnType: None
190+
AlwaysBreakBeforeMultilineStrings: true
191+
AlwaysBreakTemplateDeclarations: Yes
192+
BinPackArguments: true
193+
BinPackParameters: true
194+
BraceWrapping:
195+
AfterCaseLabel: false
196+
AfterClass: false
197+
AfterControlStatement: false
198+
AfterEnum: false
199+
AfterFunction: true
200+
AfterNamespace: false
201+
AfterObjCDeclaration: false
202+
AfterStruct: false
203+
AfterUnion: false
204+
AfterExternBlock: false
205+
BeforeCatch: false
206+
BeforeElse: false
207+
IndentBraces: false
208+
SplitEmptyFunction: true
209+
SplitEmptyRecord: true
210+
SplitEmptyNamespace: true
211+
BreakBeforeBinaryOperators: None
212+
BreakBeforeBraces: Custom
213+
BreakBeforeInheritanceComma: false
214+
BreakInheritanceList: BeforeColon
215+
BreakBeforeTernaryOperators: true
216+
BreakConstructorInitializersBeforeComma: false
217+
BreakConstructorInitializers: BeforeColon
218+
BreakAfterJavaFieldAnnotations: false
219+
BreakStringLiterals: true
220+
ColumnLimit: 120
221+
CommentPragmas: '^ IWYU pragma:'
222+
CompactNamespaces: false
223+
ConstructorInitializerAllOnOneLineOrOnePerLine: true
224+
ConstructorInitializerIndentWidth: 4
225+
ContinuationIndentWidth: 4
226+
Cpp11BracedListStyle: true
227+
DeriveLineEnding: true
228+
DerivePointerAlignment: true
229+
DisableFormat: false
230+
ExperimentalAutoDetectBinPacking: false
231+
FixNamespaceComments: true
232+
ForEachMacros:
233+
- foreach
234+
- Q_FOREACH
235+
- BOOST_FOREACH
236+
IncludeBlocks: Regroup
237+
IncludeCategories:
238+
- Regex: '^<ext/.*\.h>'
239+
Priority: 2
240+
SortPriority: 0
241+
- Regex: '^<.*\.h>'
242+
Priority: 1
243+
SortPriority: 0
244+
- Regex: '^<.*'
245+
Priority: 2
246+
SortPriority: 0
247+
- Regex: '.*'
248+
Priority: 3
249+
SortPriority: 0
250+
IncludeIsMainRegex: '([-_](test|unittest))?$'
251+
IncludeIsMainSourceRegex: ''
252+
IndentCaseLabels: true
253+
IndentGotoLabels: true
254+
IndentPPDirectives: None
255+
IndentWidth: 4
256+
IndentWrappedFunctionNames: false
257+
JavaScriptQuotes: Leave
258+
JavaScriptWrapImports: true
259+
KeepEmptyLinesAtTheStartOfBlocks: false
260+
MacroBlockBegin: ''
261+
MacroBlockEnd: ''
262+
MaxEmptyLinesToKeep: 1
263+
NamespaceIndentation: None
264+
ObjCBinPackProtocolList: Never
265+
ObjCBlockIndentWidth: 2
266+
ObjCSpaceAfterProperty: false
267+
ObjCSpaceBeforeProtocolList: true
268+
PenaltyBreakAssignment: 2
269+
PenaltyBreakBeforeFirstCallParameter: 1
270+
PenaltyBreakComment: 300
271+
PenaltyBreakFirstLessLess: 120
272+
PenaltyBreakString: 1000
273+
PenaltyBreakTemplateDeclaration: 10
274+
PenaltyExcessCharacter: 1000000
275+
PenaltyReturnTypeOnItsOwnLine: 200
276+
PointerAlignment: Left
277+
RawStringFormats:
278+
- Language: Cpp
279+
Delimiters:
280+
- cc
281+
- CC
282+
- cpp
283+
- Cpp
284+
- CPP
285+
- 'c++'
286+
- 'C++'
287+
CanonicalDelimiter: ''
288+
BasedOnStyle: google
289+
- Language: TextProto
290+
Delimiters:
291+
- pb
292+
- PB
293+
- proto
294+
- PROTO
295+
EnclosingFunctions:
296+
- EqualsProto
297+
- EquivToProto
298+
- PARSE_PARTIAL_TEXT_PROTO
299+
- PARSE_TEST_PROTO
300+
- PARSE_TEXT_PROTO
301+
- ParseTextOrDie
302+
- ParseTextProtoOrDie
303+
CanonicalDelimiter: ''
304+
BasedOnStyle: google
305+
ReflowComments: true
306+
SortIncludes: false
307+
SortUsingDeclarations: true
308+
SpaceAfterCStyleCast: false
309+
SpaceAfterLogicalNot: false
310+
SpaceAfterTemplateKeyword: true
311+
SpaceBeforeAssignmentOperators: true
312+
SpaceBeforeCpp11BracedList: false
313+
SpaceBeforeCtorInitializerColon: true
314+
SpaceBeforeInheritanceColon: true
315+
SpaceBeforeParens: ControlStatements
316+
SpaceBeforeRangeBasedForLoopColon: true
317+
SpaceInEmptyBlock: false
318+
SpaceInEmptyParentheses: false
319+
SpacesBeforeTrailingComments: 2
320+
SpacesInAngles: false
321+
SpacesInConditionalStatement: false
322+
SpacesInContainerLiterals: true
323+
SpacesInCStyleCastParentheses: false
324+
SpacesInParentheses: false
325+
SpacesInSquareBrackets: false
326+
SpaceBeforeSquareBrackets: false
327+
Standard: Auto
328+
StatementMacros:
329+
- Q_UNUSED
330+
- QT_REQUIRE_VERSION
331+
TabWidth: 4
332+
UseCRLF: false
333+
UseTab: Never
334+
...

0 commit comments

Comments
 (0)