]>
Commit | Line | Data |
---|---|---|
8fddaf36 JW |
1 | # SPDX-License-Identifier: GPL-2.0 |
2 | # | |
3 | # clang-format configuration file. Intended for clang-format >= 4. | |
4 | # | |
5 | # For more information, see: | |
6 | # | |
7 | # Documentation/process/clang-format.rst | |
8 | # https://clang.llvm.org/docs/ClangFormat.html | |
9 | # https://clang.llvm.org/docs/ClangFormatStyleOptions.html | |
10 | # | |
11 | ||
12 | # Buildroot: imported from Linux 5.15.6, with minimal modifications. | |
13 | # Please note, this is not enforced at the moment. Intended | |
14 | # as an aid when working with in-tree C files, like | |
15 | # makedevs.c | |
16 | # | |
17 | --- | |
18 | AccessModifierOffset: -4 | |
19 | AlignAfterOpenBracket: Align | |
20 | AlignConsecutiveAssignments: false | |
21 | AlignConsecutiveDeclarations: false | |
22 | #AlignEscapedNewlines: Left # Unknown to clang-format-4.0 | |
23 | AlignOperands: true | |
24 | AlignTrailingComments: false | |
25 | AllowAllParametersOfDeclarationOnNextLine: false | |
26 | AllowShortBlocksOnASingleLine: false | |
27 | AllowShortCaseLabelsOnASingleLine: false | |
28 | AllowShortFunctionsOnASingleLine: None | |
29 | AllowShortIfStatementsOnASingleLine: false | |
30 | AllowShortLoopsOnASingleLine: false | |
31 | AlwaysBreakAfterDefinitionReturnType: None | |
32 | AlwaysBreakAfterReturnType: None | |
33 | AlwaysBreakBeforeMultilineStrings: false | |
34 | AlwaysBreakTemplateDeclarations: false | |
35 | BinPackArguments: true | |
36 | BinPackParameters: true | |
37 | BraceWrapping: | |
38 | AfterClass: false | |
39 | AfterControlStatement: false | |
40 | AfterEnum: false | |
41 | AfterFunction: true | |
42 | AfterNamespace: true | |
43 | AfterObjCDeclaration: false | |
44 | AfterStruct: false | |
45 | AfterUnion: false | |
46 | #AfterExternBlock: false # Unknown to clang-format-5.0 | |
47 | BeforeCatch: false | |
48 | BeforeElse: false | |
49 | IndentBraces: false | |
50 | #SplitEmptyFunction: true # Unknown to clang-format-4.0 | |
51 | #SplitEmptyRecord: true # Unknown to clang-format-4.0 | |
52 | #SplitEmptyNamespace: true # Unknown to clang-format-4.0 | |
53 | BreakBeforeBinaryOperators: None | |
54 | BreakBeforeBraces: Custom | |
55 | #BreakBeforeInheritanceComma: false # Unknown to clang-format-4.0 | |
56 | BreakBeforeTernaryOperators: false | |
57 | BreakConstructorInitializersBeforeComma: false | |
58 | #BreakConstructorInitializers: BeforeComma # Unknown to clang-format-4.0 | |
59 | BreakAfterJavaFieldAnnotations: false | |
60 | BreakStringLiterals: false | |
61 | ColumnLimit: 132 # Specially for Buildroot | |
62 | CommentPragmas: '^ IWYU pragma:' | |
63 | #CompactNamespaces: false # Unknown to clang-format-4.0 | |
64 | ConstructorInitializerAllOnOneLineOrOnePerLine: false | |
65 | ConstructorInitializerIndentWidth: 8 | |
66 | ContinuationIndentWidth: 8 | |
67 | Cpp11BracedListStyle: false | |
68 | DerivePointerAlignment: false | |
69 | DisableFormat: false | |
70 | ExperimentalAutoDetectBinPacking: false | |
71 | #FixNamespaceComments: false # Unknown to clang-format-4.0 | |
72 | ||
73 | # Taken from: | |
74 | # git grep -h '^#define [^[:space:]]*for_each[^[:space:]]*(' include/ \ | |
75 | # | sed "s,^#define \([^[:space:]]*for_each[^[:space:]]*\)(.*$, - '\1'," \ | |
76 | # | sort | uniq | |
77 | ForEachMacros: | |
78 | - 'apei_estatus_for_each_section' | |
79 | - 'ata_for_each_dev' | |
80 | - 'ata_for_each_link' | |
81 | - '__ata_qc_for_each' | |
82 | - 'ata_qc_for_each' | |
83 | - 'ata_qc_for_each_raw' | |
84 | - 'ata_qc_for_each_with_internal' | |
85 | - 'ax25_for_each' | |
86 | - 'ax25_uid_for_each' | |
87 | - '__bio_for_each_bvec' | |
88 | - 'bio_for_each_bvec' | |
89 | - 'bio_for_each_bvec_all' | |
90 | - 'bio_for_each_integrity_vec' | |
91 | - '__bio_for_each_segment' | |
92 | - 'bio_for_each_segment' | |
93 | - 'bio_for_each_segment_all' | |
94 | - 'bio_list_for_each' | |
95 | - 'bip_for_each_vec' | |
96 | - 'bitmap_for_each_clear_region' | |
97 | - 'bitmap_for_each_set_region' | |
98 | - 'blkg_for_each_descendant_post' | |
99 | - 'blkg_for_each_descendant_pre' | |
100 | - 'blk_queue_for_each_rl' | |
101 | - 'bond_for_each_slave' | |
102 | - 'bond_for_each_slave_rcu' | |
103 | - 'bpf_for_each_spilled_reg' | |
104 | - 'btree_for_each_safe128' | |
105 | - 'btree_for_each_safe32' | |
106 | - 'btree_for_each_safe64' | |
107 | - 'btree_for_each_safel' | |
108 | - 'card_for_each_dev' | |
109 | - 'cgroup_taskset_for_each' | |
110 | - 'cgroup_taskset_for_each_leader' | |
111 | - 'cpufreq_for_each_entry' | |
112 | - 'cpufreq_for_each_entry_idx' | |
113 | - 'cpufreq_for_each_valid_entry' | |
114 | - 'cpufreq_for_each_valid_entry_idx' | |
115 | - 'css_for_each_child' | |
116 | - 'css_for_each_descendant_post' | |
117 | - 'css_for_each_descendant_pre' | |
118 | - 'device_for_each_child_node' | |
119 | - 'displayid_iter_for_each' | |
120 | - 'dma_fence_chain_for_each' | |
121 | - 'do_for_each_ftrace_op' | |
122 | - 'drm_atomic_crtc_for_each_plane' | |
123 | - 'drm_atomic_crtc_state_for_each_plane' | |
124 | - 'drm_atomic_crtc_state_for_each_plane_state' | |
125 | - 'drm_atomic_for_each_plane_damage' | |
126 | - 'drm_client_for_each_connector_iter' | |
127 | - 'drm_client_for_each_modeset' | |
128 | - 'drm_connector_for_each_possible_encoder' | |
129 | - 'drm_for_each_bridge_in_chain' | |
130 | - 'drm_for_each_connector_iter' | |
131 | - 'drm_for_each_crtc' | |
132 | - 'drm_for_each_crtc_reverse' | |
133 | - 'drm_for_each_encoder' | |
134 | - 'drm_for_each_encoder_mask' | |
135 | - 'drm_for_each_fb' | |
136 | - 'drm_for_each_legacy_plane' | |
137 | - 'drm_for_each_plane' | |
138 | - 'drm_for_each_plane_mask' | |
139 | - 'drm_for_each_privobj' | |
140 | - 'drm_mm_for_each_hole' | |
141 | - 'drm_mm_for_each_node' | |
142 | - 'drm_mm_for_each_node_in_range' | |
143 | - 'drm_mm_for_each_node_safe' | |
144 | - 'flow_action_for_each' | |
145 | - 'for_each_acpi_dev_match' | |
146 | - 'for_each_active_dev_scope' | |
147 | - 'for_each_active_drhd_unit' | |
148 | - 'for_each_active_iommu' | |
149 | - 'for_each_aggr_pgid' | |
150 | - 'for_each_available_child_of_node' | |
151 | - 'for_each_bio' | |
152 | - 'for_each_board_func_rsrc' | |
153 | - 'for_each_bvec' | |
154 | - 'for_each_card_auxs' | |
155 | - 'for_each_card_auxs_safe' | |
156 | - 'for_each_card_components' | |
157 | - 'for_each_card_dapms' | |
158 | - 'for_each_card_pre_auxs' | |
159 | - 'for_each_card_prelinks' | |
160 | - 'for_each_card_rtds' | |
161 | - 'for_each_card_rtds_safe' | |
162 | - 'for_each_card_widgets' | |
163 | - 'for_each_card_widgets_safe' | |
164 | - 'for_each_cgroup_storage_type' | |
165 | - 'for_each_child_of_node' | |
166 | - 'for_each_clear_bit' | |
167 | - 'for_each_clear_bit_from' | |
168 | - 'for_each_cmsghdr' | |
169 | - 'for_each_compatible_node' | |
170 | - 'for_each_component_dais' | |
171 | - 'for_each_component_dais_safe' | |
172 | - 'for_each_comp_order' | |
173 | - 'for_each_console' | |
174 | - 'for_each_cpu' | |
175 | - 'for_each_cpu_and' | |
176 | - 'for_each_cpu_not' | |
177 | - 'for_each_cpu_wrap' | |
178 | - 'for_each_dapm_widgets' | |
179 | - 'for_each_dev_addr' | |
180 | - 'for_each_dev_scope' | |
181 | - 'for_each_dma_cap_mask' | |
182 | - 'for_each_dpcm_be' | |
183 | - 'for_each_dpcm_be_rollback' | |
184 | - 'for_each_dpcm_be_safe' | |
185 | - 'for_each_dpcm_fe' | |
186 | - 'for_each_drhd_unit' | |
187 | - 'for_each_dss_dev' | |
188 | - 'for_each_dtpm_table' | |
189 | - 'for_each_efi_memory_desc' | |
190 | - 'for_each_efi_memory_desc_in_map' | |
191 | - 'for_each_element' | |
192 | - 'for_each_element_extid' | |
193 | - 'for_each_element_id' | |
194 | - 'for_each_endpoint_of_node' | |
195 | - 'for_each_evictable_lru' | |
196 | - 'for_each_fib6_node_rt_rcu' | |
197 | - 'for_each_fib6_walker_rt' | |
198 | - 'for_each_free_mem_pfn_range_in_zone' | |
199 | - 'for_each_free_mem_pfn_range_in_zone_from' | |
200 | - 'for_each_free_mem_range' | |
201 | - 'for_each_free_mem_range_reverse' | |
202 | - 'for_each_func_rsrc' | |
203 | - 'for_each_hstate' | |
204 | - 'for_each_if' | |
205 | - 'for_each_iommu' | |
206 | - 'for_each_ip_tunnel_rcu' | |
207 | - 'for_each_irq_nr' | |
208 | - 'for_each_link_codecs' | |
209 | - 'for_each_link_cpus' | |
210 | - 'for_each_link_platforms' | |
211 | - 'for_each_lru' | |
212 | - 'for_each_matching_node' | |
213 | - 'for_each_matching_node_and_match' | |
214 | - 'for_each_member' | |
215 | - 'for_each_memcg_cache_index' | |
216 | - 'for_each_mem_pfn_range' | |
217 | - '__for_each_mem_range' | |
218 | - 'for_each_mem_range' | |
219 | - '__for_each_mem_range_rev' | |
220 | - 'for_each_mem_range_rev' | |
221 | - 'for_each_mem_region' | |
222 | - 'for_each_migratetype_order' | |
223 | - 'for_each_msi_entry' | |
224 | - 'for_each_msi_entry_safe' | |
225 | - 'for_each_msi_vector' | |
226 | - 'for_each_net' | |
227 | - 'for_each_net_continue_reverse' | |
228 | - 'for_each_netdev' | |
229 | - 'for_each_netdev_continue' | |
230 | - 'for_each_netdev_continue_rcu' | |
231 | - 'for_each_netdev_continue_reverse' | |
232 | - 'for_each_netdev_feature' | |
233 | - 'for_each_netdev_in_bond_rcu' | |
234 | - 'for_each_netdev_rcu' | |
235 | - 'for_each_netdev_reverse' | |
236 | - 'for_each_netdev_safe' | |
237 | - 'for_each_net_rcu' | |
238 | - 'for_each_new_connector_in_state' | |
239 | - 'for_each_new_crtc_in_state' | |
240 | - 'for_each_new_mst_mgr_in_state' | |
241 | - 'for_each_new_plane_in_state' | |
242 | - 'for_each_new_private_obj_in_state' | |
243 | - 'for_each_node' | |
244 | - 'for_each_node_by_name' | |
245 | - 'for_each_node_by_type' | |
246 | - 'for_each_node_mask' | |
247 | - 'for_each_node_state' | |
248 | - 'for_each_node_with_cpus' | |
249 | - 'for_each_node_with_property' | |
250 | - 'for_each_nonreserved_multicast_dest_pgid' | |
251 | - 'for_each_of_allnodes' | |
252 | - 'for_each_of_allnodes_from' | |
253 | - 'for_each_of_cpu_node' | |
254 | - 'for_each_of_pci_range' | |
255 | - 'for_each_old_connector_in_state' | |
256 | - 'for_each_old_crtc_in_state' | |
257 | - 'for_each_old_mst_mgr_in_state' | |
258 | - 'for_each_oldnew_connector_in_state' | |
259 | - 'for_each_oldnew_crtc_in_state' | |
260 | - 'for_each_oldnew_mst_mgr_in_state' | |
261 | - 'for_each_oldnew_plane_in_state' | |
262 | - 'for_each_oldnew_plane_in_state_reverse' | |
263 | - 'for_each_oldnew_private_obj_in_state' | |
264 | - 'for_each_old_plane_in_state' | |
265 | - 'for_each_old_private_obj_in_state' | |
266 | - 'for_each_online_cpu' | |
267 | - 'for_each_online_node' | |
268 | - 'for_each_online_pgdat' | |
269 | - 'for_each_pci_bridge' | |
270 | - 'for_each_pci_dev' | |
271 | - 'for_each_pci_msi_entry' | |
272 | - 'for_each_pcm_streams' | |
273 | - 'for_each_physmem_range' | |
274 | - 'for_each_populated_zone' | |
275 | - 'for_each_possible_cpu' | |
276 | - 'for_each_present_cpu' | |
277 | - 'for_each_prime_number' | |
278 | - 'for_each_prime_number_from' | |
279 | - 'for_each_process' | |
280 | - 'for_each_process_thread' | |
281 | - 'for_each_prop_codec_conf' | |
282 | - 'for_each_prop_dai_codec' | |
283 | - 'for_each_prop_dai_cpu' | |
284 | - 'for_each_prop_dlc_codecs' | |
285 | - 'for_each_prop_dlc_cpus' | |
286 | - 'for_each_prop_dlc_platforms' | |
287 | - 'for_each_property_of_node' | |
288 | - 'for_each_registered_fb' | |
289 | - 'for_each_requested_gpio' | |
290 | - 'for_each_requested_gpio_in_range' | |
291 | - 'for_each_reserved_mem_range' | |
292 | - 'for_each_reserved_mem_region' | |
293 | - 'for_each_rtd_codec_dais' | |
294 | - 'for_each_rtd_components' | |
295 | - 'for_each_rtd_cpu_dais' | |
296 | - 'for_each_rtd_dais' | |
297 | - 'for_each_set_bit' | |
298 | - 'for_each_set_bit_from' | |
299 | - 'for_each_set_clump8' | |
300 | - 'for_each_sg' | |
301 | - 'for_each_sg_dma_page' | |
302 | - 'for_each_sg_page' | |
303 | - 'for_each_sgtable_dma_page' | |
304 | - 'for_each_sgtable_dma_sg' | |
305 | - 'for_each_sgtable_page' | |
306 | - 'for_each_sgtable_sg' | |
307 | - 'for_each_sibling_event' | |
308 | - 'for_each_subelement' | |
309 | - 'for_each_subelement_extid' | |
310 | - 'for_each_subelement_id' | |
311 | - '__for_each_thread' | |
312 | - 'for_each_thread' | |
313 | - 'for_each_unicast_dest_pgid' | |
314 | - 'for_each_vsi' | |
315 | - 'for_each_wakeup_source' | |
316 | - 'for_each_zone' | |
317 | - 'for_each_zone_zonelist' | |
318 | - 'for_each_zone_zonelist_nodemask' | |
319 | - 'fwnode_for_each_available_child_node' | |
320 | - 'fwnode_for_each_child_node' | |
321 | - 'fwnode_graph_for_each_endpoint' | |
322 | - 'gadget_for_each_ep' | |
323 | - 'genradix_for_each' | |
324 | - 'genradix_for_each_from' | |
325 | - 'hash_for_each' | |
326 | - 'hash_for_each_possible' | |
327 | - 'hash_for_each_possible_rcu' | |
328 | - 'hash_for_each_possible_rcu_notrace' | |
329 | - 'hash_for_each_possible_safe' | |
330 | - 'hash_for_each_rcu' | |
331 | - 'hash_for_each_safe' | |
332 | - 'hctx_for_each_ctx' | |
333 | - 'hlist_bl_for_each_entry' | |
334 | - 'hlist_bl_for_each_entry_rcu' | |
335 | - 'hlist_bl_for_each_entry_safe' | |
336 | - 'hlist_for_each' | |
337 | - 'hlist_for_each_entry' | |
338 | - 'hlist_for_each_entry_continue' | |
339 | - 'hlist_for_each_entry_continue_rcu' | |
340 | - 'hlist_for_each_entry_continue_rcu_bh' | |
341 | - 'hlist_for_each_entry_from' | |
342 | - 'hlist_for_each_entry_from_rcu' | |
343 | - 'hlist_for_each_entry_rcu' | |
344 | - 'hlist_for_each_entry_rcu_bh' | |
345 | - 'hlist_for_each_entry_rcu_notrace' | |
346 | - 'hlist_for_each_entry_safe' | |
347 | - 'hlist_for_each_entry_srcu' | |
348 | - '__hlist_for_each_rcu' | |
349 | - 'hlist_for_each_safe' | |
350 | - 'hlist_nulls_for_each_entry' | |
351 | - 'hlist_nulls_for_each_entry_from' | |
352 | - 'hlist_nulls_for_each_entry_rcu' | |
353 | - 'hlist_nulls_for_each_entry_safe' | |
354 | - 'i3c_bus_for_each_i2cdev' | |
355 | - 'i3c_bus_for_each_i3cdev' | |
356 | - 'ide_host_for_each_port' | |
357 | - 'ide_port_for_each_dev' | |
358 | - 'ide_port_for_each_present_dev' | |
359 | - 'idr_for_each_entry' | |
360 | - 'idr_for_each_entry_continue' | |
361 | - 'idr_for_each_entry_continue_ul' | |
362 | - 'idr_for_each_entry_ul' | |
363 | - 'in_dev_for_each_ifa_rcu' | |
364 | - 'in_dev_for_each_ifa_rtnl' | |
365 | - 'inet_bind_bucket_for_each' | |
366 | - 'inet_lhash2_for_each_icsk_rcu' | |
367 | - 'key_for_each' | |
368 | - 'key_for_each_safe' | |
369 | - 'klp_for_each_func' | |
370 | - 'klp_for_each_func_safe' | |
371 | - 'klp_for_each_func_static' | |
372 | - 'klp_for_each_object' | |
373 | - 'klp_for_each_object_safe' | |
374 | - 'klp_for_each_object_static' | |
375 | - 'kunit_suite_for_each_test_case' | |
376 | - 'kvm_for_each_memslot' | |
377 | - 'kvm_for_each_vcpu' | |
378 | - 'list_for_each' | |
379 | - 'list_for_each_codec' | |
380 | - 'list_for_each_codec_safe' | |
381 | - 'list_for_each_continue' | |
382 | - 'list_for_each_entry' | |
383 | - 'list_for_each_entry_continue' | |
384 | - 'list_for_each_entry_continue_rcu' | |
385 | - 'list_for_each_entry_continue_reverse' | |
386 | - 'list_for_each_entry_from' | |
387 | - 'list_for_each_entry_from_rcu' | |
388 | - 'list_for_each_entry_from_reverse' | |
389 | - 'list_for_each_entry_lockless' | |
390 | - 'list_for_each_entry_rcu' | |
391 | - 'list_for_each_entry_reverse' | |
392 | - 'list_for_each_entry_safe' | |
393 | - 'list_for_each_entry_safe_continue' | |
394 | - 'list_for_each_entry_safe_from' | |
395 | - 'list_for_each_entry_safe_reverse' | |
396 | - 'list_for_each_entry_srcu' | |
397 | - 'list_for_each_prev' | |
398 | - 'list_for_each_prev_safe' | |
399 | - 'list_for_each_safe' | |
400 | - 'llist_for_each' | |
401 | - 'llist_for_each_entry' | |
402 | - 'llist_for_each_entry_safe' | |
403 | - 'llist_for_each_safe' | |
404 | - 'mci_for_each_dimm' | |
405 | - 'media_device_for_each_entity' | |
406 | - 'media_device_for_each_intf' | |
407 | - 'media_device_for_each_link' | |
408 | - 'media_device_for_each_pad' | |
409 | - 'nanddev_io_for_each_page' | |
410 | - 'netdev_for_each_lower_dev' | |
411 | - 'netdev_for_each_lower_private' | |
412 | - 'netdev_for_each_lower_private_rcu' | |
413 | - 'netdev_for_each_mc_addr' | |
414 | - 'netdev_for_each_uc_addr' | |
415 | - 'netdev_for_each_upper_dev_rcu' | |
416 | - 'netdev_hw_addr_list_for_each' | |
417 | - 'nft_rule_for_each_expr' | |
418 | - 'nla_for_each_attr' | |
419 | - 'nla_for_each_nested' | |
420 | - 'nlmsg_for_each_attr' | |
421 | - 'nlmsg_for_each_msg' | |
422 | - 'nr_neigh_for_each' | |
423 | - 'nr_neigh_for_each_safe' | |
424 | - 'nr_node_for_each' | |
425 | - 'nr_node_for_each_safe' | |
426 | - 'of_for_each_phandle' | |
427 | - 'of_property_for_each_string' | |
428 | - 'of_property_for_each_u32' | |
429 | - 'pci_bus_for_each_resource' | |
430 | - 'pcl_for_each_chunk' | |
431 | - 'pcl_for_each_segment' | |
432 | - 'pcm_for_each_format' | |
433 | - 'ping_portaddr_for_each_entry' | |
434 | - 'plist_for_each' | |
435 | - 'plist_for_each_continue' | |
436 | - 'plist_for_each_entry' | |
437 | - 'plist_for_each_entry_continue' | |
438 | - 'plist_for_each_entry_safe' | |
439 | - 'plist_for_each_safe' | |
440 | - 'pnp_for_each_card' | |
441 | - 'pnp_for_each_dev' | |
442 | - 'protocol_for_each_card' | |
443 | - 'protocol_for_each_dev' | |
444 | - 'queue_for_each_hw_ctx' | |
445 | - 'radix_tree_for_each_slot' | |
446 | - 'radix_tree_for_each_tagged' | |
447 | - 'rb_for_each' | |
448 | - 'rbtree_postorder_for_each_entry_safe' | |
449 | - 'rdma_for_each_block' | |
450 | - 'rdma_for_each_port' | |
451 | - 'rdma_umem_for_each_dma_block' | |
452 | - 'resource_list_for_each_entry' | |
453 | - 'resource_list_for_each_entry_safe' | |
454 | - 'rhl_for_each_entry_rcu' | |
455 | - 'rhl_for_each_rcu' | |
456 | - 'rht_for_each' | |
457 | - 'rht_for_each_entry' | |
458 | - 'rht_for_each_entry_from' | |
459 | - 'rht_for_each_entry_rcu' | |
460 | - 'rht_for_each_entry_rcu_from' | |
461 | - 'rht_for_each_entry_safe' | |
462 | - 'rht_for_each_from' | |
463 | - 'rht_for_each_rcu' | |
464 | - 'rht_for_each_rcu_from' | |
465 | - '__rq_for_each_bio' | |
466 | - 'rq_for_each_bvec' | |
467 | - 'rq_for_each_segment' | |
468 | - 'scsi_for_each_prot_sg' | |
469 | - 'scsi_for_each_sg' | |
470 | - 'sctp_for_each_hentry' | |
471 | - 'sctp_skb_for_each' | |
472 | - 'shdma_for_each_chan' | |
473 | - '__shost_for_each_device' | |
474 | - 'shost_for_each_device' | |
475 | - 'sk_for_each' | |
476 | - 'sk_for_each_bound' | |
477 | - 'sk_for_each_entry_offset_rcu' | |
478 | - 'sk_for_each_from' | |
479 | - 'sk_for_each_rcu' | |
480 | - 'sk_for_each_safe' | |
481 | - 'sk_nulls_for_each' | |
482 | - 'sk_nulls_for_each_from' | |
483 | - 'sk_nulls_for_each_rcu' | |
484 | - 'snd_array_for_each' | |
485 | - 'snd_pcm_group_for_each_entry' | |
486 | - 'snd_soc_dapm_widget_for_each_path' | |
487 | - 'snd_soc_dapm_widget_for_each_path_safe' | |
488 | - 'snd_soc_dapm_widget_for_each_sink_path' | |
489 | - 'snd_soc_dapm_widget_for_each_source_path' | |
490 | - 'tb_property_for_each' | |
491 | - 'tcf_exts_for_each_action' | |
492 | - 'udp_portaddr_for_each_entry' | |
493 | - 'udp_portaddr_for_each_entry_rcu' | |
494 | - 'usb_hub_for_each_child' | |
495 | - 'v4l2_device_for_each_subdev' | |
496 | - 'v4l2_m2m_for_each_dst_buf' | |
497 | - 'v4l2_m2m_for_each_dst_buf_safe' | |
498 | - 'v4l2_m2m_for_each_src_buf' | |
499 | - 'v4l2_m2m_for_each_src_buf_safe' | |
500 | - 'virtio_device_for_each_vq' | |
501 | - 'while_for_each_ftrace_op' | |
502 | - 'xa_for_each' | |
503 | - 'xa_for_each_marked' | |
504 | - 'xa_for_each_range' | |
505 | - 'xa_for_each_start' | |
506 | - 'xas_for_each' | |
507 | - 'xas_for_each_conflict' | |
508 | - 'xas_for_each_marked' | |
509 | - 'xbc_array_for_each_value' | |
510 | - 'xbc_for_each_key_value' | |
511 | - 'xbc_node_for_each_array_value' | |
512 | - 'xbc_node_for_each_child' | |
513 | - 'xbc_node_for_each_key_value' | |
514 | - 'zorro_for_each_dev' | |
515 | ||
516 | #IncludeBlocks: Preserve # Unknown to clang-format-5.0 | |
517 | IncludeCategories: | |
518 | - Regex: '.*' | |
519 | Priority: 1 | |
520 | IncludeIsMainRegex: '(Test)?$' | |
521 | IndentCaseLabels: false | |
522 | #IndentPPDirectives: None # Unknown to clang-format-5.0 | |
523 | IndentWidth: 8 | |
524 | IndentWrappedFunctionNames: false | |
525 | JavaScriptQuotes: Leave | |
526 | JavaScriptWrapImports: true | |
527 | KeepEmptyLinesAtTheStartOfBlocks: false | |
528 | MacroBlockBegin: '' | |
529 | MacroBlockEnd: '' | |
530 | MaxEmptyLinesToKeep: 1 | |
531 | NamespaceIndentation: None | |
532 | #ObjCBinPackProtocolList: Auto # Unknown to clang-format-5.0 | |
533 | ObjCBlockIndentWidth: 8 | |
534 | ObjCSpaceAfterProperty: true | |
535 | ObjCSpaceBeforeProtocolList: true | |
536 | ||
537 | # Taken from git's rules | |
538 | #PenaltyBreakAssignment: 10 # Unknown to clang-format-4.0 | |
539 | PenaltyBreakBeforeFirstCallParameter: 30 | |
540 | PenaltyBreakComment: 10 | |
541 | PenaltyBreakFirstLessLess: 0 | |
542 | PenaltyBreakString: 10 | |
543 | PenaltyExcessCharacter: 100 | |
544 | PenaltyReturnTypeOnItsOwnLine: 60 | |
545 | ||
546 | PointerAlignment: Right | |
547 | ReflowComments: false | |
548 | SortIncludes: false | |
549 | #SortUsingDeclarations: false # Unknown to clang-format-4.0 | |
550 | SpaceAfterCStyleCast: false | |
551 | SpaceAfterTemplateKeyword: true | |
552 | SpaceBeforeAssignmentOperators: true | |
553 | #SpaceBeforeCtorInitializerColon: true # Unknown to clang-format-5.0 | |
554 | #SpaceBeforeInheritanceColon: true # Unknown to clang-format-5.0 | |
555 | SpaceBeforeParens: ControlStatements | |
556 | #SpaceBeforeRangeBasedForLoopColon: true # Unknown to clang-format-5.0 | |
557 | SpaceInEmptyParentheses: false | |
558 | SpacesBeforeTrailingComments: 1 | |
559 | SpacesInAngles: false | |
560 | SpacesInContainerLiterals: false | |
561 | SpacesInCStyleCastParentheses: false | |
562 | SpacesInParentheses: false | |
563 | SpacesInSquareBrackets: false | |
564 | Standard: Cpp03 | |
565 | TabWidth: 8 | |
566 | UseTab: Always | |
567 | ... |