Merge tag 'integrity-v6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/zohar...
[platform/kernel/linux-rpi.git] / .clang-format
1 # SPDX-License-Identifier: GPL-2.0
2 #
3 # clang-format configuration file. Intended for clang-format >= 11.
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 AccessModifierOffset: -4
13 AlignAfterOpenBracket: Align
14 AlignConsecutiveAssignments: false
15 AlignConsecutiveDeclarations: false
16 AlignEscapedNewlines: Left
17 AlignOperands: true
18 AlignTrailingComments: false
19 AllowAllParametersOfDeclarationOnNextLine: false
20 AllowShortBlocksOnASingleLine: false
21 AllowShortCaseLabelsOnASingleLine: false
22 AllowShortFunctionsOnASingleLine: None
23 AllowShortIfStatementsOnASingleLine: false
24 AllowShortLoopsOnASingleLine: false
25 AlwaysBreakAfterDefinitionReturnType: None
26 AlwaysBreakAfterReturnType: None
27 AlwaysBreakBeforeMultilineStrings: false
28 AlwaysBreakTemplateDeclarations: false
29 BinPackArguments: true
30 BinPackParameters: true
31 BraceWrapping:
32   AfterClass: false
33   AfterControlStatement: false
34   AfterEnum: false
35   AfterFunction: true
36   AfterNamespace: true
37   AfterObjCDeclaration: false
38   AfterStruct: false
39   AfterUnion: false
40   AfterExternBlock: false
41   BeforeCatch: false
42   BeforeElse: false
43   IndentBraces: false
44   SplitEmptyFunction: true
45   SplitEmptyRecord: true
46   SplitEmptyNamespace: true
47 BreakBeforeBinaryOperators: None
48 BreakBeforeBraces: Custom
49 BreakBeforeInheritanceComma: false
50 BreakBeforeTernaryOperators: false
51 BreakConstructorInitializersBeforeComma: false
52 BreakConstructorInitializers: BeforeComma
53 BreakAfterJavaFieldAnnotations: false
54 BreakStringLiterals: false
55 ColumnLimit: 80
56 CommentPragmas: '^ IWYU pragma:'
57 CompactNamespaces: false
58 ConstructorInitializerAllOnOneLineOrOnePerLine: false
59 ConstructorInitializerIndentWidth: 8
60 ContinuationIndentWidth: 8
61 Cpp11BracedListStyle: false
62 DerivePointerAlignment: false
63 DisableFormat: false
64 ExperimentalAutoDetectBinPacking: false
65 FixNamespaceComments: false
66
67 # Taken from:
68 #   git grep -h '^#define [^[:space:]]*for_each[^[:space:]]*(' include/ tools/ \
69 #   | sed "s,^#define \([^[:space:]]*for_each[^[:space:]]*\)(.*$,  - '\1'," \
70 #   | LC_ALL=C sort -u
71 ForEachMacros:
72   - '__ata_qc_for_each'
73   - '__bio_for_each_bvec'
74   - '__bio_for_each_segment'
75   - '__evlist__for_each_entry'
76   - '__evlist__for_each_entry_continue'
77   - '__evlist__for_each_entry_from'
78   - '__evlist__for_each_entry_reverse'
79   - '__evlist__for_each_entry_safe'
80   - '__for_each_mem_range'
81   - '__for_each_mem_range_rev'
82   - '__for_each_thread'
83   - '__hlist_for_each_rcu'
84   - '__map__for_each_symbol_by_name'
85   - '__perf_evlist__for_each_entry'
86   - '__perf_evlist__for_each_entry_reverse'
87   - '__perf_evlist__for_each_entry_safe'
88   - '__rq_for_each_bio'
89   - '__shost_for_each_device'
90   - 'apei_estatus_for_each_section'
91   - 'ata_for_each_dev'
92   - 'ata_for_each_link'
93   - 'ata_qc_for_each'
94   - 'ata_qc_for_each_raw'
95   - 'ata_qc_for_each_with_internal'
96   - 'ax25_for_each'
97   - 'ax25_uid_for_each'
98   - 'bio_for_each_bvec'
99   - 'bio_for_each_bvec_all'
100   - 'bio_for_each_folio_all'
101   - 'bio_for_each_integrity_vec'
102   - 'bio_for_each_segment'
103   - 'bio_for_each_segment_all'
104   - 'bio_list_for_each'
105   - 'bip_for_each_vec'
106   - 'bond_for_each_slave'
107   - 'bond_for_each_slave_rcu'
108   - 'bpf__perf_for_each_map'
109   - 'bpf__perf_for_each_map_named'
110   - 'bpf_for_each_spilled_reg'
111   - 'bpf_object__for_each_map'
112   - 'bpf_object__for_each_program'
113   - 'bpf_object__for_each_safe'
114   - 'bpf_perf_object__for_each'
115   - 'btree_for_each_safe128'
116   - 'btree_for_each_safe32'
117   - 'btree_for_each_safe64'
118   - 'btree_for_each_safel'
119   - 'card_for_each_dev'
120   - 'cgroup_taskset_for_each'
121   - 'cgroup_taskset_for_each_leader'
122   - 'cpufreq_for_each_efficient_entry_idx'
123   - 'cpufreq_for_each_entry'
124   - 'cpufreq_for_each_entry_idx'
125   - 'cpufreq_for_each_valid_entry'
126   - 'cpufreq_for_each_valid_entry_idx'
127   - 'css_for_each_child'
128   - 'css_for_each_descendant_post'
129   - 'css_for_each_descendant_pre'
130   - 'damon_for_each_region'
131   - 'damon_for_each_region_safe'
132   - 'damon_for_each_scheme'
133   - 'damon_for_each_scheme_safe'
134   - 'damon_for_each_target'
135   - 'damon_for_each_target_safe'
136   - 'data__for_each_file'
137   - 'data__for_each_file_new'
138   - 'data__for_each_file_start'
139   - 'device_for_each_child_node'
140   - 'displayid_iter_for_each'
141   - 'dma_fence_array_for_each'
142   - 'dma_fence_chain_for_each'
143   - 'dma_fence_unwrap_for_each'
144   - 'dma_resv_for_each_fence'
145   - 'dma_resv_for_each_fence_unlocked'
146   - 'do_for_each_ftrace_op'
147   - 'drm_atomic_crtc_for_each_plane'
148   - 'drm_atomic_crtc_state_for_each_plane'
149   - 'drm_atomic_crtc_state_for_each_plane_state'
150   - 'drm_atomic_for_each_plane_damage'
151   - 'drm_client_for_each_connector_iter'
152   - 'drm_client_for_each_modeset'
153   - 'drm_connector_for_each_possible_encoder'
154   - 'drm_for_each_bridge_in_chain'
155   - 'drm_for_each_connector_iter'
156   - 'drm_for_each_crtc'
157   - 'drm_for_each_crtc_reverse'
158   - 'drm_for_each_encoder'
159   - 'drm_for_each_encoder_mask'
160   - 'drm_for_each_fb'
161   - 'drm_for_each_legacy_plane'
162   - 'drm_for_each_plane'
163   - 'drm_for_each_plane_mask'
164   - 'drm_for_each_privobj'
165   - 'drm_mm_for_each_hole'
166   - 'drm_mm_for_each_node'
167   - 'drm_mm_for_each_node_in_range'
168   - 'drm_mm_for_each_node_safe'
169   - 'dsa_switch_for_each_available_port'
170   - 'dsa_switch_for_each_cpu_port'
171   - 'dsa_switch_for_each_port'
172   - 'dsa_switch_for_each_port_continue_reverse'
173   - 'dsa_switch_for_each_port_safe'
174   - 'dsa_switch_for_each_user_port'
175   - 'dsa_tree_for_each_user_port'
176   - 'dso__for_each_symbol'
177   - 'dsos__for_each_with_build_id'
178   - 'elf_hash_for_each_possible'
179   - 'elf_section__for_each_rel'
180   - 'elf_section__for_each_rela'
181   - 'elf_symtab__for_each_symbol'
182   - 'evlist__for_each_cpu'
183   - 'evlist__for_each_entry'
184   - 'evlist__for_each_entry_continue'
185   - 'evlist__for_each_entry_from'
186   - 'evlist__for_each_entry_reverse'
187   - 'evlist__for_each_entry_safe'
188   - 'flow_action_for_each'
189   - 'for_each_acpi_dev_match'
190   - 'for_each_active_dev_scope'
191   - 'for_each_active_drhd_unit'
192   - 'for_each_active_iommu'
193   - 'for_each_aggr_pgid'
194   - 'for_each_available_child_of_node'
195   - 'for_each_bench'
196   - 'for_each_bio'
197   - 'for_each_board_func_rsrc'
198   - 'for_each_btf_ext_rec'
199   - 'for_each_btf_ext_sec'
200   - 'for_each_bvec'
201   - 'for_each_card_auxs'
202   - 'for_each_card_auxs_safe'
203   - 'for_each_card_components'
204   - 'for_each_card_dapms'
205   - 'for_each_card_pre_auxs'
206   - 'for_each_card_prelinks'
207   - 'for_each_card_rtds'
208   - 'for_each_card_rtds_safe'
209   - 'for_each_card_widgets'
210   - 'for_each_card_widgets_safe'
211   - 'for_each_cgroup_storage_type'
212   - 'for_each_child_of_node'
213   - 'for_each_clear_bit'
214   - 'for_each_clear_bit_from'
215   - 'for_each_clear_bitrange'
216   - 'for_each_clear_bitrange_from'
217   - 'for_each_cmd'
218   - 'for_each_cmsghdr'
219   - 'for_each_collection'
220   - 'for_each_comp_order'
221   - 'for_each_compatible_node'
222   - 'for_each_component_dais'
223   - 'for_each_component_dais_safe'
224   - 'for_each_console'
225   - 'for_each_console_srcu'
226   - 'for_each_cpu'
227   - 'for_each_cpu_and'
228   - 'for_each_cpu_not'
229   - 'for_each_cpu_wrap'
230   - 'for_each_dapm_widgets'
231   - 'for_each_dedup_cand'
232   - 'for_each_dev_addr'
233   - 'for_each_dev_scope'
234   - 'for_each_dma_cap_mask'
235   - 'for_each_dpcm_be'
236   - 'for_each_dpcm_be_rollback'
237   - 'for_each_dpcm_be_safe'
238   - 'for_each_dpcm_fe'
239   - 'for_each_drhd_unit'
240   - 'for_each_dss_dev'
241   - 'for_each_efi_memory_desc'
242   - 'for_each_efi_memory_desc_in_map'
243   - 'for_each_element'
244   - 'for_each_element_extid'
245   - 'for_each_element_id'
246   - 'for_each_endpoint_of_node'
247   - 'for_each_event'
248   - 'for_each_event_tps'
249   - 'for_each_evictable_lru'
250   - 'for_each_fib6_node_rt_rcu'
251   - 'for_each_fib6_walker_rt'
252   - 'for_each_free_mem_pfn_range_in_zone'
253   - 'for_each_free_mem_pfn_range_in_zone_from'
254   - 'for_each_free_mem_range'
255   - 'for_each_free_mem_range_reverse'
256   - 'for_each_func_rsrc'
257   - 'for_each_group_evsel'
258   - 'for_each_group_member'
259   - 'for_each_hstate'
260   - 'for_each_if'
261   - 'for_each_inject_fn'
262   - 'for_each_insn'
263   - 'for_each_insn_prefix'
264   - 'for_each_intid'
265   - 'for_each_iommu'
266   - 'for_each_ip_tunnel_rcu'
267   - 'for_each_irq_nr'
268   - 'for_each_lang'
269   - 'for_each_link_codecs'
270   - 'for_each_link_cpus'
271   - 'for_each_link_platforms'
272   - 'for_each_lru'
273   - 'for_each_matching_node'
274   - 'for_each_matching_node_and_match'
275   - 'for_each_mem_pfn_range'
276   - 'for_each_mem_range'
277   - 'for_each_mem_range_rev'
278   - 'for_each_mem_region'
279   - 'for_each_member'
280   - 'for_each_memory'
281   - 'for_each_migratetype_order'
282   - 'for_each_missing_reg'
283   - 'for_each_net'
284   - 'for_each_net_continue_reverse'
285   - 'for_each_net_rcu'
286   - 'for_each_netdev'
287   - 'for_each_netdev_continue'
288   - 'for_each_netdev_continue_rcu'
289   - 'for_each_netdev_continue_reverse'
290   - 'for_each_netdev_feature'
291   - 'for_each_netdev_in_bond_rcu'
292   - 'for_each_netdev_rcu'
293   - 'for_each_netdev_reverse'
294   - 'for_each_netdev_safe'
295   - 'for_each_new_connector_in_state'
296   - 'for_each_new_crtc_in_state'
297   - 'for_each_new_mst_mgr_in_state'
298   - 'for_each_new_plane_in_state'
299   - 'for_each_new_plane_in_state_reverse'
300   - 'for_each_new_private_obj_in_state'
301   - 'for_each_new_reg'
302   - 'for_each_node'
303   - 'for_each_node_by_name'
304   - 'for_each_node_by_type'
305   - 'for_each_node_mask'
306   - 'for_each_node_state'
307   - 'for_each_node_with_cpus'
308   - 'for_each_node_with_property'
309   - 'for_each_nonreserved_multicast_dest_pgid'
310   - 'for_each_of_allnodes'
311   - 'for_each_of_allnodes_from'
312   - 'for_each_of_cpu_node'
313   - 'for_each_of_pci_range'
314   - 'for_each_old_connector_in_state'
315   - 'for_each_old_crtc_in_state'
316   - 'for_each_old_mst_mgr_in_state'
317   - 'for_each_old_plane_in_state'
318   - 'for_each_old_private_obj_in_state'
319   - 'for_each_oldnew_connector_in_state'
320   - 'for_each_oldnew_crtc_in_state'
321   - 'for_each_oldnew_mst_mgr_in_state'
322   - 'for_each_oldnew_plane_in_state'
323   - 'for_each_oldnew_plane_in_state_reverse'
324   - 'for_each_oldnew_private_obj_in_state'
325   - 'for_each_online_cpu'
326   - 'for_each_online_node'
327   - 'for_each_online_pgdat'
328   - 'for_each_path'
329   - 'for_each_pci_bridge'
330   - 'for_each_pci_dev'
331   - 'for_each_pcm_streams'
332   - 'for_each_physmem_range'
333   - 'for_each_populated_zone'
334   - 'for_each_possible_cpu'
335   - 'for_each_present_cpu'
336   - 'for_each_prime_number'
337   - 'for_each_prime_number_from'
338   - 'for_each_probe_cache_entry'
339   - 'for_each_process'
340   - 'for_each_process_thread'
341   - 'for_each_prop_codec_conf'
342   - 'for_each_prop_dai_codec'
343   - 'for_each_prop_dai_cpu'
344   - 'for_each_prop_dlc_codecs'
345   - 'for_each_prop_dlc_cpus'
346   - 'for_each_prop_dlc_platforms'
347   - 'for_each_property_of_node'
348   - 'for_each_reg'
349   - 'for_each_reg_filtered'
350   - 'for_each_registered_fb'
351   - 'for_each_requested_gpio'
352   - 'for_each_requested_gpio_in_range'
353   - 'for_each_reserved_mem_range'
354   - 'for_each_reserved_mem_region'
355   - 'for_each_rtd_codec_dais'
356   - 'for_each_rtd_components'
357   - 'for_each_rtd_cpu_dais'
358   - 'for_each_rtd_dais'
359   - 'for_each_script'
360   - 'for_each_sec'
361   - 'for_each_set_bit'
362   - 'for_each_set_bit_from'
363   - 'for_each_set_bitrange'
364   - 'for_each_set_bitrange_from'
365   - 'for_each_set_clump8'
366   - 'for_each_sg'
367   - 'for_each_sg_dma_page'
368   - 'for_each_sg_page'
369   - 'for_each_sgtable_dma_page'
370   - 'for_each_sgtable_dma_sg'
371   - 'for_each_sgtable_page'
372   - 'for_each_sgtable_sg'
373   - 'for_each_shell_test'
374   - 'for_each_sibling_event'
375   - 'for_each_subelement'
376   - 'for_each_subelement_extid'
377   - 'for_each_subelement_id'
378   - 'for_each_sublist'
379   - 'for_each_subsystem'
380   - 'for_each_supported_activate_fn'
381   - 'for_each_supported_inject_fn'
382   - 'for_each_test'
383   - 'for_each_thread'
384   - 'for_each_token'
385   - 'for_each_unicast_dest_pgid'
386   - 'for_each_vsi'
387   - 'for_each_wakeup_source'
388   - 'for_each_zone'
389   - 'for_each_zone_zonelist'
390   - 'for_each_zone_zonelist_nodemask'
391   - 'func_for_each_insn'
392   - 'fwnode_for_each_available_child_node'
393   - 'fwnode_for_each_child_node'
394   - 'fwnode_graph_for_each_endpoint'
395   - 'gadget_for_each_ep'
396   - 'genradix_for_each'
397   - 'genradix_for_each_from'
398   - 'hash_for_each'
399   - 'hash_for_each_possible'
400   - 'hash_for_each_possible_rcu'
401   - 'hash_for_each_possible_rcu_notrace'
402   - 'hash_for_each_possible_safe'
403   - 'hash_for_each_rcu'
404   - 'hash_for_each_safe'
405   - 'hashmap__for_each_entry'
406   - 'hashmap__for_each_entry_safe'
407   - 'hashmap__for_each_key_entry'
408   - 'hashmap__for_each_key_entry_safe'
409   - 'hctx_for_each_ctx'
410   - 'hists__for_each_format'
411   - 'hists__for_each_sort_list'
412   - 'hlist_bl_for_each_entry'
413   - 'hlist_bl_for_each_entry_rcu'
414   - 'hlist_bl_for_each_entry_safe'
415   - 'hlist_for_each'
416   - 'hlist_for_each_entry'
417   - 'hlist_for_each_entry_continue'
418   - 'hlist_for_each_entry_continue_rcu'
419   - 'hlist_for_each_entry_continue_rcu_bh'
420   - 'hlist_for_each_entry_from'
421   - 'hlist_for_each_entry_from_rcu'
422   - 'hlist_for_each_entry_rcu'
423   - 'hlist_for_each_entry_rcu_bh'
424   - 'hlist_for_each_entry_rcu_notrace'
425   - 'hlist_for_each_entry_safe'
426   - 'hlist_for_each_entry_srcu'
427   - 'hlist_for_each_safe'
428   - 'hlist_nulls_for_each_entry'
429   - 'hlist_nulls_for_each_entry_from'
430   - 'hlist_nulls_for_each_entry_rcu'
431   - 'hlist_nulls_for_each_entry_safe'
432   - 'i3c_bus_for_each_i2cdev'
433   - 'i3c_bus_for_each_i3cdev'
434   - 'idr_for_each_entry'
435   - 'idr_for_each_entry_continue'
436   - 'idr_for_each_entry_continue_ul'
437   - 'idr_for_each_entry_ul'
438   - 'in_dev_for_each_ifa_rcu'
439   - 'in_dev_for_each_ifa_rtnl'
440   - 'inet_bind_bucket_for_each'
441   - 'inet_lhash2_for_each_icsk'
442   - 'inet_lhash2_for_each_icsk_continue'
443   - 'inet_lhash2_for_each_icsk_rcu'
444   - 'intlist__for_each_entry'
445   - 'intlist__for_each_entry_safe'
446   - 'kcore_copy__for_each_phdr'
447   - 'key_for_each'
448   - 'key_for_each_safe'
449   - 'klp_for_each_func'
450   - 'klp_for_each_func_safe'
451   - 'klp_for_each_func_static'
452   - 'klp_for_each_object'
453   - 'klp_for_each_object_safe'
454   - 'klp_for_each_object_static'
455   - 'kunit_suite_for_each_test_case'
456   - 'kvm_for_each_memslot'
457   - 'kvm_for_each_memslot_in_gfn_range'
458   - 'kvm_for_each_vcpu'
459   - 'libbpf_nla_for_each_attr'
460   - 'list_for_each'
461   - 'list_for_each_codec'
462   - 'list_for_each_codec_safe'
463   - 'list_for_each_continue'
464   - 'list_for_each_entry'
465   - 'list_for_each_entry_continue'
466   - 'list_for_each_entry_continue_rcu'
467   - 'list_for_each_entry_continue_reverse'
468   - 'list_for_each_entry_from'
469   - 'list_for_each_entry_from_rcu'
470   - 'list_for_each_entry_from_reverse'
471   - 'list_for_each_entry_lockless'
472   - 'list_for_each_entry_rcu'
473   - 'list_for_each_entry_reverse'
474   - 'list_for_each_entry_safe'
475   - 'list_for_each_entry_safe_continue'
476   - 'list_for_each_entry_safe_from'
477   - 'list_for_each_entry_safe_reverse'
478   - 'list_for_each_entry_srcu'
479   - 'list_for_each_from'
480   - 'list_for_each_prev'
481   - 'list_for_each_prev_safe'
482   - 'list_for_each_safe'
483   - 'llist_for_each'
484   - 'llist_for_each_entry'
485   - 'llist_for_each_entry_safe'
486   - 'llist_for_each_safe'
487   - 'map__for_each_symbol'
488   - 'map__for_each_symbol_by_name'
489   - 'map_for_each_event'
490   - 'map_for_each_metric'
491   - 'maps__for_each_entry'
492   - 'maps__for_each_entry_safe'
493   - 'mci_for_each_dimm'
494   - 'media_device_for_each_entity'
495   - 'media_device_for_each_intf'
496   - 'media_device_for_each_link'
497   - 'media_device_for_each_pad'
498   - 'msi_for_each_desc'
499   - 'nanddev_io_for_each_page'
500   - 'netdev_for_each_lower_dev'
501   - 'netdev_for_each_lower_private'
502   - 'netdev_for_each_lower_private_rcu'
503   - 'netdev_for_each_mc_addr'
504   - 'netdev_for_each_uc_addr'
505   - 'netdev_for_each_upper_dev_rcu'
506   - 'netdev_hw_addr_list_for_each'
507   - 'nft_rule_for_each_expr'
508   - 'nla_for_each_attr'
509   - 'nla_for_each_nested'
510   - 'nlmsg_for_each_attr'
511   - 'nlmsg_for_each_msg'
512   - 'nr_neigh_for_each'
513   - 'nr_neigh_for_each_safe'
514   - 'nr_node_for_each'
515   - 'nr_node_for_each_safe'
516   - 'of_for_each_phandle'
517   - 'of_property_for_each_string'
518   - 'of_property_for_each_u32'
519   - 'pci_bus_for_each_resource'
520   - 'pci_doe_for_each_off'
521   - 'pcl_for_each_chunk'
522   - 'pcl_for_each_segment'
523   - 'pcm_for_each_format'
524   - 'perf_config_items__for_each_entry'
525   - 'perf_config_sections__for_each_entry'
526   - 'perf_config_set__for_each_entry'
527   - 'perf_cpu_map__for_each_cpu'
528   - 'perf_evlist__for_each_entry'
529   - 'perf_evlist__for_each_entry_reverse'
530   - 'perf_evlist__for_each_entry_safe'
531   - 'perf_evlist__for_each_evsel'
532   - 'perf_evlist__for_each_mmap'
533   - 'perf_hpp_list__for_each_format'
534   - 'perf_hpp_list__for_each_format_safe'
535   - 'perf_hpp_list__for_each_sort_list'
536   - 'perf_hpp_list__for_each_sort_list_safe'
537   - 'perf_pmu__for_each_hybrid_pmu'
538   - 'ping_portaddr_for_each_entry'
539   - 'ping_portaddr_for_each_entry_rcu'
540   - 'plist_for_each'
541   - 'plist_for_each_continue'
542   - 'plist_for_each_entry'
543   - 'plist_for_each_entry_continue'
544   - 'plist_for_each_entry_safe'
545   - 'plist_for_each_safe'
546   - 'pnp_for_each_card'
547   - 'pnp_for_each_dev'
548   - 'protocol_for_each_card'
549   - 'protocol_for_each_dev'
550   - 'queue_for_each_hw_ctx'
551   - 'radix_tree_for_each_slot'
552   - 'radix_tree_for_each_tagged'
553   - 'rb_for_each'
554   - 'rbtree_postorder_for_each_entry_safe'
555   - 'rdma_for_each_block'
556   - 'rdma_for_each_port'
557   - 'rdma_umem_for_each_dma_block'
558   - 'resort_rb__for_each_entry'
559   - 'resource_list_for_each_entry'
560   - 'resource_list_for_each_entry_safe'
561   - 'rhl_for_each_entry_rcu'
562   - 'rhl_for_each_rcu'
563   - 'rht_for_each'
564   - 'rht_for_each_entry'
565   - 'rht_for_each_entry_from'
566   - 'rht_for_each_entry_rcu'
567   - 'rht_for_each_entry_rcu_from'
568   - 'rht_for_each_entry_safe'
569   - 'rht_for_each_from'
570   - 'rht_for_each_rcu'
571   - 'rht_for_each_rcu_from'
572   - 'rq_for_each_bvec'
573   - 'rq_for_each_segment'
574   - 'rq_list_for_each'
575   - 'rq_list_for_each_safe'
576   - 'scsi_for_each_prot_sg'
577   - 'scsi_for_each_sg'
578   - 'sctp_for_each_hentry'
579   - 'sctp_skb_for_each'
580   - 'sec_for_each_insn'
581   - 'sec_for_each_insn_continue'
582   - 'sec_for_each_insn_from'
583   - 'shdma_for_each_chan'
584   - 'shost_for_each_device'
585   - 'sk_for_each'
586   - 'sk_for_each_bound'
587   - 'sk_for_each_entry_offset_rcu'
588   - 'sk_for_each_from'
589   - 'sk_for_each_rcu'
590   - 'sk_for_each_safe'
591   - 'sk_nulls_for_each'
592   - 'sk_nulls_for_each_from'
593   - 'sk_nulls_for_each_rcu'
594   - 'snd_array_for_each'
595   - 'snd_pcm_group_for_each_entry'
596   - 'snd_soc_dapm_widget_for_each_path'
597   - 'snd_soc_dapm_widget_for_each_path_safe'
598   - 'snd_soc_dapm_widget_for_each_sink_path'
599   - 'snd_soc_dapm_widget_for_each_source_path'
600   - 'strlist__for_each_entry'
601   - 'strlist__for_each_entry_safe'
602   - 'sym_for_each_insn'
603   - 'sym_for_each_insn_continue_reverse'
604   - 'symbols__for_each_entry'
605   - 'tb_property_for_each'
606   - 'tcf_act_for_each_action'
607   - 'tcf_exts_for_each_action'
608   - 'udp_portaddr_for_each_entry'
609   - 'udp_portaddr_for_each_entry_rcu'
610   - 'usb_hub_for_each_child'
611   - 'v4l2_device_for_each_subdev'
612   - 'v4l2_m2m_for_each_dst_buf'
613   - 'v4l2_m2m_for_each_dst_buf_safe'
614   - 'v4l2_m2m_for_each_src_buf'
615   - 'v4l2_m2m_for_each_src_buf_safe'
616   - 'virtio_device_for_each_vq'
617   - 'while_for_each_ftrace_op'
618   - 'xa_for_each'
619   - 'xa_for_each_marked'
620   - 'xa_for_each_range'
621   - 'xa_for_each_start'
622   - 'xas_for_each'
623   - 'xas_for_each_conflict'
624   - 'xas_for_each_marked'
625   - 'xbc_array_for_each_value'
626   - 'xbc_for_each_key_value'
627   - 'xbc_node_for_each_array_value'
628   - 'xbc_node_for_each_child'
629   - 'xbc_node_for_each_key_value'
630   - 'xbc_node_for_each_subkey'
631   - 'zorro_for_each_dev'
632
633 IncludeBlocks: Preserve
634 IncludeCategories:
635   - Regex: '.*'
636     Priority: 1
637 IncludeIsMainRegex: '(Test)?$'
638 IndentCaseLabels: false
639 IndentGotoLabels: false
640 IndentPPDirectives: None
641 IndentWidth: 8
642 IndentWrappedFunctionNames: false
643 JavaScriptQuotes: Leave
644 JavaScriptWrapImports: true
645 KeepEmptyLinesAtTheStartOfBlocks: false
646 MacroBlockBegin: ''
647 MacroBlockEnd: ''
648 MaxEmptyLinesToKeep: 1
649 NamespaceIndentation: None
650 ObjCBinPackProtocolList: Auto
651 ObjCBlockIndentWidth: 8
652 ObjCSpaceAfterProperty: true
653 ObjCSpaceBeforeProtocolList: true
654
655 # Taken from git's rules
656 PenaltyBreakAssignment: 10
657 PenaltyBreakBeforeFirstCallParameter: 30
658 PenaltyBreakComment: 10
659 PenaltyBreakFirstLessLess: 0
660 PenaltyBreakString: 10
661 PenaltyExcessCharacter: 100
662 PenaltyReturnTypeOnItsOwnLine: 60
663
664 PointerAlignment: Right
665 ReflowComments: false
666 SortIncludes: false
667 SortUsingDeclarations: false
668 SpaceAfterCStyleCast: false
669 SpaceAfterTemplateKeyword: true
670 SpaceBeforeAssignmentOperators: true
671 SpaceBeforeCtorInitializerColon: true
672 SpaceBeforeInheritanceColon: true
673 SpaceBeforeParens: ControlStatementsExceptForEachMacros
674 SpaceBeforeRangeBasedForLoopColon: true
675 SpaceInEmptyParentheses: false
676 SpacesBeforeTrailingComments: 1
677 SpacesInAngles: false
678 SpacesInContainerLiterals: false
679 SpacesInCStyleCastParentheses: false
680 SpacesInParentheses: false
681 SpacesInSquareBrackets: false
682 Standard: Cpp03
683 TabWidth: 8
684 UseTab: Always
685 ...