-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.clang-format
168 lines (167 loc) · 4.25 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
BasedOnStyle: LLVM
DisableFormat: false
AccessModifierOffset: -4
AlignAfterOpenBracket: Align
AlignArrayOfStructures: Left
AlignConsecutiveMacros: None
AlignEscapedNewlines: Left
AlignOperands: Align
AlignTrailingComments: true
AllowAllArgumentsOnNextLine: true
AllowAllConstructorInitializersOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: Always
AllowShortCaseLabelsOnASingleLine: false
AllowShortEnumsOnASingleLine: true
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: WithoutElse
AllowShortLambdasOnASingleLine: All
AllowShortLoopsOnASingleLine: true
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: true
BinPackParameters: true
BitFieldColonSpacing: Both
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Attach
BreakBeforeConceptDeclarations: true
BreakBeforeTernaryOperators: false
BreakConstructorInitializers: AfterColon
BreakInheritanceList: AfterComma
BreakStringLiterals: true
ColumnLimit: 0
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DeriveLineEnding: true
DerivePointerAlignment: false
EmptyLineAfterAccessModifier: Never
EmptyLineBeforeAccessModifier: LogicalBlock
FixNamespaceComments: true
IncludeBlocks: Regroup
IncludeCategories:
# special
- Regex: '"Randomize\.hh"'
Priority: 4
CaseSensitive: true
- Regex: '"globals\.hh"'
Priority: 4
CaseSensitive: true
# general
- Regex: '"Mustard/.*\.h.*"'
Priority: 0
CaseSensitive: true
- Regex: '"CLHEP/.*"'
Priority: 2
CaseSensitive: true
- Regex: '"ROOT/.*"'
Priority: 3
CaseSensitive: true
- Regex: '"R.*\.hxx"'
Priority: 3
CaseSensitive: true
- Regex: '"R.*\.h"'
Priority: 3
CaseSensitive: true
- Regex: '".*/T.*\.h"'
Priority: 3
CaseSensitive: true
- Regex: '"T.*\.h"'
Priority: 3
CaseSensitive: true
- Regex: '"G4.*"'
Priority: 4
CaseSensitive: true
- Regex: '"backward\.hpp"'
Priority: 5
CaseSensitive: true
- Regex: '"yaml-cpp/.*"'
Priority: 6
CaseSensitive: true
- Regex: '"indicators/.*"'
Priority: 7
CaseSensitive: true
- Regex: '"argparse/.*"'
Priority: 8
CaseSensitive: true
- Regex: '"Eigen/.*"'
Priority: 9
CaseSensitive: true
- Regex: '"gsl.*\.h"'
Priority: 10
CaseSensitive: true
- Regex: '"mpi.*\.h"'
Priority: 11
CaseSensitive: true
- Regex: '"muc/.*"'
Priority: 12
CaseSensitive: true
- Regex: '"envparse/.*"'
Priority: 13
CaseSensitive: true
- Regex: '"gsl/.*"'
Priority: 14
CaseSensitive: true
- Regex: '"fmt/.*\.h"'
Priority: 15
CaseSensitive: true
# very general
- Regex: '".*"'
Priority: 1
CaseSensitive: true
- Regex: '<.*>'
Priority: 16
CaseSensitive: true
IndentAccessModifiers: false
IndentCaseBlocks: false
IndentCaseLabels: false
IndentExternBlock: AfterExternBlock
IndentGotoLabels: false
IndentPPDirectives: AfterHash
IndentRequires: true
IndentWidth: 4
IndentWrappedFunctionNames: false
KeepEmptyLinesAtTheStartOfBlocks: true
LambdaBodyIndentation: Signature
Language: Cpp
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
PPIndentWidth: -1
PackConstructorInitializers: Never
PointerAlignment: Left
ReferenceAlignment: Left
ReflowComments: true
SeparateDefinitionBlocks: Leave
ShortNamespaceLines: 0
SortIncludes: CaseSensitive
SortUsingDeclarations: true
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: false
SpaceAroundPointerQualifiers: Default
SpaceBeforeAssignmentOperators: true
SpaceBeforeCaseColon: false
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: true
SpaceBeforeSquareBrackets: false
SpaceInEmptyBlock: false
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: Never
SpacesInCStyleCastParentheses: false
SpacesInConditionalStatement: false
SpacesInContainerLiterals: false
SpacesInLineCommentPrefix:
Minimum: 1
Maximum: 1
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: Latest
TabWidth: 4
UseTab: Never