-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.clang-format
More file actions
175 lines (159 loc) · 4.27 KB
/
.clang-format
File metadata and controls
175 lines (159 loc) · 4.27 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
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
#Format Style Options - Created with Clang Power Tools
---
AccessModifierOffset: -4
AlignAfterOpenBracket: BlockIndent
AlignArrayOfStructures: Right
AlignConsecutiveAssignments: Consecutive
AlignConsecutiveBitFields: AcrossEmptyLines
AlignConsecutiveMacros: AcrossEmptyLines
AlignEscapedNewlines: Right
AlignOperands: Align
AlignTrailingComments: true
AllowAllArgumentsOnNextLine: true
AllowAllConstructorInitializersOnNextLine: true
AllowShortBlocksOnASingleLine: Empty
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: Yes
AttributeMacros: ['__capability', '__output', '__ununsed', 'CXX17_NODISCARD', 'CXX20_CONSTEXPR']
BinPackArguments: false
BinPackParameters: false
#BasedOnStyle : LLVM
BreakBeforeBraces: Custom
BraceWrapping:
AfterCaseLabel: false
AfterClass: false
AfterControlStatement: false
AfterEnum: false
AfterFunction: false
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
AfterExternBlock: false
BeforeCatch: true
BeforeElse: true
IndentBraces: false
SplitEmptyFunction: false
SplitEmptyRecord: false
SplitEmptyNamespace: false
BeforeLambdaBody: false
BeforeWhile: false
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeTernaryOperators: false
PackConstructorInitializers: NextLine
BreakConstructorInitializers: BeforeColon
ColumnLimit: 80
ContinuationIndentWidth: 4
Cpp11BracedListStyle: false
ConstructorInitializerAllOnOneLineOrOnePerLine: true
EmptyLineBeforeAccessModifier: LogicalBlock
FixNamespaceComments: true
IncludeBlocks: Regroup
IncludeCategories:
#include <Eigen/...>
- Regex: '(<|")Eigen.*'
Priority: 70
CaseSensitive: false
#include <catch2/...>
- Regex: '(<|")catch2.*'
Priority: 71
CaseSensitive: false
#include <flann/...>
- Regex: '(<|")flann.*'
Priority: 72
CaseSensitive: false
#include <cu...>
- Regex: '(<|")cu.*\.h'
Priority: 73
CaseSensitive: false
#include <boost/...>
- Regex: '(<|")boost.*'
Priority: 74
CaseSensitive: false
#include <gtest/...>
- Regex: '(<|")gtest.*'
Priority: 75
CaseSensitive: false
#include <iostream>
- Regex: '<[a-z0-9_]*>'
Priority: 1
CaseSensitive: false
#include <AnyLib/AnyFile.h[pp]>
- Regex: '<[A-Za-z0-9_-]*\/.*\.h'
Priority: 52
CaseSensitive: false
#include <AnyLib/AnyFile>
- Regex: '<[A-Za-z0-9_-]*\/.*>'
Priority: 50
CaseSensitive: false
#include <AnyFile.h[pp]>
- Regex: '<.*\.h'
Priority: 51
CaseSensitive: false
#include <AnyFile>
- Regex: '<.*>'
Priority: 2
CaseSensitive: false
#include "AnyLib/AnyFile.h[pp]"
- Regex: '(")[A-Za-z0-9_-]*\/.*\.h'
Priority: 92
CaseSensitive: false
#include "AnyLib/AnyFile"
- Regex: '(")[A-Za-z0-9_-]*\/.*>'
Priority: 90
CaseSensitive: false
#include "AnyFile.h[pp]"
- Regex: '(").*\.h'
Priority: 91
CaseSensitive: false
#include "AnyFile"
- Regex: '(").*'
Priority: 999
CaseSensitive: false
#include AllOtherVariants
- Regex: '.*'
Priority: 3
CaseSensitive: false
IndentExternBlock: Indent
IndentPPDirectives: AfterHash
IndentWidth: 4
InsertTrailingCommas: Wrapped
Standard: c++17
Language: Cpp
LambdaBodyIndentation: Signature
MaxEmptyLinesToKeep: 2
NamespaceIndentation: Inner
PenaltyBreakComment: 80
PenaltyBreakFirstLessLess: 80
PenaltyBreakString: 80
PenaltyBreakTemplateDeclaration: 80
PenaltyReturnTypeOnItsOwnLine: 41
PointerAlignment: Right
ReflowComments: true
SpaceAroundPointerQualifiers: Both
SpaceBeforeCpp11BracedList: true
SpaceBeforeCtorInitializerColon: true
SpaceBeforeCaseColon: false
SpaceBeforeInheritanceColon: true
SpaceBeforeRangeBasedForLoopColon: true
SpaceInEmptyBlock: true
SpacesInLineCommentPrefix:
Minimum: 1
Maximum: 8
SpacesBeforeTrailingComments: 4
SpacesInContainerLiterals: false
SpacesInCStyleCastParentheses: false
SpacesInConditionalStatement: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
StatementMacros:
- '_Pragma'
StatementAttributeLikeMacros:
- Q_UNUSED
- QT_REQUIRE_VERSION
TabWidth : 4
UseTab : Never
...