xref: /openbmc/linux/.clang-format (revision 99e309b6)
1d4ef8d3fSMiguel Ojeda# SPDX-License-Identifier: GPL-2.0
2d4ef8d3fSMiguel Ojeda#
3d4ef8d3fSMiguel Ojeda# clang-format configuration file. Intended for clang-format >= 4.
4d4ef8d3fSMiguel Ojeda#
5d4ef8d3fSMiguel Ojeda# For more information, see:
6d4ef8d3fSMiguel Ojeda#
7d4ef8d3fSMiguel Ojeda#   Documentation/process/clang-format.rst
8d4ef8d3fSMiguel Ojeda#   https://clang.llvm.org/docs/ClangFormat.html
9d4ef8d3fSMiguel Ojeda#   https://clang.llvm.org/docs/ClangFormatStyleOptions.html
10d4ef8d3fSMiguel Ojeda#
11d4ef8d3fSMiguel Ojeda---
12d4ef8d3fSMiguel OjedaAccessModifierOffset: -4
13d4ef8d3fSMiguel OjedaAlignAfterOpenBracket: Align
14d4ef8d3fSMiguel OjedaAlignConsecutiveAssignments: false
15d4ef8d3fSMiguel OjedaAlignConsecutiveDeclarations: false
16d4ef8d3fSMiguel Ojeda#AlignEscapedNewlines: Left # Unknown to clang-format-4.0
17d4ef8d3fSMiguel OjedaAlignOperands: true
18d4ef8d3fSMiguel OjedaAlignTrailingComments: false
19d4ef8d3fSMiguel OjedaAllowAllParametersOfDeclarationOnNextLine: false
20d4ef8d3fSMiguel OjedaAllowShortBlocksOnASingleLine: false
21d4ef8d3fSMiguel OjedaAllowShortCaseLabelsOnASingleLine: false
22d4ef8d3fSMiguel OjedaAllowShortFunctionsOnASingleLine: None
23d4ef8d3fSMiguel OjedaAllowShortIfStatementsOnASingleLine: false
24d4ef8d3fSMiguel OjedaAllowShortLoopsOnASingleLine: false
25d4ef8d3fSMiguel OjedaAlwaysBreakAfterDefinitionReturnType: None
26d4ef8d3fSMiguel OjedaAlwaysBreakAfterReturnType: None
27d4ef8d3fSMiguel OjedaAlwaysBreakBeforeMultilineStrings: false
28d4ef8d3fSMiguel OjedaAlwaysBreakTemplateDeclarations: false
29d4ef8d3fSMiguel OjedaBinPackArguments: true
30d4ef8d3fSMiguel OjedaBinPackParameters: true
31d4ef8d3fSMiguel OjedaBraceWrapping:
32d4ef8d3fSMiguel Ojeda  AfterClass: false
33d4ef8d3fSMiguel Ojeda  AfterControlStatement: false
34d4ef8d3fSMiguel Ojeda  AfterEnum: false
35d4ef8d3fSMiguel Ojeda  AfterFunction: true
36d4ef8d3fSMiguel Ojeda  AfterNamespace: true
37d4ef8d3fSMiguel Ojeda  AfterObjCDeclaration: false
38d4ef8d3fSMiguel Ojeda  AfterStruct: false
39d4ef8d3fSMiguel Ojeda  AfterUnion: false
40d4ef8d3fSMiguel Ojeda  #AfterExternBlock: false # Unknown to clang-format-5.0
41d4ef8d3fSMiguel Ojeda  BeforeCatch: false
42d4ef8d3fSMiguel Ojeda  BeforeElse: false
43d4ef8d3fSMiguel Ojeda  IndentBraces: false
44d4ef8d3fSMiguel Ojeda  #SplitEmptyFunction: true # Unknown to clang-format-4.0
45d4ef8d3fSMiguel Ojeda  #SplitEmptyRecord: true # Unknown to clang-format-4.0
46d4ef8d3fSMiguel Ojeda  #SplitEmptyNamespace: true # Unknown to clang-format-4.0
47d4ef8d3fSMiguel OjedaBreakBeforeBinaryOperators: None
48d4ef8d3fSMiguel OjedaBreakBeforeBraces: Custom
49d4ef8d3fSMiguel Ojeda#BreakBeforeInheritanceComma: false # Unknown to clang-format-4.0
50d4ef8d3fSMiguel OjedaBreakBeforeTernaryOperators: false
51d4ef8d3fSMiguel OjedaBreakConstructorInitializersBeforeComma: false
52d4ef8d3fSMiguel Ojeda#BreakConstructorInitializers: BeforeComma # Unknown to clang-format-4.0
53d4ef8d3fSMiguel OjedaBreakAfterJavaFieldAnnotations: false
54d4ef8d3fSMiguel OjedaBreakStringLiterals: false
55d4ef8d3fSMiguel OjedaColumnLimit: 80
56d4ef8d3fSMiguel OjedaCommentPragmas: '^ IWYU pragma:'
57d4ef8d3fSMiguel Ojeda#CompactNamespaces: false # Unknown to clang-format-4.0
58d4ef8d3fSMiguel OjedaConstructorInitializerAllOnOneLineOrOnePerLine: false
59d4ef8d3fSMiguel OjedaConstructorInitializerIndentWidth: 8
60d4ef8d3fSMiguel OjedaContinuationIndentWidth: 8
61d4ef8d3fSMiguel OjedaCpp11BracedListStyle: false
62d4ef8d3fSMiguel OjedaDerivePointerAlignment: false
63d4ef8d3fSMiguel OjedaDisableFormat: false
64d4ef8d3fSMiguel OjedaExperimentalAutoDetectBinPacking: false
65d4ef8d3fSMiguel Ojeda#FixNamespaceComments: false # Unknown to clang-format-4.0
66d4ef8d3fSMiguel Ojeda
67d4ef8d3fSMiguel Ojeda# Taken from:
68d4ef8d3fSMiguel Ojeda#   git grep -h '^#define [^[:space:]]*for_each[^[:space:]]*(' include/ \
69d4ef8d3fSMiguel Ojeda#   | sed "s,^#define \([^[:space:]]*for_each[^[:space:]]*\)(.*$,  - '\1'," \
70d4ef8d3fSMiguel Ojeda#   | sort | uniq
71d4ef8d3fSMiguel OjedaForEachMacros:
72d4ef8d3fSMiguel Ojeda  - 'apei_estatus_for_each_section'
73d4ef8d3fSMiguel Ojeda  - 'ata_for_each_dev'
74d4ef8d3fSMiguel Ojeda  - 'ata_for_each_link'
75*99e309b6SJason Gunthorpe  - '__ata_qc_for_each'
76*99e309b6SJason Gunthorpe  - 'ata_qc_for_each'
77*99e309b6SJason Gunthorpe  - 'ata_qc_for_each_raw'
78*99e309b6SJason Gunthorpe  - 'ata_qc_for_each_with_internal'
79d4ef8d3fSMiguel Ojeda  - 'ax25_for_each'
80d4ef8d3fSMiguel Ojeda  - 'ax25_uid_for_each'
81d4ef8d3fSMiguel Ojeda  - 'bio_for_each_integrity_vec'
82d4ef8d3fSMiguel Ojeda  - '__bio_for_each_segment'
83d4ef8d3fSMiguel Ojeda  - 'bio_for_each_segment'
84d4ef8d3fSMiguel Ojeda  - 'bio_for_each_segment_all'
85d4ef8d3fSMiguel Ojeda  - 'bio_list_for_each'
86d4ef8d3fSMiguel Ojeda  - 'bip_for_each_vec'
87d4ef8d3fSMiguel Ojeda  - 'blkg_for_each_descendant_post'
88d4ef8d3fSMiguel Ojeda  - 'blkg_for_each_descendant_pre'
89d4ef8d3fSMiguel Ojeda  - 'blk_queue_for_each_rl'
90d4ef8d3fSMiguel Ojeda  - 'bond_for_each_slave'
91d4ef8d3fSMiguel Ojeda  - 'bond_for_each_slave_rcu'
92*99e309b6SJason Gunthorpe  - 'bpf_for_each_spilled_reg'
93d4ef8d3fSMiguel Ojeda  - 'btree_for_each_safe128'
94d4ef8d3fSMiguel Ojeda  - 'btree_for_each_safe32'
95d4ef8d3fSMiguel Ojeda  - 'btree_for_each_safe64'
96d4ef8d3fSMiguel Ojeda  - 'btree_for_each_safel'
97d4ef8d3fSMiguel Ojeda  - 'card_for_each_dev'
98d4ef8d3fSMiguel Ojeda  - 'cgroup_taskset_for_each'
99d4ef8d3fSMiguel Ojeda  - 'cgroup_taskset_for_each_leader'
100d4ef8d3fSMiguel Ojeda  - 'cpufreq_for_each_entry'
101d4ef8d3fSMiguel Ojeda  - 'cpufreq_for_each_entry_idx'
102d4ef8d3fSMiguel Ojeda  - 'cpufreq_for_each_valid_entry'
103d4ef8d3fSMiguel Ojeda  - 'cpufreq_for_each_valid_entry_idx'
104d4ef8d3fSMiguel Ojeda  - 'css_for_each_child'
105d4ef8d3fSMiguel Ojeda  - 'css_for_each_descendant_post'
106d4ef8d3fSMiguel Ojeda  - 'css_for_each_descendant_pre'
107d4ef8d3fSMiguel Ojeda  - 'device_for_each_child_node'
108d4ef8d3fSMiguel Ojeda  - 'drm_atomic_crtc_for_each_plane'
109d4ef8d3fSMiguel Ojeda  - 'drm_atomic_crtc_state_for_each_plane'
110d4ef8d3fSMiguel Ojeda  - 'drm_atomic_crtc_state_for_each_plane_state'
111*99e309b6SJason Gunthorpe  - 'drm_atomic_for_each_plane_damage'
112*99e309b6SJason Gunthorpe  - 'drm_connector_for_each_possible_encoder'
113d4ef8d3fSMiguel Ojeda  - 'drm_for_each_connector_iter'
114d4ef8d3fSMiguel Ojeda  - 'drm_for_each_crtc'
115d4ef8d3fSMiguel Ojeda  - 'drm_for_each_encoder'
116d4ef8d3fSMiguel Ojeda  - 'drm_for_each_encoder_mask'
117d4ef8d3fSMiguel Ojeda  - 'drm_for_each_fb'
118d4ef8d3fSMiguel Ojeda  - 'drm_for_each_legacy_plane'
119d4ef8d3fSMiguel Ojeda  - 'drm_for_each_plane'
120d4ef8d3fSMiguel Ojeda  - 'drm_for_each_plane_mask'
121d4ef8d3fSMiguel Ojeda  - 'drm_mm_for_each_hole'
122d4ef8d3fSMiguel Ojeda  - 'drm_mm_for_each_node'
123d4ef8d3fSMiguel Ojeda  - 'drm_mm_for_each_node_in_range'
124d4ef8d3fSMiguel Ojeda  - 'drm_mm_for_each_node_safe'
125d4ef8d3fSMiguel Ojeda  - 'for_each_active_drhd_unit'
126d4ef8d3fSMiguel Ojeda  - 'for_each_active_iommu'
127d4ef8d3fSMiguel Ojeda  - 'for_each_available_child_of_node'
128d4ef8d3fSMiguel Ojeda  - 'for_each_bio'
129d4ef8d3fSMiguel Ojeda  - 'for_each_board_func_rsrc'
130d4ef8d3fSMiguel Ojeda  - 'for_each_bvec'
131*99e309b6SJason Gunthorpe  - 'for_each_card_components'
132*99e309b6SJason Gunthorpe  - 'for_each_card_links'
133*99e309b6SJason Gunthorpe  - 'for_each_card_links_safe'
134*99e309b6SJason Gunthorpe  - 'for_each_card_prelinks'
135*99e309b6SJason Gunthorpe  - 'for_each_card_rtds'
136*99e309b6SJason Gunthorpe  - 'for_each_card_rtds_safe'
137*99e309b6SJason Gunthorpe  - 'for_each_cgroup_storage_type'
138d4ef8d3fSMiguel Ojeda  - 'for_each_child_of_node'
139d4ef8d3fSMiguel Ojeda  - 'for_each_clear_bit'
140d4ef8d3fSMiguel Ojeda  - 'for_each_clear_bit_from'
141d4ef8d3fSMiguel Ojeda  - 'for_each_cmsghdr'
142d4ef8d3fSMiguel Ojeda  - 'for_each_compatible_node'
143*99e309b6SJason Gunthorpe  - 'for_each_component_dais'
144*99e309b6SJason Gunthorpe  - 'for_each_component_dais_safe'
145*99e309b6SJason Gunthorpe  - 'for_each_comp_order'
146d4ef8d3fSMiguel Ojeda  - 'for_each_console'
147d4ef8d3fSMiguel Ojeda  - 'for_each_cpu'
148d4ef8d3fSMiguel Ojeda  - 'for_each_cpu_and'
149d4ef8d3fSMiguel Ojeda  - 'for_each_cpu_not'
150d4ef8d3fSMiguel Ojeda  - 'for_each_cpu_wrap'
151d4ef8d3fSMiguel Ojeda  - 'for_each_dev_addr'
152d4ef8d3fSMiguel Ojeda  - 'for_each_dma_cap_mask'
153*99e309b6SJason Gunthorpe  - 'for_each_dpcm_be'
154*99e309b6SJason Gunthorpe  - 'for_each_dpcm_be_rollback'
155*99e309b6SJason Gunthorpe  - 'for_each_dpcm_be_safe'
156*99e309b6SJason Gunthorpe  - 'for_each_dpcm_fe'
157d4ef8d3fSMiguel Ojeda  - 'for_each_drhd_unit'
158d4ef8d3fSMiguel Ojeda  - 'for_each_dss_dev'
159d4ef8d3fSMiguel Ojeda  - 'for_each_efi_memory_desc'
160d4ef8d3fSMiguel Ojeda  - 'for_each_efi_memory_desc_in_map'
161d4ef8d3fSMiguel Ojeda  - 'for_each_endpoint_of_node'
162d4ef8d3fSMiguel Ojeda  - 'for_each_evictable_lru'
163d4ef8d3fSMiguel Ojeda  - 'for_each_fib6_node_rt_rcu'
164d4ef8d3fSMiguel Ojeda  - 'for_each_fib6_walker_rt'
165d4ef8d3fSMiguel Ojeda  - 'for_each_free_mem_range'
166d4ef8d3fSMiguel Ojeda  - 'for_each_free_mem_range_reverse'
167d4ef8d3fSMiguel Ojeda  - 'for_each_func_rsrc'
168d4ef8d3fSMiguel Ojeda  - 'for_each_hstate'
169d4ef8d3fSMiguel Ojeda  - 'for_each_if'
170d4ef8d3fSMiguel Ojeda  - 'for_each_iommu'
171d4ef8d3fSMiguel Ojeda  - 'for_each_ip_tunnel_rcu'
172d4ef8d3fSMiguel Ojeda  - 'for_each_irq_nr'
173*99e309b6SJason Gunthorpe  - 'for_each_link_codecs'
174d4ef8d3fSMiguel Ojeda  - 'for_each_lru'
175d4ef8d3fSMiguel Ojeda  - 'for_each_matching_node'
176d4ef8d3fSMiguel Ojeda  - 'for_each_matching_node_and_match'
177d4ef8d3fSMiguel Ojeda  - 'for_each_memblock'
178d4ef8d3fSMiguel Ojeda  - 'for_each_memblock_type'
179d4ef8d3fSMiguel Ojeda  - 'for_each_memcg_cache_index'
180d4ef8d3fSMiguel Ojeda  - 'for_each_mem_pfn_range'
181d4ef8d3fSMiguel Ojeda  - 'for_each_mem_range'
182d4ef8d3fSMiguel Ojeda  - 'for_each_mem_range_rev'
183d4ef8d3fSMiguel Ojeda  - 'for_each_migratetype_order'
184d4ef8d3fSMiguel Ojeda  - 'for_each_msi_entry'
185*99e309b6SJason Gunthorpe  - 'for_each_msi_entry_safe'
186d4ef8d3fSMiguel Ojeda  - 'for_each_net'
187d4ef8d3fSMiguel Ojeda  - 'for_each_netdev'
188d4ef8d3fSMiguel Ojeda  - 'for_each_netdev_continue'
189d4ef8d3fSMiguel Ojeda  - 'for_each_netdev_continue_rcu'
190d4ef8d3fSMiguel Ojeda  - 'for_each_netdev_feature'
191d4ef8d3fSMiguel Ojeda  - 'for_each_netdev_in_bond_rcu'
192d4ef8d3fSMiguel Ojeda  - 'for_each_netdev_rcu'
193d4ef8d3fSMiguel Ojeda  - 'for_each_netdev_reverse'
194d4ef8d3fSMiguel Ojeda  - 'for_each_netdev_safe'
195d4ef8d3fSMiguel Ojeda  - 'for_each_net_rcu'
196d4ef8d3fSMiguel Ojeda  - 'for_each_new_connector_in_state'
197d4ef8d3fSMiguel Ojeda  - 'for_each_new_crtc_in_state'
198d4ef8d3fSMiguel Ojeda  - 'for_each_new_plane_in_state'
199d4ef8d3fSMiguel Ojeda  - 'for_each_new_private_obj_in_state'
200d4ef8d3fSMiguel Ojeda  - 'for_each_node'
201d4ef8d3fSMiguel Ojeda  - 'for_each_node_by_name'
202d4ef8d3fSMiguel Ojeda  - 'for_each_node_by_type'
203d4ef8d3fSMiguel Ojeda  - 'for_each_node_mask'
204d4ef8d3fSMiguel Ojeda  - 'for_each_node_state'
205d4ef8d3fSMiguel Ojeda  - 'for_each_node_with_cpus'
206d4ef8d3fSMiguel Ojeda  - 'for_each_node_with_property'
207d4ef8d3fSMiguel Ojeda  - 'for_each_of_allnodes'
208d4ef8d3fSMiguel Ojeda  - 'for_each_of_allnodes_from'
209*99e309b6SJason Gunthorpe  - 'for_each_of_cpu_node'
210d4ef8d3fSMiguel Ojeda  - 'for_each_of_pci_range'
211d4ef8d3fSMiguel Ojeda  - 'for_each_old_connector_in_state'
212d4ef8d3fSMiguel Ojeda  - 'for_each_old_crtc_in_state'
213d4ef8d3fSMiguel Ojeda  - 'for_each_oldnew_connector_in_state'
214d4ef8d3fSMiguel Ojeda  - 'for_each_oldnew_crtc_in_state'
215d4ef8d3fSMiguel Ojeda  - 'for_each_oldnew_plane_in_state'
216*99e309b6SJason Gunthorpe  - 'for_each_oldnew_plane_in_state_reverse'
217d4ef8d3fSMiguel Ojeda  - 'for_each_oldnew_private_obj_in_state'
218d4ef8d3fSMiguel Ojeda  - 'for_each_old_plane_in_state'
219d4ef8d3fSMiguel Ojeda  - 'for_each_old_private_obj_in_state'
220d4ef8d3fSMiguel Ojeda  - 'for_each_online_cpu'
221d4ef8d3fSMiguel Ojeda  - 'for_each_online_node'
222d4ef8d3fSMiguel Ojeda  - 'for_each_online_pgdat'
223d4ef8d3fSMiguel Ojeda  - 'for_each_pci_bridge'
224d4ef8d3fSMiguel Ojeda  - 'for_each_pci_dev'
225d4ef8d3fSMiguel Ojeda  - 'for_each_pci_msi_entry'
226d4ef8d3fSMiguel Ojeda  - 'for_each_populated_zone'
227d4ef8d3fSMiguel Ojeda  - 'for_each_possible_cpu'
228d4ef8d3fSMiguel Ojeda  - 'for_each_present_cpu'
229d4ef8d3fSMiguel Ojeda  - 'for_each_prime_number'
230d4ef8d3fSMiguel Ojeda  - 'for_each_prime_number_from'
231d4ef8d3fSMiguel Ojeda  - 'for_each_process'
232d4ef8d3fSMiguel Ojeda  - 'for_each_process_thread'
233d4ef8d3fSMiguel Ojeda  - 'for_each_property_of_node'
234*99e309b6SJason Gunthorpe  - 'for_each_registered_fb'
235d4ef8d3fSMiguel Ojeda  - 'for_each_reserved_mem_region'
236*99e309b6SJason Gunthorpe  - 'for_each_rtd_codec_dai'
237*99e309b6SJason Gunthorpe  - 'for_each_rtd_codec_dai_rollback'
238d4ef8d3fSMiguel Ojeda  - 'for_each_rtdcom'
239d4ef8d3fSMiguel Ojeda  - 'for_each_rtdcom_safe'
240d4ef8d3fSMiguel Ojeda  - 'for_each_set_bit'
241d4ef8d3fSMiguel Ojeda  - 'for_each_set_bit_from'
242d4ef8d3fSMiguel Ojeda  - 'for_each_sg'
243d4ef8d3fSMiguel Ojeda  - 'for_each_sg_page'
244*99e309b6SJason Gunthorpe  - 'for_each_sibling_event'
245d4ef8d3fSMiguel Ojeda  - '__for_each_thread'
246d4ef8d3fSMiguel Ojeda  - 'for_each_thread'
247d4ef8d3fSMiguel Ojeda  - 'for_each_zone'
248d4ef8d3fSMiguel Ojeda  - 'for_each_zone_zonelist'
249d4ef8d3fSMiguel Ojeda  - 'for_each_zone_zonelist_nodemask'
250d4ef8d3fSMiguel Ojeda  - 'fwnode_for_each_available_child_node'
251d4ef8d3fSMiguel Ojeda  - 'fwnode_for_each_child_node'
252d4ef8d3fSMiguel Ojeda  - 'fwnode_graph_for_each_endpoint'
253d4ef8d3fSMiguel Ojeda  - 'gadget_for_each_ep'
254d4ef8d3fSMiguel Ojeda  - 'hash_for_each'
255d4ef8d3fSMiguel Ojeda  - 'hash_for_each_possible'
256d4ef8d3fSMiguel Ojeda  - 'hash_for_each_possible_rcu'
257d4ef8d3fSMiguel Ojeda  - 'hash_for_each_possible_rcu_notrace'
258d4ef8d3fSMiguel Ojeda  - 'hash_for_each_possible_safe'
259d4ef8d3fSMiguel Ojeda  - 'hash_for_each_rcu'
260d4ef8d3fSMiguel Ojeda  - 'hash_for_each_safe'
261d4ef8d3fSMiguel Ojeda  - 'hctx_for_each_ctx'
262d4ef8d3fSMiguel Ojeda  - 'hlist_bl_for_each_entry'
263d4ef8d3fSMiguel Ojeda  - 'hlist_bl_for_each_entry_rcu'
264d4ef8d3fSMiguel Ojeda  - 'hlist_bl_for_each_entry_safe'
265d4ef8d3fSMiguel Ojeda  - 'hlist_for_each'
266d4ef8d3fSMiguel Ojeda  - 'hlist_for_each_entry'
267d4ef8d3fSMiguel Ojeda  - 'hlist_for_each_entry_continue'
268d4ef8d3fSMiguel Ojeda  - 'hlist_for_each_entry_continue_rcu'
269d4ef8d3fSMiguel Ojeda  - 'hlist_for_each_entry_continue_rcu_bh'
270d4ef8d3fSMiguel Ojeda  - 'hlist_for_each_entry_from'
271d4ef8d3fSMiguel Ojeda  - 'hlist_for_each_entry_from_rcu'
272d4ef8d3fSMiguel Ojeda  - 'hlist_for_each_entry_rcu'
273d4ef8d3fSMiguel Ojeda  - 'hlist_for_each_entry_rcu_bh'
274d4ef8d3fSMiguel Ojeda  - 'hlist_for_each_entry_rcu_notrace'
275d4ef8d3fSMiguel Ojeda  - 'hlist_for_each_entry_safe'
276d4ef8d3fSMiguel Ojeda  - '__hlist_for_each_rcu'
277d4ef8d3fSMiguel Ojeda  - 'hlist_for_each_safe'
278d4ef8d3fSMiguel Ojeda  - 'hlist_nulls_for_each_entry'
279d4ef8d3fSMiguel Ojeda  - 'hlist_nulls_for_each_entry_from'
280d4ef8d3fSMiguel Ojeda  - 'hlist_nulls_for_each_entry_rcu'
281d4ef8d3fSMiguel Ojeda  - 'hlist_nulls_for_each_entry_safe'
282*99e309b6SJason Gunthorpe  - 'i3c_bus_for_each_i2cdev'
283*99e309b6SJason Gunthorpe  - 'i3c_bus_for_each_i3cdev'
284d4ef8d3fSMiguel Ojeda  - 'ide_host_for_each_port'
285d4ef8d3fSMiguel Ojeda  - 'ide_port_for_each_dev'
286d4ef8d3fSMiguel Ojeda  - 'ide_port_for_each_present_dev'
287d4ef8d3fSMiguel Ojeda  - 'idr_for_each_entry'
288d4ef8d3fSMiguel Ojeda  - 'idr_for_each_entry_continue'
289d4ef8d3fSMiguel Ojeda  - 'idr_for_each_entry_ul'
290d4ef8d3fSMiguel Ojeda  - 'inet_bind_bucket_for_each'
291d4ef8d3fSMiguel Ojeda  - 'inet_lhash2_for_each_icsk_rcu'
292d4ef8d3fSMiguel Ojeda  - 'iov_for_each'
293d4ef8d3fSMiguel Ojeda  - 'key_for_each'
294d4ef8d3fSMiguel Ojeda  - 'key_for_each_safe'
295d4ef8d3fSMiguel Ojeda  - 'klp_for_each_func'
296d4ef8d3fSMiguel Ojeda  - 'klp_for_each_object'
297d4ef8d3fSMiguel Ojeda  - 'kvm_for_each_memslot'
298d4ef8d3fSMiguel Ojeda  - 'kvm_for_each_vcpu'
299d4ef8d3fSMiguel Ojeda  - 'list_for_each'
300*99e309b6SJason Gunthorpe  - 'list_for_each_codec'
301*99e309b6SJason Gunthorpe  - 'list_for_each_codec_safe'
302d4ef8d3fSMiguel Ojeda  - 'list_for_each_entry'
303d4ef8d3fSMiguel Ojeda  - 'list_for_each_entry_continue'
304d4ef8d3fSMiguel Ojeda  - 'list_for_each_entry_continue_rcu'
305d4ef8d3fSMiguel Ojeda  - 'list_for_each_entry_continue_reverse'
306d4ef8d3fSMiguel Ojeda  - 'list_for_each_entry_from'
307*99e309b6SJason Gunthorpe  - 'list_for_each_entry_from_rcu'
308d4ef8d3fSMiguel Ojeda  - 'list_for_each_entry_from_reverse'
309d4ef8d3fSMiguel Ojeda  - 'list_for_each_entry_lockless'
310d4ef8d3fSMiguel Ojeda  - 'list_for_each_entry_rcu'
311d4ef8d3fSMiguel Ojeda  - 'list_for_each_entry_reverse'
312d4ef8d3fSMiguel Ojeda  - 'list_for_each_entry_safe'
313d4ef8d3fSMiguel Ojeda  - 'list_for_each_entry_safe_continue'
314d4ef8d3fSMiguel Ojeda  - 'list_for_each_entry_safe_from'
315d4ef8d3fSMiguel Ojeda  - 'list_for_each_entry_safe_reverse'
316d4ef8d3fSMiguel Ojeda  - 'list_for_each_prev'
317d4ef8d3fSMiguel Ojeda  - 'list_for_each_prev_safe'
318d4ef8d3fSMiguel Ojeda  - 'list_for_each_safe'
319d4ef8d3fSMiguel Ojeda  - 'llist_for_each'
320d4ef8d3fSMiguel Ojeda  - 'llist_for_each_entry'
321d4ef8d3fSMiguel Ojeda  - 'llist_for_each_entry_safe'
322d4ef8d3fSMiguel Ojeda  - 'llist_for_each_safe'
323d4ef8d3fSMiguel Ojeda  - 'media_device_for_each_entity'
324d4ef8d3fSMiguel Ojeda  - 'media_device_for_each_intf'
325d4ef8d3fSMiguel Ojeda  - 'media_device_for_each_link'
326d4ef8d3fSMiguel Ojeda  - 'media_device_for_each_pad'
327*99e309b6SJason Gunthorpe  - 'nanddev_io_for_each_page'
328d4ef8d3fSMiguel Ojeda  - 'netdev_for_each_lower_dev'
329d4ef8d3fSMiguel Ojeda  - 'netdev_for_each_lower_private'
330d4ef8d3fSMiguel Ojeda  - 'netdev_for_each_lower_private_rcu'
331d4ef8d3fSMiguel Ojeda  - 'netdev_for_each_mc_addr'
332d4ef8d3fSMiguel Ojeda  - 'netdev_for_each_uc_addr'
333d4ef8d3fSMiguel Ojeda  - 'netdev_for_each_upper_dev_rcu'
334d4ef8d3fSMiguel Ojeda  - 'netdev_hw_addr_list_for_each'
335d4ef8d3fSMiguel Ojeda  - 'nft_rule_for_each_expr'
336d4ef8d3fSMiguel Ojeda  - 'nla_for_each_attr'
337d4ef8d3fSMiguel Ojeda  - 'nla_for_each_nested'
338d4ef8d3fSMiguel Ojeda  - 'nlmsg_for_each_attr'
339d4ef8d3fSMiguel Ojeda  - 'nlmsg_for_each_msg'
340d4ef8d3fSMiguel Ojeda  - 'nr_neigh_for_each'
341d4ef8d3fSMiguel Ojeda  - 'nr_neigh_for_each_safe'
342d4ef8d3fSMiguel Ojeda  - 'nr_node_for_each'
343d4ef8d3fSMiguel Ojeda  - 'nr_node_for_each_safe'
344d4ef8d3fSMiguel Ojeda  - 'of_for_each_phandle'
345d4ef8d3fSMiguel Ojeda  - 'of_property_for_each_string'
346d4ef8d3fSMiguel Ojeda  - 'of_property_for_each_u32'
347d4ef8d3fSMiguel Ojeda  - 'pci_bus_for_each_resource'
348d4ef8d3fSMiguel Ojeda  - 'ping_portaddr_for_each_entry'
349d4ef8d3fSMiguel Ojeda  - 'plist_for_each'
350d4ef8d3fSMiguel Ojeda  - 'plist_for_each_continue'
351d4ef8d3fSMiguel Ojeda  - 'plist_for_each_entry'
352d4ef8d3fSMiguel Ojeda  - 'plist_for_each_entry_continue'
353d4ef8d3fSMiguel Ojeda  - 'plist_for_each_entry_safe'
354d4ef8d3fSMiguel Ojeda  - 'plist_for_each_safe'
355d4ef8d3fSMiguel Ojeda  - 'pnp_for_each_card'
356d4ef8d3fSMiguel Ojeda  - 'pnp_for_each_dev'
357d4ef8d3fSMiguel Ojeda  - 'protocol_for_each_card'
358d4ef8d3fSMiguel Ojeda  - 'protocol_for_each_dev'
359d4ef8d3fSMiguel Ojeda  - 'queue_for_each_hw_ctx'
360d4ef8d3fSMiguel Ojeda  - 'radix_tree_for_each_slot'
361d4ef8d3fSMiguel Ojeda  - 'radix_tree_for_each_tagged'
362d4ef8d3fSMiguel Ojeda  - 'rbtree_postorder_for_each_entry_safe'
363d4ef8d3fSMiguel Ojeda  - 'resource_list_for_each_entry'
364d4ef8d3fSMiguel Ojeda  - 'resource_list_for_each_entry_safe'
365d4ef8d3fSMiguel Ojeda  - 'rhl_for_each_entry_rcu'
366d4ef8d3fSMiguel Ojeda  - 'rhl_for_each_rcu'
367d4ef8d3fSMiguel Ojeda  - 'rht_for_each'
368d4ef8d3fSMiguel Ojeda  - 'rht_for_each_continue'
369d4ef8d3fSMiguel Ojeda  - 'rht_for_each_entry'
370d4ef8d3fSMiguel Ojeda  - 'rht_for_each_entry_continue'
371d4ef8d3fSMiguel Ojeda  - 'rht_for_each_entry_rcu'
372d4ef8d3fSMiguel Ojeda  - 'rht_for_each_entry_rcu_continue'
373d4ef8d3fSMiguel Ojeda  - 'rht_for_each_entry_safe'
374d4ef8d3fSMiguel Ojeda  - 'rht_for_each_rcu'
375d4ef8d3fSMiguel Ojeda  - 'rht_for_each_rcu_continue'
376d4ef8d3fSMiguel Ojeda  - '__rq_for_each_bio'
377d4ef8d3fSMiguel Ojeda  - 'rq_for_each_segment'
378d4ef8d3fSMiguel Ojeda  - 'scsi_for_each_prot_sg'
379d4ef8d3fSMiguel Ojeda  - 'scsi_for_each_sg'
380d4ef8d3fSMiguel Ojeda  - 'sctp_for_each_hentry'
381d4ef8d3fSMiguel Ojeda  - 'sctp_skb_for_each'
382d4ef8d3fSMiguel Ojeda  - 'shdma_for_each_chan'
383d4ef8d3fSMiguel Ojeda  - '__shost_for_each_device'
384d4ef8d3fSMiguel Ojeda  - 'shost_for_each_device'
385d4ef8d3fSMiguel Ojeda  - 'sk_for_each'
386d4ef8d3fSMiguel Ojeda  - 'sk_for_each_bound'
387d4ef8d3fSMiguel Ojeda  - 'sk_for_each_entry_offset_rcu'
388d4ef8d3fSMiguel Ojeda  - 'sk_for_each_from'
389d4ef8d3fSMiguel Ojeda  - 'sk_for_each_rcu'
390d4ef8d3fSMiguel Ojeda  - 'sk_for_each_safe'
391d4ef8d3fSMiguel Ojeda  - 'sk_nulls_for_each'
392d4ef8d3fSMiguel Ojeda  - 'sk_nulls_for_each_from'
393d4ef8d3fSMiguel Ojeda  - 'sk_nulls_for_each_rcu'
394*99e309b6SJason Gunthorpe  - 'snd_array_for_each'
395d4ef8d3fSMiguel Ojeda  - 'snd_pcm_group_for_each_entry'
396d4ef8d3fSMiguel Ojeda  - 'snd_soc_dapm_widget_for_each_path'
397d4ef8d3fSMiguel Ojeda  - 'snd_soc_dapm_widget_for_each_path_safe'
398d4ef8d3fSMiguel Ojeda  - 'snd_soc_dapm_widget_for_each_sink_path'
399d4ef8d3fSMiguel Ojeda  - 'snd_soc_dapm_widget_for_each_source_path'
400d4ef8d3fSMiguel Ojeda  - 'tb_property_for_each'
401*99e309b6SJason Gunthorpe  - 'tcf_exts_for_each_action'
402d4ef8d3fSMiguel Ojeda  - 'udp_portaddr_for_each_entry'
403d4ef8d3fSMiguel Ojeda  - 'udp_portaddr_for_each_entry_rcu'
404d4ef8d3fSMiguel Ojeda  - 'usb_hub_for_each_child'
405d4ef8d3fSMiguel Ojeda  - 'v4l2_device_for_each_subdev'
406d4ef8d3fSMiguel Ojeda  - 'v4l2_m2m_for_each_dst_buf'
407d4ef8d3fSMiguel Ojeda  - 'v4l2_m2m_for_each_dst_buf_safe'
408d4ef8d3fSMiguel Ojeda  - 'v4l2_m2m_for_each_src_buf'
409d4ef8d3fSMiguel Ojeda  - 'v4l2_m2m_for_each_src_buf_safe'
410*99e309b6SJason Gunthorpe  - 'virtio_device_for_each_vq'
411*99e309b6SJason Gunthorpe  - 'xa_for_each'
412*99e309b6SJason Gunthorpe  - 'xas_for_each'
413*99e309b6SJason Gunthorpe  - 'xas_for_each_conflict'
414*99e309b6SJason Gunthorpe  - 'xas_for_each_marked'
415d4ef8d3fSMiguel Ojeda  - 'zorro_for_each_dev'
416d4ef8d3fSMiguel Ojeda
417d4ef8d3fSMiguel Ojeda#IncludeBlocks: Preserve # Unknown to clang-format-5.0
418d4ef8d3fSMiguel OjedaIncludeCategories:
419d4ef8d3fSMiguel Ojeda  - Regex: '.*'
420d4ef8d3fSMiguel Ojeda    Priority: 1
421d4ef8d3fSMiguel OjedaIncludeIsMainRegex: '(Test)?$'
422d4ef8d3fSMiguel OjedaIndentCaseLabels: false
423d4ef8d3fSMiguel Ojeda#IndentPPDirectives: None # Unknown to clang-format-5.0
424d4ef8d3fSMiguel OjedaIndentWidth: 8
4257bee9bd2SJason GunthorpeIndentWrappedFunctionNames: false
426d4ef8d3fSMiguel OjedaJavaScriptQuotes: Leave
427d4ef8d3fSMiguel OjedaJavaScriptWrapImports: true
428d4ef8d3fSMiguel OjedaKeepEmptyLinesAtTheStartOfBlocks: false
429d4ef8d3fSMiguel OjedaMacroBlockBegin: ''
430d4ef8d3fSMiguel OjedaMacroBlockEnd: ''
431d4ef8d3fSMiguel OjedaMaxEmptyLinesToKeep: 1
432d4ef8d3fSMiguel OjedaNamespaceIndentation: Inner
433d4ef8d3fSMiguel Ojeda#ObjCBinPackProtocolList: Auto # Unknown to clang-format-5.0
434d4ef8d3fSMiguel OjedaObjCBlockIndentWidth: 8
435d4ef8d3fSMiguel OjedaObjCSpaceAfterProperty: true
436d4ef8d3fSMiguel OjedaObjCSpaceBeforeProtocolList: true
437d4ef8d3fSMiguel Ojeda
438d4ef8d3fSMiguel Ojeda# Taken from git's rules
439d4ef8d3fSMiguel Ojeda#PenaltyBreakAssignment: 10 # Unknown to clang-format-4.0
440d4ef8d3fSMiguel OjedaPenaltyBreakBeforeFirstCallParameter: 30
441d4ef8d3fSMiguel OjedaPenaltyBreakComment: 10
442d4ef8d3fSMiguel OjedaPenaltyBreakFirstLessLess: 0
443d4ef8d3fSMiguel OjedaPenaltyBreakString: 10
444d4ef8d3fSMiguel OjedaPenaltyExcessCharacter: 100
445d4ef8d3fSMiguel OjedaPenaltyReturnTypeOnItsOwnLine: 60
446d4ef8d3fSMiguel Ojeda
447d4ef8d3fSMiguel OjedaPointerAlignment: Right
448d4ef8d3fSMiguel OjedaReflowComments: false
449d4ef8d3fSMiguel OjedaSortIncludes: false
450d4ef8d3fSMiguel Ojeda#SortUsingDeclarations: false # Unknown to clang-format-4.0
451d4ef8d3fSMiguel OjedaSpaceAfterCStyleCast: false
452d4ef8d3fSMiguel OjedaSpaceAfterTemplateKeyword: true
453d4ef8d3fSMiguel OjedaSpaceBeforeAssignmentOperators: true
454d4ef8d3fSMiguel Ojeda#SpaceBeforeCtorInitializerColon: true # Unknown to clang-format-5.0
455d4ef8d3fSMiguel Ojeda#SpaceBeforeInheritanceColon: true # Unknown to clang-format-5.0
456d4ef8d3fSMiguel OjedaSpaceBeforeParens: ControlStatements
457d4ef8d3fSMiguel Ojeda#SpaceBeforeRangeBasedForLoopColon: true # Unknown to clang-format-5.0
458d4ef8d3fSMiguel OjedaSpaceInEmptyParentheses: false
459d4ef8d3fSMiguel OjedaSpacesBeforeTrailingComments: 1
460d4ef8d3fSMiguel OjedaSpacesInAngles: false
461d4ef8d3fSMiguel OjedaSpacesInContainerLiterals: false
462d4ef8d3fSMiguel OjedaSpacesInCStyleCastParentheses: false
463d4ef8d3fSMiguel OjedaSpacesInParentheses: false
464d4ef8d3fSMiguel OjedaSpacesInSquareBrackets: false
465d4ef8d3fSMiguel OjedaStandard: Cpp03
466d4ef8d3fSMiguel OjedaTabWidth: 8
467d4ef8d3fSMiguel OjedaUseTab: Always
468d4ef8d3fSMiguel Ojeda...
469