@@ -4,15 +4,16 @@ Standard: c++20
4
4
DisableFormat : false
5
5
AccessModifierOffset : -4
6
6
AlignAfterOpenBracket : AlwaysBreak
7
+ AlignArrayOfStructures : None
7
8
AlignConsecutiveAssignments : false
8
9
AlignConsecutiveBitFields : false
9
10
AlignConsecutiveDeclarations : false
10
11
AlignConsecutiveMacros : false
11
12
AlignEscapedNewlines : Right
12
- AlignOperands : DontAlign
13
- AlignTrailingComments : false
13
+ AlignOperands : Align
14
+ AlignTrailingComments :
15
+ Kind : Never
14
16
AllowAllArgumentsOnNextLine : false
15
- AllowAllConstructorInitializersOnNextLine : false
16
17
AllowAllParametersOfDeclarationOnNextLine : false
17
18
AllowShortBlocksOnASingleLine : Never
18
19
AllowShortCaseLabelsOnASingleLine : false
@@ -26,84 +27,139 @@ AlwaysBreakBeforeMultilineStrings: false
26
27
AlwaysBreakTemplateDeclarations : Yes
27
28
BinPackArguments : false
28
29
BinPackParameters : false
30
+ BitFieldColonSpacing : Both
31
+ BreakAfterAttributes : Never
29
32
BreakBeforeBinaryOperators : All
30
33
BreakBeforeBraces : Allman
34
+ BreakBeforeConceptDeclarations : Always
35
+ BreakBeforeInlineASMColon : OnlyMultiline
31
36
BreakBeforeTernaryOperators : true
32
37
BreakConstructorInitializers : BeforeComma
33
38
BreakInheritanceList : BeforeComma
34
39
BreakStringLiterals : true
35
40
ColumnLimit : 119
36
- CommentPragmas : " ^ COMMENT pragma:"
41
+ CommentPragmas : ' ^ COMMENT pragma:'
37
42
CompactNamespaces : false
38
- ConstructorInitializerAllOnOneLineOrOnePerLine : true
39
43
ConstructorInitializerIndentWidth : 4
40
44
ContinuationIndentWidth : 4
41
45
Cpp11BracedListStyle : true
42
- DeriveLineEnding : true
43
46
DerivePointerAlignment : false
47
+ EmptyLineAfterAccessModifier : Never
48
+ EmptyLineBeforeAccessModifier : Always
44
49
ExperimentalAutoDetectBinPacking : false
45
50
FixNamespaceComments : true
46
51
IncludeBlocks : Regroup
47
- IncludeIsMainRegex : " (Test)?$"
48
- IncludeIsMainSourceRegex : " "
52
+ IncludeIsMainRegex : ' (Test)?$'
53
+ IncludeIsMainSourceRegex : ' '
54
+ IndentAccessModifiers : false
49
55
IndentCaseBlocks : true
50
56
IndentCaseLabels : false
51
57
IndentExternBlock : AfterExternBlock
52
58
IndentGotoLabels : true
53
59
IndentPPDirectives : AfterHash
60
+ IndentRequiresClause : false
54
61
IndentWidth : 4
55
62
IndentWrappedFunctionNames : false
63
+ InsertBraces : false
64
+ InsertNewlineAtEOF : true
65
+ IntegerLiteralSeparator :
66
+ Binary : 4
67
+ Decimal : 3
68
+ DecimalMinDigits : 7
69
+ Hex : 4
56
70
KeepEmptyLinesAtTheStartOfBlocks : false
57
- MacroBlockBegin : " "
58
- MacroBlockEnd : " "
71
+ LambdaBodyIndentation : Signature
72
+ LineEnding : DeriveLF
73
+ MacroBlockBegin : ' '
74
+ MacroBlockEnd : ' '
59
75
MaxEmptyLinesToKeep : 2
60
76
NamespaceIndentation : All
77
+ PackConstructorInitializers : CurrentLine
61
78
PenaltyBreakAssignment : 2
62
79
PenaltyBreakBeforeFirstCallParameter : 19
63
80
PenaltyBreakComment : 300
64
81
PenaltyBreakFirstLessLess : 120
82
+ PenaltyBreakOpenParenthesis : 0 # default made explicit here
65
83
PenaltyBreakString : 1000
66
84
PenaltyBreakTemplateDeclaration : 10
67
85
PenaltyExcessCharacter : 1000000
86
+ PenaltyIndentedWhitespace : 0 # default made explicit here
68
87
PenaltyReturnTypeOnItsOwnLine : 1000
69
88
PointerAlignment : Left
89
+ PPIndentWidth : -1 # follow IndentWidth
90
+ QualifierAlignment : Custom
91
+ QualifierOrder : ['friend', 'static', 'inline', 'constexpr', 'type', 'const', 'volatile', 'restrict']
92
+ ReferenceAlignment : Pointer # follow PointerAlignment
70
93
ReflowComments : true
94
+ RemoveBracesLLVM : false
95
+ RemoveSemicolon : false
96
+ RequiresClausePosition : WithPreceding
97
+ RequiresExpressionIndentation : OuterScope
98
+ ShortNamespaceLines : 0
71
99
SortIncludes : true
72
- SortUsingDeclarations : true
100
+ SortUsingDeclarations : Lexicographic
101
+ SeparateDefinitionBlocks : Always
73
102
SpaceAfterCStyleCast : true
74
103
SpaceAfterLogicalNot : false
75
104
SpaceAfterTemplateKeyword : false
105
+ SpaceAroundPointerQualifiers : Default # follow PointerAlignment
76
106
SpaceBeforeAssignmentOperators : true
107
+ SpaceBeforeCaseColon : false
77
108
SpaceBeforeCpp11BracedList : false
78
109
SpaceBeforeCtorInitializerColon : true
79
110
SpaceBeforeInheritanceColon : true
80
111
SpaceBeforeParens : Never
81
112
SpaceBeforeRangeBasedForLoopColon : true
113
+ SpaceBeforeSquareBrackets : false
82
114
SpaceInEmptyBlock : false
83
115
SpaceInEmptyParentheses : false
84
116
SpacesBeforeTrailingComments : 1
85
117
SpacesInAngles : false
86
118
SpacesInConditionalStatement : false
87
119
SpacesInContainerLiterals : false
88
120
SpacesInCStyleCastParentheses : false
121
+ SpacesInLineCommentPrefix :
122
+ Minimum : 1
123
+ Maximum : -1
89
124
SpacesInParentheses : false
90
125
SpacesInSquareBrackets : false
91
- SpaceBeforeSquareBrackets : false
92
126
TabWidth : 4
93
127
UseCRLF : false
94
128
UseTab : Never
95
- # Project specific options -- uncomment and modify as needed
96
- # IncludeCategories:
97
- # - Regex: '^"(llvm|llvm-c|clang|clang-c)/'
98
- # Priority: 2
99
- # SortPriority: 0
100
- # - Regex: '^(<|"(gtest|gmock|isl|json)/)'
101
- # Priority: 3
102
- # SortPriority: 0
103
- # - Regex: '.*'
104
- # Priority: 1
105
- # SortPriority: 0
106
-
107
- # Future options - not supported in clang-format 11
108
- # BitFieldColonSpacing: Both
109
- # OperandAlignmentStyle: Align
129
+ # Project specific options
130
+ # AttributeMacros: []
131
+ # ForEachMacros: []
132
+ # IfMacros: []
133
+ IncludeCategories :
134
+ # Local headers (in "") above all else
135
+ - Regex : ' "([A-Za-z0-9.\/-_])+"'
136
+ Priority : 1
137
+ # "alpaka/foo.hpp" after local headers (occur inside alpaka)
138
+ - Regex : ' "alpaka/([A-Za-z0-9.\/-_])+"'
139
+ Priority : 2
140
+ # <alpaka/foo.hpp> after local headers (occur outside alpaka in examples and test)
141
+ - Regex : ' <alpaka/([A-Za-z0-9.\/-_])+>'
142
+ Priority : 3
143
+ # C++ standard library headers are the last group to be included
144
+ - Regex : ' <([A-Za-z0-9\/-_])+>'
145
+ Priority : 5
146
+ # Includes that made it this far are third-party headers and will be placed
147
+ # below alpaka's includes
148
+ - Regex : ' <([A-Za-z0-9.\/-_])+>'
149
+ Priority : 4
150
+ # Macros: []
151
+ # NamespaceMacros: []
152
+ StatementAttributeLikeMacros :
153
+ - ' ALPAKA_DEVICE_VOLATILE'
154
+ - ' ALPAKA_FN_ACC'
155
+ - ' ALPAKA_FN_EXTERN'
156
+ - ' ALPAKA_FN_HOST'
157
+ - ' ALPAKA_FN_HOST_ACC'
158
+ - ' ALPAKA_FN_INLINE'
159
+ - ' ALPAKA_STATIC_ACC_MEM_CONSTANT'
160
+ - ' ALPAKA_STATIC_ACC_MEM_GLOBAL'
161
+ - ' ALPAKA_UNROLL'
162
+ - ' ALPAKA_VECTORIZE_HINT'
163
+ # StatementMacros: []
164
+ # TypenameMacros: []
165
+ # WhitespaceSensitiveMacros: []
0 commit comments