.clang-format 20 KB

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