Debian Codegraph @

src/.clang-format

raw
1
2 AlignAfterOpenBracket: Align
3 AlignConsecutiveMacros: Consecutive
4
5 AllowAllArgumentsOnNextLine: false
6 AllowShortCaseLabelsOnASingleLine: false
7 AllowShortFunctionsOnASingleLine: None
8
9 AlwaysBreakAfterReturnType: TopLevelDefinitions
10
11 BraceWrapping:
12 AfterControlStatement: Never
13 AfterEnum: false
14 AfterFunction: true
15 AfterStruct: false
16 BeforeElse: false
17 SplitEmptyFunction: true
18
19 BinPackArguments: true
20 BinPackParameters: true
21
22 BreakBeforeBraces: Custom
23
24 ColumnLimit: 0
25 PenaltyBreakBeforeFirstCallParameter: 1
26 PenaltyExcessCharacter: 100
27
28 ContinuationIndentWidth: 3
29 IndentWidth: 3
30 UseTab: Never
31
32 Cpp11BracedListStyle: true
33
34 SpaceAfterCStyleCast: false
35 SpaceBeforeCpp11BracedList: false
36 SpaceBeforeCtorInitializerColon: false
37 SpacesInContainerLiterals: false
38
39 PointerAlignment: Right
40
41 IncludeBlocks: Preserve
42 IncludeCategories:
43 - Regex: '<[[:alnum:].]+>'
44 Priority: 1
45 - Regex: '.*\/.*'
46 Priority: 2
47 - Regex: '.*'
48 Priority: 3
49
50 ForEachMacros:
51 # There is no way to extend ForEachMacros
52 # The issue tracker https://github.com/llvm/llvm-project/issues/84359
53 # util
54 - u_foreach_bit
55 - u_foreach_bit64
56
57 - u_vector_foreach
58
59 - BITSET_FOREACH_SET
60 - BITSET_FOREACH_RANGE
61
62 - hash_table_foreach
63 - hash_table_foreach_remove
64 - hash_table_u64_foreach
65
66 - rb_tree_foreach
67 - rb_tree_foreach_rev
68 - rb_tree_foreach_rev_safe
69 - rb_tree_foreach_safe
70 - uinterval_tree_foreach
71
72 - set_foreach
73 - set_foreach_remove
74
75 - util_dynarray_foreach
76 - util_dynarray_foreach_reverse
77
78 - util_idalloc_foreach
79
80 - LIST_FOR_EACH_ENTRY
81 - LIST_FOR_EACH_ENTRY_FROM
82 - LIST_FOR_EACH_ENTRY_FROM_REV
83 - LIST_FOR_EACH_ENTRY_SAFE
84 - LIST_FOR_EACH_ENTRY_SAFE_REV
85 - list_for_each_entry
86 - list_for_each_entry_from
87 - list_for_each_entry_from_rev
88 - list_for_each_entry_from_safe
89 - list_for_each_entry_rev
90 - list_for_each_entry_rev_safe
91 - list_for_each_entry_safe
92 - list_pair_for_each_entry
93
94 - foreach_in_list
95 - foreach_in_list_reverse
96 - foreach_in_list_reverse_safe
97 - foreach_in_list_safe
98 - foreach_in_list_use_after
99 - foreach_list_typed
100 - foreach_list_typed_from
101 - foreach_list_typed_reverse
102 - foreach_list_typed_reverse_safe
103 - foreach_list_typed_safe
104 - foreach_two_lists
105
106 - U_SPARSE_BITSET_FOREACH_SET
107
108 # nir
109 - nir_foreach_function_temp_variable
110 - nir_foreach_function_temp_variable_safe
111 - nir_foreach_image_variable
112 - nir_foreach_image_variable_safe
113 - nir_foreach_shader_in_variable
114 - nir_foreach_shader_in_variable_safe
115 - nir_foreach_shader_out_variable
116 - nir_foreach_shader_out_variable_safe
117 - nir_foreach_uniform_variable
118 - nir_foreach_uniform_variable_safe
119 - nir_foreach_variable
120 - nir_foreach_variable_in_list
121 - nir_foreach_variable_in_list_safe
122 - nir_foreach_variable_in_shader
123 - nir_foreach_variable_in_shader_safe
124 - nir_foreach_variable_safe
125 - nir_foreach_variable_with_modes
126 - nir_foreach_variable_with_modes_safe
127
128 - nir_foreach_reg_decl
129 - nir_foreach_reg_decl_safe
130 - nir_foreach_reg_load
131 - nir_foreach_reg_load_safe
132 - nir_foreach_reg_store
133 - nir_foreach_reg_store_safe
134
135 - nir_foreach_if_use
136 - nir_foreach_if_use_safe
137 - nir_foreach_use
138 - nir_foreach_use_including_if
139 - nir_foreach_use_including_if_safe
140 - nir_foreach_use_safe
141
142 - nir_foreach_phi_src
143 - nir_foreach_phi_src_safe
144
145 - nir_foreach_parallel_copy_entry
146
147 - nir_foreach_instr
148 - nir_foreach_instr_in_worklist
149 - nir_foreach_instr_reverse
150 - nir_foreach_instr_reverse_safe
151 - nir_foreach_instr_safe
152
153 - nir_foreach_phi
154 - nir_foreach_phi_safe
155
156 - nir_foreach_function
157 - nir_foreach_function_safe
158 - nir_foreach_function_with_impl
159
160 - nir_foreach_function_impl
161
162 - nir_foreach_entrypoint
163 - nir_foreach_entrypoint_safe
164
165 - nir_foreach_block_unstructured
166 - nir_foreach_block_unstructured_safe
167
168 - nir_foreach_block
169 - nir_foreach_block_in_cf_node
170 - nir_foreach_block_in_cf_node_reverse
171 - nir_foreach_block_reverse
172 - nir_foreach_block_reverse_safe
173 - nir_foreach_block_safe
174
175 - nir_precomp_foreach_arg
176 - nir_precomp_foreach_variant_param
177
178 - foreach_pair
179
180 # egl
181 - egl_relax
182
183 # wayland
184 - wl_list_for_each
185 - wl_list_for_each_safe
186 - wl_list_for_each_reverse
187 - wl_list_for_each_reverse_safe
188 - wl_array_for_each
189
190 # vulkan
191 - vk_foreach_queue
192 - vk_foreach_queue_safe
193
194 - vk_foreach_struct
195 - vk_foreach_struct_const
196
197 - vk_foreach_multi_draw
198 - vk_foreach_multi_draw_indexed
199
200 # asahi
201 - foreach_active
202 - foreach_submitted
203 - hk_foreach_view
204 - hk_foreach_variant
205 - AGX_BATCH_FOREACH_BO_HANDLE
206 - agx_pack
207 - agx_push
208 - agx_usc_pack
209 - agx_ppp_push
210 - agx_ppp_push_merged
211 - agx_foreach_block
212 - agx_foreach_block_safe
213 - agx_foreach_block_from
214 - agx_foreach_block_from_rev
215 - agx_foreach_block_rev
216 - agx_foreach_dest
217 - agx_foreach_dest_rev
218 - agx_foreach_instr_global
219 - agx_foreach_instr_global_rev
220 - agx_foreach_instr_global_safe
221 - agx_foreach_instr_global_safe_rev
222 - agx_foreach_instr_in_block
223 - agx_foreach_instr_in_block_from
224 - agx_foreach_instr_in_block_from_rev
225 - agx_foreach_instr_in_block_rev
226 - agx_foreach_instr_in_block_safe
227 - agx_foreach_instr_in_block_safe_rev
228 - agx_foreach_non_phi_in_block_rev
229 - agx_foreach_phi_in_block
230 - agx_foreach_phi_in_block_safe
231 - agx_foreach_predecessor
232 - agx_foreach_src
233 - agx_foreach_src_rev
234 - agx_foreach_ssa_dest
235 - agx_foreach_ssa_dest_rev
236 - agx_foreach_ssa_src
237 - agx_foreach_ssa_src_rev
238 - agx_foreach_reg_src
239 - agx_foreach_reg_dest
240 - agx_foreach_successor
241 - foreach_next_use
242
243 # poly
244 - poly_foreach_xfb
245
246 # radv
247 - PHASE
248 - radv_foreach_stage
249
250 # freedreno
251 - ir2_foreach_instr
252 - ir2_foreach_live_reg
253 - ir2_foreach_avail
254 - ir2_foreach_src
255 - foreach_batch
256 - perf_time
257 - perf_time_ctx
258 - foreach_sched_node
259 - foreach_src
260 - foreach_src_n
261 - foreach_src_if
262 - foreach_src_with_alias_n
263 - foreach_src_in_alias_group_n
264 - foreach_src_in_alias_group
265 - foreach_dst
266 - foreach_dst_n
267 - foreach_dst_if
268 - ra_foreach_dst
269 - ra_foreach_src
270 - ra_foreach_src_rev
271 - foreach_ssa_use
272 - foreach_ssa_srcp_n
273 - foreach_ssa_srcp
274 - foreach_ssa_src_n
275 - foreach_ssa_src
276 - foreach_input_n
277 - foreach_input
278 - foreach_instr
279 - foreach_instr_rev
280 - foreach_instr_safe
281 - foreach_instr_from
282 - foreach_instr_from_safe
283 - foreach_block
284 - foreach_block_safe
285 - foreach_block_rev
286 - foreach_array
287 - foreach_array_safe
288 - foreach_interval
289 - foreach_interval_safe
290 - foreach_interval_rev
291 - foreach_interval_rev_safe
292 - foreach_line_in_section
293 - foreach_submit
294 - foreach_submit_safe
295 - foreach_instr_rpt
296 - foreach_instr_rpt_excl
297 - foreach_instr_rpt_excl_safe
298 - foreach_bo
299 - foreach_bo_safe
300
301 # Disable clang formatting by default. Drivers that use clang-format
302 # inherit from this .clang-format file and re-enable formatting:
303 #
304 # DisableFormat: false
305 #
306 DisableFormat: true