-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.clang-format
More file actions
91 lines (79 loc) · 2.46 KB
/
.clang-format
File metadata and controls
91 lines (79 loc) · 2.46 KB
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
# SiddiqSoft clang-format
# Version 2, August 2021
Language: Cpp
AccessModifierOffset: -4
AlignAfterOpenBracket: Align # ours is Align
#AlignArrayOfStructures: Left
AlignConsecutiveDeclarations: Consecutive
AlignOperands: AlignAfterOperator
AlignTrailingComments: true
AlignConsecutiveAssignments: AcrossEmptyLines
AlignEscapedNewlines: DontAlign
AlignConsecutiveMacros: AcrossEmptyLines
AllowAllArgumentsOnNextLine: true
AllowShortBlocksOnASingleLine: Empty
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakBeforeMultilineStrings : false
AllowAllParametersOfDeclarationOnNextLine : false
AllowShortCaseLabelsOnASingleLine : true
AllowShortLambdasOnASingleLine: Inline
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments : false
BinPackParameters : false
BreakBeforeBraces: Custom
BraceWrapping:
AfterCaseLabel: false
AfterClass: true # TODO: verify
AfterControlStatement: MultiLine
AfterEnum: true # TODO: verify
AfterFunction: true # TODO: verify
AfterNamespace: true # TODO: verify
AfterStruct: true # TODO: verify
AfterUnion: true # TODO: verify
BeforeCatch: true
BeforeElse: true
BeforeLambdaBody: false
BeforeWhile: false
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
BasedOnStyle: WebKit
#BreakConstructorInitializersStyle: AfterComma
BreakBeforeTernaryOperators : true
BreakBeforeBinaryOperators : None
BreakInheritanceList : BeforeComma
BreakBeforeConceptDeclarations: true
ContinuationIndentWidth : 8
ColumnLimit: 132
Cpp11BracedListStyle: true
IndentCaseLabels: true
IndentPPDirectives: None
IndentWidth: 4
IndentRequires: true
PointerAlignment: Left
SpaceAfterCStyleCast: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesInCStyleCastParentheses: false
SpacesInSquareBrackets: false
MaxEmptyLinesToKeep: 2
NamespaceIndentation: All
CompactNamespaces : false
FixNamespaceComments : true
Standard: Latest
TabWidth: 4
UseTab: Never #ForIndentation
SortIncludes: false
SortUsingDeclarations: false
IncludeBlocks : Preserve
ReflowComments: true
#LambdaBodyIndentation: Signature
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 4
SpacesInParentheses: false
KeepEmptyLinesAtTheStartOfBlocks : false
#StatmentMacros: ['TEST_CLASS', 'TEST_CLASS_INITIALIZE', 'TEST_CLASS_CLEANUP', 'TEST_METHOD']