blob: badfc1ba440afc1c87f056ee61c8e38105d60022 [file] [log] [blame]
Miguel Ojedad4ef8d32018-04-10 16:32:40 -07001# 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---
12AccessModifierOffset: -4
13AlignAfterOpenBracket: Align
14AlignConsecutiveAssignments: false
15AlignConsecutiveDeclarations: false
16#AlignEscapedNewlines: Left # Unknown to clang-format-4.0
17AlignOperands: true
18AlignTrailingComments: false
19AllowAllParametersOfDeclarationOnNextLine: false
20AllowShortBlocksOnASingleLine: false
21AllowShortCaseLabelsOnASingleLine: false
22AllowShortFunctionsOnASingleLine: None
23AllowShortIfStatementsOnASingleLine: false
24AllowShortLoopsOnASingleLine: false
25AlwaysBreakAfterDefinitionReturnType: None
26AlwaysBreakAfterReturnType: None
27AlwaysBreakBeforeMultilineStrings: false
28AlwaysBreakTemplateDeclarations: false
29BinPackArguments: true
30BinPackParameters: true
31BraceWrapping:
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 # Unknown to clang-format-5.0
41 BeforeCatch: false
42 BeforeElse: false
43 IndentBraces: false
44 #SplitEmptyFunction: true # Unknown to clang-format-4.0
45 #SplitEmptyRecord: true # Unknown to clang-format-4.0
46 #SplitEmptyNamespace: true # Unknown to clang-format-4.0
47BreakBeforeBinaryOperators: None
48BreakBeforeBraces: Custom
49#BreakBeforeInheritanceComma: false # Unknown to clang-format-4.0
50BreakBeforeTernaryOperators: false
51BreakConstructorInitializersBeforeComma: false
52#BreakConstructorInitializers: BeforeComma # Unknown to clang-format-4.0
53BreakAfterJavaFieldAnnotations: false
54BreakStringLiterals: false
55ColumnLimit: 80
56CommentPragmas: '^ IWYU pragma:'
57#CompactNamespaces: false # Unknown to clang-format-4.0
58ConstructorInitializerAllOnOneLineOrOnePerLine: false
59ConstructorInitializerIndentWidth: 8
60ContinuationIndentWidth: 8
61Cpp11BracedListStyle: false
62DerivePointerAlignment: false
63DisableFormat: false
64ExperimentalAutoDetectBinPacking: false
65#FixNamespaceComments: false # Unknown to clang-format-4.0
66
67# Taken from:
68# git grep -h '^#define [^[:space:]]*for_each[^[:space:]]*(' include/ \
69# | sed "s,^#define \([^[:space:]]*for_each[^[:space:]]*\)(.*$, - '\1'," \
70# | sort | uniq
71ForEachMacros:
72 - 'apei_estatus_for_each_section'
73 - 'ata_for_each_dev'
74 - 'ata_for_each_link'
Jason Gunthorpe99e309b2019-01-18 22:57:04 +000075 - '__ata_qc_for_each'
76 - 'ata_qc_for_each'
77 - 'ata_qc_for_each_raw'
78 - 'ata_qc_for_each_with_internal'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -070079 - 'ax25_for_each'
80 - 'ax25_uid_for_each'
Miguel Ojedaf16628d2019-03-30 09:20:16 +010081 - '__bio_for_each_bvec'
82 - 'bio_for_each_bvec'
Omar Sandoval1072c122020-04-16 14:46:11 -070083 - 'bio_for_each_bvec_all'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -070084 - 'bio_for_each_integrity_vec'
85 - '__bio_for_each_segment'
86 - 'bio_for_each_segment'
87 - 'bio_for_each_segment_all'
88 - 'bio_list_for_each'
89 - 'bip_for_each_vec'
Miguel Ojeda11a4a8f2020-03-06 21:50:00 +010090 - 'bitmap_for_each_clear_region'
91 - 'bitmap_for_each_set_region'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -070092 - 'blkg_for_each_descendant_post'
93 - 'blkg_for_each_descendant_pre'
94 - 'blk_queue_for_each_rl'
95 - 'bond_for_each_slave'
96 - 'bond_for_each_slave_rcu'
Jason Gunthorpe99e309b2019-01-18 22:57:04 +000097 - 'bpf_for_each_spilled_reg'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -070098 - 'btree_for_each_safe128'
99 - 'btree_for_each_safe32'
100 - 'btree_for_each_safe64'
101 - 'btree_for_each_safel'
102 - 'card_for_each_dev'
103 - 'cgroup_taskset_for_each'
104 - 'cgroup_taskset_for_each_leader'
105 - 'cpufreq_for_each_entry'
106 - 'cpufreq_for_each_entry_idx'
107 - 'cpufreq_for_each_valid_entry'
108 - 'cpufreq_for_each_valid_entry_idx'
109 - 'css_for_each_child'
110 - 'css_for_each_descendant_post'
111 - 'css_for_each_descendant_pre'
112 - 'device_for_each_child_node'
Miguel Ojeda52d08342019-08-31 10:00:11 +0200113 - 'dma_fence_chain_for_each'
Miguel Ojeda4e4bb892020-09-01 12:53:42 +0200114 - 'do_for_each_ftrace_op'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700115 - 'drm_atomic_crtc_for_each_plane'
116 - 'drm_atomic_crtc_state_for_each_plane'
117 - 'drm_atomic_crtc_state_for_each_plane_state'
Jason Gunthorpe99e309b2019-01-18 22:57:04 +0000118 - 'drm_atomic_for_each_plane_damage'
Miguel Ojeda52d08342019-08-31 10:00:11 +0200119 - 'drm_client_for_each_connector_iter'
120 - 'drm_client_for_each_modeset'
Jason Gunthorpe99e309b2019-01-18 22:57:04 +0000121 - 'drm_connector_for_each_possible_encoder'
Miguel Ojeda11a4a8f2020-03-06 21:50:00 +0100122 - 'drm_for_each_bridge_in_chain'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700123 - 'drm_for_each_connector_iter'
124 - 'drm_for_each_crtc'
125 - 'drm_for_each_encoder'
126 - 'drm_for_each_encoder_mask'
127 - 'drm_for_each_fb'
128 - 'drm_for_each_legacy_plane'
129 - 'drm_for_each_plane'
130 - 'drm_for_each_plane_mask'
Miguel Ojedaf16628d2019-03-30 09:20:16 +0100131 - 'drm_for_each_privobj'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700132 - 'drm_mm_for_each_hole'
133 - 'drm_mm_for_each_node'
134 - 'drm_mm_for_each_node_in_range'
135 - 'drm_mm_for_each_node_safe'
Miguel Ojedaf16628d2019-03-30 09:20:16 +0100136 - 'flow_action_for_each'
Miguel Ojeda52d08342019-08-31 10:00:11 +0200137 - 'for_each_active_dev_scope'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700138 - 'for_each_active_drhd_unit'
139 - 'for_each_active_iommu'
Miguel Ojeda4e4bb892020-09-01 12:53:42 +0200140 - 'for_each_aggr_pgid'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700141 - 'for_each_available_child_of_node'
142 - 'for_each_bio'
143 - 'for_each_board_func_rsrc'
144 - 'for_each_bvec'
Miguel Ojeda11a4a8f2020-03-06 21:50:00 +0100145 - 'for_each_card_auxs'
146 - 'for_each_card_auxs_safe'
Jason Gunthorpe99e309b2019-01-18 22:57:04 +0000147 - 'for_each_card_components'
Miguel Ojeda5d65a022020-04-18 13:49:33 +0200148 - 'for_each_card_dapms'
Miguel Ojeda11a4a8f2020-03-06 21:50:00 +0100149 - 'for_each_card_pre_auxs'
Jason Gunthorpe99e309b2019-01-18 22:57:04 +0000150 - 'for_each_card_prelinks'
151 - 'for_each_card_rtds'
152 - 'for_each_card_rtds_safe'
Miguel Ojeda5d65a022020-04-18 13:49:33 +0200153 - 'for_each_card_widgets'
154 - 'for_each_card_widgets_safe'
Jason Gunthorpe99e309b2019-01-18 22:57:04 +0000155 - 'for_each_cgroup_storage_type'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700156 - 'for_each_child_of_node'
157 - 'for_each_clear_bit'
158 - 'for_each_clear_bit_from'
159 - 'for_each_cmsghdr'
160 - 'for_each_compatible_node'
Jason Gunthorpe99e309b2019-01-18 22:57:04 +0000161 - 'for_each_component_dais'
162 - 'for_each_component_dais_safe'
163 - 'for_each_comp_order'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700164 - 'for_each_console'
165 - 'for_each_cpu'
166 - 'for_each_cpu_and'
167 - 'for_each_cpu_not'
168 - 'for_each_cpu_wrap'
Miguel Ojeda5d65a022020-04-18 13:49:33 +0200169 - 'for_each_dapm_widgets'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700170 - 'for_each_dev_addr'
Miguel Ojeda52d08342019-08-31 10:00:11 +0200171 - 'for_each_dev_scope'
172 - 'for_each_displayid_db'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700173 - 'for_each_dma_cap_mask'
Jason Gunthorpe99e309b2019-01-18 22:57:04 +0000174 - 'for_each_dpcm_be'
175 - 'for_each_dpcm_be_rollback'
176 - 'for_each_dpcm_be_safe'
177 - 'for_each_dpcm_fe'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700178 - 'for_each_drhd_unit'
179 - 'for_each_dss_dev'
180 - 'for_each_efi_memory_desc'
181 - 'for_each_efi_memory_desc_in_map'
Miguel Ojedaf16628d2019-03-30 09:20:16 +0100182 - 'for_each_element'
183 - 'for_each_element_extid'
184 - 'for_each_element_id'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700185 - 'for_each_endpoint_of_node'
186 - 'for_each_evictable_lru'
187 - 'for_each_fib6_node_rt_rcu'
188 - 'for_each_fib6_walker_rt'
Miguel Ojeda52d08342019-08-31 10:00:11 +0200189 - 'for_each_free_mem_pfn_range_in_zone'
190 - 'for_each_free_mem_pfn_range_in_zone_from'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700191 - 'for_each_free_mem_range'
192 - 'for_each_free_mem_range_reverse'
193 - 'for_each_func_rsrc'
194 - 'for_each_hstate'
195 - 'for_each_if'
196 - 'for_each_iommu'
197 - 'for_each_ip_tunnel_rcu'
198 - 'for_each_irq_nr'
Jason Gunthorpe99e309b2019-01-18 22:57:04 +0000199 - 'for_each_link_codecs'
Miguel Ojeda5d65a022020-04-18 13:49:33 +0200200 - 'for_each_link_cpus'
Miguel Ojeda52d08342019-08-31 10:00:11 +0200201 - 'for_each_link_platforms'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700202 - 'for_each_lru'
203 - 'for_each_matching_node'
204 - 'for_each_matching_node_and_match'
Miguel Ojeda11a4a8f2020-03-06 21:50:00 +0100205 - 'for_each_member'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700206 - 'for_each_memblock'
207 - 'for_each_memblock_type'
208 - 'for_each_memcg_cache_index'
209 - 'for_each_mem_pfn_range'
210 - 'for_each_mem_range'
211 - 'for_each_mem_range_rev'
212 - 'for_each_migratetype_order'
213 - 'for_each_msi_entry'
Jason Gunthorpe99e309b2019-01-18 22:57:04 +0000214 - 'for_each_msi_entry_safe'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700215 - 'for_each_net'
Miguel Ojeda11a4a8f2020-03-06 21:50:00 +0100216 - 'for_each_net_continue_reverse'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700217 - 'for_each_netdev'
218 - 'for_each_netdev_continue'
219 - 'for_each_netdev_continue_rcu'
Miguel Ojeda11a4a8f2020-03-06 21:50:00 +0100220 - 'for_each_netdev_continue_reverse'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700221 - 'for_each_netdev_feature'
222 - 'for_each_netdev_in_bond_rcu'
223 - 'for_each_netdev_rcu'
224 - 'for_each_netdev_reverse'
225 - 'for_each_netdev_safe'
226 - 'for_each_net_rcu'
227 - 'for_each_new_connector_in_state'
228 - 'for_each_new_crtc_in_state'
Miguel Ojedaf16628d2019-03-30 09:20:16 +0100229 - 'for_each_new_mst_mgr_in_state'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700230 - 'for_each_new_plane_in_state'
231 - 'for_each_new_private_obj_in_state'
232 - 'for_each_node'
233 - 'for_each_node_by_name'
234 - 'for_each_node_by_type'
235 - 'for_each_node_mask'
236 - 'for_each_node_state'
237 - 'for_each_node_with_cpus'
238 - 'for_each_node_with_property'
Miguel Ojeda4e4bb892020-09-01 12:53:42 +0200239 - 'for_each_nonreserved_multicast_dest_pgid'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700240 - 'for_each_of_allnodes'
241 - 'for_each_of_allnodes_from'
Jason Gunthorpe99e309b2019-01-18 22:57:04 +0000242 - 'for_each_of_cpu_node'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700243 - 'for_each_of_pci_range'
244 - 'for_each_old_connector_in_state'
245 - 'for_each_old_crtc_in_state'
Miguel Ojedaf16628d2019-03-30 09:20:16 +0100246 - 'for_each_old_mst_mgr_in_state'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700247 - 'for_each_oldnew_connector_in_state'
248 - 'for_each_oldnew_crtc_in_state'
Miguel Ojedaf16628d2019-03-30 09:20:16 +0100249 - 'for_each_oldnew_mst_mgr_in_state'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700250 - 'for_each_oldnew_plane_in_state'
Jason Gunthorpe99e309b2019-01-18 22:57:04 +0000251 - 'for_each_oldnew_plane_in_state_reverse'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700252 - 'for_each_oldnew_private_obj_in_state'
253 - 'for_each_old_plane_in_state'
254 - 'for_each_old_private_obj_in_state'
255 - 'for_each_online_cpu'
256 - 'for_each_online_node'
257 - 'for_each_online_pgdat'
258 - 'for_each_pci_bridge'
259 - 'for_each_pci_dev'
260 - 'for_each_pci_msi_entry'
Miguel Ojeda5d65a022020-04-18 13:49:33 +0200261 - 'for_each_pcm_streams'
Miguel Ojeda4e4bb892020-09-01 12:53:42 +0200262 - 'for_each_physmem_range'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700263 - 'for_each_populated_zone'
264 - 'for_each_possible_cpu'
265 - 'for_each_present_cpu'
266 - 'for_each_prime_number'
267 - 'for_each_prime_number_from'
268 - 'for_each_process'
269 - 'for_each_process_thread'
270 - 'for_each_property_of_node'
Jason Gunthorpe99e309b2019-01-18 22:57:04 +0000271 - 'for_each_registered_fb'
Miguel Ojeda4e4bb892020-09-01 12:53:42 +0200272 - 'for_each_requested_gpio'
273 - 'for_each_requested_gpio_in_range'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700274 - 'for_each_reserved_mem_region'
Miguel Ojeda5d65a022020-04-18 13:49:33 +0200275 - 'for_each_rtd_codec_dais'
276 - 'for_each_rtd_codec_dais_rollback'
Miguel Ojeda11a4a8f2020-03-06 21:50:00 +0100277 - 'for_each_rtd_components'
Miguel Ojeda5d65a022020-04-18 13:49:33 +0200278 - 'for_each_rtd_cpu_dais'
279 - 'for_each_rtd_cpu_dais_rollback'
280 - 'for_each_rtd_dais'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700281 - 'for_each_set_bit'
282 - 'for_each_set_bit_from'
Miguel Ojeda11a4a8f2020-03-06 21:50:00 +0100283 - 'for_each_set_clump8'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700284 - 'for_each_sg'
Jason Gunthorped901b272019-01-04 11:40:21 -0700285 - 'for_each_sg_dma_page'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700286 - 'for_each_sg_page'
Miguel Ojeda4e4bb892020-09-01 12:53:42 +0200287 - 'for_each_sgtable_dma_page'
288 - 'for_each_sgtable_dma_sg'
289 - 'for_each_sgtable_page'
290 - 'for_each_sgtable_sg'
Jason Gunthorpe99e309b2019-01-18 22:57:04 +0000291 - 'for_each_sibling_event'
Miguel Ojedaf16628d2019-03-30 09:20:16 +0100292 - 'for_each_subelement'
293 - 'for_each_subelement_extid'
294 - 'for_each_subelement_id'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700295 - '__for_each_thread'
296 - 'for_each_thread'
Miguel Ojeda4e4bb892020-09-01 12:53:42 +0200297 - 'for_each_unicast_dest_pgid'
Miguel Ojeda11a4a8f2020-03-06 21:50:00 +0100298 - 'for_each_wakeup_source'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700299 - 'for_each_zone'
300 - 'for_each_zone_zonelist'
301 - 'for_each_zone_zonelist_nodemask'
302 - 'fwnode_for_each_available_child_node'
303 - 'fwnode_for_each_child_node'
304 - 'fwnode_graph_for_each_endpoint'
305 - 'gadget_for_each_ep'
Miguel Ojedaf16628d2019-03-30 09:20:16 +0100306 - 'genradix_for_each'
307 - 'genradix_for_each_from'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700308 - 'hash_for_each'
309 - 'hash_for_each_possible'
310 - 'hash_for_each_possible_rcu'
311 - 'hash_for_each_possible_rcu_notrace'
312 - 'hash_for_each_possible_safe'
313 - 'hash_for_each_rcu'
314 - 'hash_for_each_safe'
315 - 'hctx_for_each_ctx'
316 - 'hlist_bl_for_each_entry'
317 - 'hlist_bl_for_each_entry_rcu'
318 - 'hlist_bl_for_each_entry_safe'
319 - 'hlist_for_each'
320 - 'hlist_for_each_entry'
321 - 'hlist_for_each_entry_continue'
322 - 'hlist_for_each_entry_continue_rcu'
323 - 'hlist_for_each_entry_continue_rcu_bh'
324 - 'hlist_for_each_entry_from'
325 - 'hlist_for_each_entry_from_rcu'
326 - 'hlist_for_each_entry_rcu'
327 - 'hlist_for_each_entry_rcu_bh'
328 - 'hlist_for_each_entry_rcu_notrace'
329 - 'hlist_for_each_entry_safe'
330 - '__hlist_for_each_rcu'
331 - 'hlist_for_each_safe'
332 - 'hlist_nulls_for_each_entry'
333 - 'hlist_nulls_for_each_entry_from'
334 - 'hlist_nulls_for_each_entry_rcu'
335 - 'hlist_nulls_for_each_entry_safe'
Jason Gunthorpe99e309b2019-01-18 22:57:04 +0000336 - 'i3c_bus_for_each_i2cdev'
337 - 'i3c_bus_for_each_i3cdev'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700338 - 'ide_host_for_each_port'
339 - 'ide_port_for_each_dev'
340 - 'ide_port_for_each_present_dev'
341 - 'idr_for_each_entry'
342 - 'idr_for_each_entry_continue'
Miguel Ojeda52d08342019-08-31 10:00:11 +0200343 - 'idr_for_each_entry_continue_ul'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700344 - 'idr_for_each_entry_ul'
Miguel Ojeda52d08342019-08-31 10:00:11 +0200345 - 'in_dev_for_each_ifa_rcu'
346 - 'in_dev_for_each_ifa_rtnl'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700347 - 'inet_bind_bucket_for_each'
348 - 'inet_lhash2_for_each_icsk_rcu'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700349 - 'key_for_each'
350 - 'key_for_each_safe'
351 - 'klp_for_each_func'
Miguel Ojedaf16628d2019-03-30 09:20:16 +0100352 - 'klp_for_each_func_safe'
353 - 'klp_for_each_func_static'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700354 - 'klp_for_each_object'
Miguel Ojedaf16628d2019-03-30 09:20:16 +0100355 - 'klp_for_each_object_safe'
356 - 'klp_for_each_object_static'
Miguel Ojeda5d65a022020-04-18 13:49:33 +0200357 - 'kunit_suite_for_each_test_case'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700358 - 'kvm_for_each_memslot'
359 - 'kvm_for_each_vcpu'
360 - 'list_for_each'
Jason Gunthorpe99e309b2019-01-18 22:57:04 +0000361 - 'list_for_each_codec'
362 - 'list_for_each_codec_safe'
Miguel Ojeda11a4a8f2020-03-06 21:50:00 +0100363 - 'list_for_each_continue'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700364 - 'list_for_each_entry'
365 - 'list_for_each_entry_continue'
366 - 'list_for_each_entry_continue_rcu'
367 - 'list_for_each_entry_continue_reverse'
368 - 'list_for_each_entry_from'
Jason Gunthorpe99e309b2019-01-18 22:57:04 +0000369 - 'list_for_each_entry_from_rcu'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700370 - 'list_for_each_entry_from_reverse'
371 - 'list_for_each_entry_lockless'
372 - 'list_for_each_entry_rcu'
373 - 'list_for_each_entry_reverse'
374 - 'list_for_each_entry_safe'
375 - 'list_for_each_entry_safe_continue'
376 - 'list_for_each_entry_safe_from'
377 - 'list_for_each_entry_safe_reverse'
378 - 'list_for_each_prev'
379 - 'list_for_each_prev_safe'
380 - 'list_for_each_safe'
381 - 'llist_for_each'
382 - 'llist_for_each_entry'
383 - 'llist_for_each_entry_safe'
384 - 'llist_for_each_safe'
Miguel Ojeda11a4a8f2020-03-06 21:50:00 +0100385 - 'mci_for_each_dimm'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700386 - 'media_device_for_each_entity'
387 - 'media_device_for_each_intf'
388 - 'media_device_for_each_link'
389 - 'media_device_for_each_pad'
Jason Gunthorpe99e309b2019-01-18 22:57:04 +0000390 - 'nanddev_io_for_each_page'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700391 - 'netdev_for_each_lower_dev'
392 - 'netdev_for_each_lower_private'
393 - 'netdev_for_each_lower_private_rcu'
394 - 'netdev_for_each_mc_addr'
395 - 'netdev_for_each_uc_addr'
396 - 'netdev_for_each_upper_dev_rcu'
397 - 'netdev_hw_addr_list_for_each'
398 - 'nft_rule_for_each_expr'
399 - 'nla_for_each_attr'
400 - 'nla_for_each_nested'
401 - 'nlmsg_for_each_attr'
402 - 'nlmsg_for_each_msg'
403 - 'nr_neigh_for_each'
404 - 'nr_neigh_for_each_safe'
405 - 'nr_node_for_each'
406 - 'nr_node_for_each_safe'
407 - 'of_for_each_phandle'
408 - 'of_property_for_each_string'
409 - 'of_property_for_each_u32'
410 - 'pci_bus_for_each_resource'
Miguel Ojeda5d65a022020-04-18 13:49:33 +0200411 - 'pcm_for_each_format'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700412 - 'ping_portaddr_for_each_entry'
413 - 'plist_for_each'
414 - 'plist_for_each_continue'
415 - 'plist_for_each_entry'
416 - 'plist_for_each_entry_continue'
417 - 'plist_for_each_entry_safe'
418 - 'plist_for_each_safe'
419 - 'pnp_for_each_card'
420 - 'pnp_for_each_dev'
421 - 'protocol_for_each_card'
422 - 'protocol_for_each_dev'
423 - 'queue_for_each_hw_ctx'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700424 - 'radix_tree_for_each_slot'
425 - 'radix_tree_for_each_tagged'
426 - 'rbtree_postorder_for_each_entry_safe'
Miguel Ojeda52d08342019-08-31 10:00:11 +0200427 - 'rdma_for_each_block'
Jason Gunthorpeea1075e2019-02-12 21:12:47 -0700428 - 'rdma_for_each_port'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700429 - 'resource_list_for_each_entry'
430 - 'resource_list_for_each_entry_safe'
431 - 'rhl_for_each_entry_rcu'
432 - 'rhl_for_each_rcu'
433 - 'rht_for_each'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700434 - 'rht_for_each_entry'
NeilBrownf7ad68b2019-03-21 14:42:40 +1100435 - 'rht_for_each_entry_from'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700436 - 'rht_for_each_entry_rcu'
NeilBrownf7ad68b2019-03-21 14:42:40 +1100437 - 'rht_for_each_entry_rcu_from'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700438 - 'rht_for_each_entry_safe'
Miguel Ojeda52d08342019-08-31 10:00:11 +0200439 - 'rht_for_each_from'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700440 - 'rht_for_each_rcu'
NeilBrownf7ad68b2019-03-21 14:42:40 +1100441 - 'rht_for_each_rcu_from'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700442 - '__rq_for_each_bio'
Miguel Ojedaf16628d2019-03-30 09:20:16 +0100443 - 'rq_for_each_bvec'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700444 - 'rq_for_each_segment'
445 - 'scsi_for_each_prot_sg'
446 - 'scsi_for_each_sg'
447 - 'sctp_for_each_hentry'
448 - 'sctp_skb_for_each'
449 - 'shdma_for_each_chan'
450 - '__shost_for_each_device'
451 - 'shost_for_each_device'
452 - 'sk_for_each'
453 - 'sk_for_each_bound'
454 - 'sk_for_each_entry_offset_rcu'
455 - 'sk_for_each_from'
456 - 'sk_for_each_rcu'
457 - 'sk_for_each_safe'
458 - 'sk_nulls_for_each'
459 - 'sk_nulls_for_each_from'
460 - 'sk_nulls_for_each_rcu'
Jason Gunthorpe99e309b2019-01-18 22:57:04 +0000461 - 'snd_array_for_each'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700462 - 'snd_pcm_group_for_each_entry'
463 - 'snd_soc_dapm_widget_for_each_path'
464 - 'snd_soc_dapm_widget_for_each_path_safe'
465 - 'snd_soc_dapm_widget_for_each_sink_path'
466 - 'snd_soc_dapm_widget_for_each_source_path'
467 - 'tb_property_for_each'
Jason Gunthorpe99e309b2019-01-18 22:57:04 +0000468 - 'tcf_exts_for_each_action'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700469 - 'udp_portaddr_for_each_entry'
470 - 'udp_portaddr_for_each_entry_rcu'
471 - 'usb_hub_for_each_child'
472 - 'v4l2_device_for_each_subdev'
473 - 'v4l2_m2m_for_each_dst_buf'
474 - 'v4l2_m2m_for_each_dst_buf_safe'
475 - 'v4l2_m2m_for_each_src_buf'
476 - 'v4l2_m2m_for_each_src_buf_safe'
Jason Gunthorpe99e309b2019-01-18 22:57:04 +0000477 - 'virtio_device_for_each_vq'
Miguel Ojeda4e4bb892020-09-01 12:53:42 +0200478 - 'while_for_each_ftrace_op'
Jason Gunthorpe99e309b2019-01-18 22:57:04 +0000479 - 'xa_for_each'
Miguel Ojedaf16628d2019-03-30 09:20:16 +0100480 - 'xa_for_each_marked'
Miguel Ojeda11a4a8f2020-03-06 21:50:00 +0100481 - 'xa_for_each_range'
Miguel Ojedaf16628d2019-03-30 09:20:16 +0100482 - 'xa_for_each_start'
Jason Gunthorpe99e309b2019-01-18 22:57:04 +0000483 - 'xas_for_each'
484 - 'xas_for_each_conflict'
485 - 'xas_for_each_marked'
Miguel Ojeda11a4a8f2020-03-06 21:50:00 +0100486 - 'xbc_array_for_each_value'
487 - 'xbc_for_each_key_value'
488 - 'xbc_node_for_each_array_value'
489 - 'xbc_node_for_each_child'
490 - 'xbc_node_for_each_key_value'
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700491 - 'zorro_for_each_dev'
492
493#IncludeBlocks: Preserve # Unknown to clang-format-5.0
494IncludeCategories:
495 - Regex: '.*'
496 Priority: 1
497IncludeIsMainRegex: '(Test)?$'
498IndentCaseLabels: false
499#IndentPPDirectives: None # Unknown to clang-format-5.0
500IndentWidth: 8
Jason Gunthorpe7bee9bd2018-06-25 16:44:30 -0600501IndentWrappedFunctionNames: false
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700502JavaScriptQuotes: Leave
503JavaScriptWrapImports: true
504KeepEmptyLinesAtTheStartOfBlocks: false
505MacroBlockBegin: ''
506MacroBlockEnd: ''
507MaxEmptyLinesToKeep: 1
Ian Rogersc90f3b82020-04-08 17:13:52 -0700508NamespaceIndentation: None
Miguel Ojedad4ef8d32018-04-10 16:32:40 -0700509#ObjCBinPackProtocolList: Auto # Unknown to clang-format-5.0
510ObjCBlockIndentWidth: 8
511ObjCSpaceAfterProperty: true
512ObjCSpaceBeforeProtocolList: true
513
514# Taken from git's rules
515#PenaltyBreakAssignment: 10 # Unknown to clang-format-4.0
516PenaltyBreakBeforeFirstCallParameter: 30
517PenaltyBreakComment: 10
518PenaltyBreakFirstLessLess: 0
519PenaltyBreakString: 10
520PenaltyExcessCharacter: 100
521PenaltyReturnTypeOnItsOwnLine: 60
522
523PointerAlignment: Right
524ReflowComments: false
525SortIncludes: false
526#SortUsingDeclarations: false # Unknown to clang-format-4.0
527SpaceAfterCStyleCast: false
528SpaceAfterTemplateKeyword: true
529SpaceBeforeAssignmentOperators: true
530#SpaceBeforeCtorInitializerColon: true # Unknown to clang-format-5.0
531#SpaceBeforeInheritanceColon: true # Unknown to clang-format-5.0
532SpaceBeforeParens: ControlStatements
533#SpaceBeforeRangeBasedForLoopColon: true # Unknown to clang-format-5.0
534SpaceInEmptyParentheses: false
535SpacesBeforeTrailingComments: 1
536SpacesInAngles: false
537SpacesInContainerLiterals: false
538SpacesInCStyleCastParentheses: false
539SpacesInParentheses: false
540SpacesInSquareBrackets: false
541Standard: Cpp03
542TabWidth: 8
543UseTab: Always
544...