"Das U-Boot" Source Tree
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

clang-format: Add configuration file

Introduce .clang-format configuration file to U-Boot, providing
significant improvements over the existing scripts/Lindent approach for
C code formatting.

Benefits of clang-format over scripts/Lindent:

- More comprehensive formatting rules: While Lindent relies on the basic
'indent' tool with limited options, clang-format provides extensive
control over code formatting with 800+ configuration options

- Better handling of complex code structures: clang-format understands
modern C constructs and handles nested structures, macros, and complex
expressions more intelligently

- IDE and editor integration: Native support in major development
environments (VS Code, Vim, Emacs, etc.) enables real-time formatting

- Consistent results across environments: Eliminates variations between
different versions of 'indent' tool and system configurations

- Active maintenance: clang-format is actively developed and updated,
unlike the aging 'indent' tool

Alignment with Linux kernel practices:

Continues U-Boot alignment with Linux kernel development practices,
maintaining consistency between these closely related projects. The
Linux kernel adopted clang-format to modernize its code formatting
infrastructure and improve developer experience.

The .clang-format file is based on the Linux kernel configuration,
specifically copied from Linux kernel v6.16 tag, which itself builds
upon the initial introduction in commit d4ef8d3ff005c ("clang-format:
add configuration file").

Signed-off-by: Javier Tia <javier.tia@linaro.org>

authored by

Javier Tia and committed by
Tom Rini
29f6db89 1116d915

+805
+804
.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/dev-tools/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 + - '__pci_bus_for_each_res0' 86 + - '__pci_bus_for_each_res1' 87 + - '__pci_dev_for_each_res0' 88 + - '__pci_dev_for_each_res1' 89 + - '__perf_evlist__for_each_entry' 90 + - '__perf_evlist__for_each_entry_reverse' 91 + - '__perf_evlist__for_each_entry_safe' 92 + - '__rq_for_each_bio' 93 + - '__shost_for_each_device' 94 + - '__sym_for_each' 95 + - '_for_each_counter' 96 + - 'apei_estatus_for_each_section' 97 + - 'ata_for_each_dev' 98 + - 'ata_for_each_link' 99 + - 'ata_qc_for_each' 100 + - 'ata_qc_for_each_raw' 101 + - 'ata_qc_for_each_with_internal' 102 + - 'ax25_for_each' 103 + - 'ax25_uid_for_each' 104 + - 'bio_for_each_bvec' 105 + - 'bio_for_each_bvec_all' 106 + - 'bio_for_each_folio_all' 107 + - 'bio_for_each_integrity_vec' 108 + - 'bio_for_each_segment' 109 + - 'bio_for_each_segment_all' 110 + - 'bio_list_for_each' 111 + - 'bip_for_each_vec' 112 + - 'bond_for_each_slave' 113 + - 'bond_for_each_slave_rcu' 114 + - 'bpf_for_each' 115 + - 'bpf_for_each_reg_in_vstate' 116 + - 'bpf_for_each_reg_in_vstate_mask' 117 + - 'bpf_for_each_spilled_reg' 118 + - 'bpf_object__for_each_map' 119 + - 'bpf_object__for_each_program' 120 + - 'btree_for_each_safe128' 121 + - 'btree_for_each_safe32' 122 + - 'btree_for_each_safe64' 123 + - 'btree_for_each_safel' 124 + - 'card_for_each_dev' 125 + - 'cgroup_taskset_for_each' 126 + - 'cgroup_taskset_for_each_leader' 127 + - 'cpu_aggr_map__for_each_idx' 128 + - 'cpufreq_for_each_efficient_entry_idx' 129 + - 'cpufreq_for_each_entry' 130 + - 'cpufreq_for_each_entry_idx' 131 + - 'cpufreq_for_each_valid_entry' 132 + - 'cpufreq_for_each_valid_entry_idx' 133 + - 'css_for_each_child' 134 + - 'css_for_each_descendant_post' 135 + - 'css_for_each_descendant_pre' 136 + - 'damon_for_each_region' 137 + - 'damon_for_each_region_from' 138 + - 'damon_for_each_region_safe' 139 + - 'damon_for_each_scheme' 140 + - 'damon_for_each_scheme_safe' 141 + - 'damon_for_each_target' 142 + - 'damon_for_each_target_safe' 143 + - 'damos_for_each_filter' 144 + - 'damos_for_each_filter_safe' 145 + - 'damos_for_each_ops_filter' 146 + - 'damos_for_each_ops_filter_safe' 147 + - 'damos_for_each_quota_goal' 148 + - 'damos_for_each_quota_goal_safe' 149 + - 'data__for_each_file' 150 + - 'data__for_each_file_new' 151 + - 'data__for_each_file_start' 152 + - 'def_for_each_cpu' 153 + - 'device_for_each_child_node' 154 + - 'device_for_each_child_node_scoped' 155 + - 'dma_fence_array_for_each' 156 + - 'dma_fence_chain_for_each' 157 + - 'dma_fence_unwrap_for_each' 158 + - 'dma_resv_for_each_fence' 159 + - 'dma_resv_for_each_fence_unlocked' 160 + - 'do_for_each_ftrace_op' 161 + - 'drm_atomic_crtc_for_each_plane' 162 + - 'drm_atomic_crtc_state_for_each_plane' 163 + - 'drm_atomic_crtc_state_for_each_plane_state' 164 + - 'drm_atomic_for_each_plane_damage' 165 + - 'drm_client_for_each_connector_iter' 166 + - 'drm_client_for_each_modeset' 167 + - 'drm_connector_for_each_possible_encoder' 168 + - 'drm_exec_for_each_locked_object' 169 + - 'drm_exec_for_each_locked_object_reverse' 170 + - 'drm_for_each_bridge_in_chain' 171 + - 'drm_for_each_connector_iter' 172 + - 'drm_for_each_crtc' 173 + - 'drm_for_each_crtc_reverse' 174 + - 'drm_for_each_encoder' 175 + - 'drm_for_each_encoder_mask' 176 + - 'drm_for_each_fb' 177 + - 'drm_for_each_legacy_plane' 178 + - 'drm_for_each_plane' 179 + - 'drm_for_each_plane_mask' 180 + - 'drm_for_each_privobj' 181 + - 'drm_gem_for_each_gpuvm_bo' 182 + - 'drm_gem_for_each_gpuvm_bo_safe' 183 + - 'drm_gpusvm_for_each_range' 184 + - 'drm_gpuva_for_each_op' 185 + - 'drm_gpuva_for_each_op_from_reverse' 186 + - 'drm_gpuva_for_each_op_reverse' 187 + - 'drm_gpuva_for_each_op_safe' 188 + - 'drm_gpuvm_bo_for_each_va' 189 + - 'drm_gpuvm_bo_for_each_va_safe' 190 + - 'drm_gpuvm_for_each_va' 191 + - 'drm_gpuvm_for_each_va_range' 192 + - 'drm_gpuvm_for_each_va_range_safe' 193 + - 'drm_gpuvm_for_each_va_safe' 194 + - 'drm_mm_for_each_hole' 195 + - 'drm_mm_for_each_node' 196 + - 'drm_mm_for_each_node_in_range' 197 + - 'drm_mm_for_each_node_safe' 198 + - 'dsa_switch_for_each_available_port' 199 + - 'dsa_switch_for_each_cpu_port' 200 + - 'dsa_switch_for_each_cpu_port_continue_reverse' 201 + - 'dsa_switch_for_each_port' 202 + - 'dsa_switch_for_each_port_continue_reverse' 203 + - 'dsa_switch_for_each_port_safe' 204 + - 'dsa_switch_for_each_user_port' 205 + - 'dsa_switch_for_each_user_port_continue_reverse' 206 + - 'dsa_tree_for_each_cpu_port' 207 + - 'dsa_tree_for_each_user_port' 208 + - 'dsa_tree_for_each_user_port_continue_reverse' 209 + - 'dso__for_each_symbol' 210 + - 'elf_hash_for_each_possible' 211 + - 'elf_symtab__for_each_symbol' 212 + - 'evlist__for_each_cpu' 213 + - 'evlist__for_each_entry' 214 + - 'evlist__for_each_entry_continue' 215 + - 'evlist__for_each_entry_from' 216 + - 'evlist__for_each_entry_reverse' 217 + - 'evlist__for_each_entry_safe' 218 + - 'flow_action_for_each' 219 + - 'for_each_acpi_consumer_dev' 220 + - 'for_each_acpi_dev_match' 221 + - 'for_each_active_dev_scope' 222 + - 'for_each_active_drhd_unit' 223 + - 'for_each_active_iommu' 224 + - 'for_each_active_irq' 225 + - 'for_each_active_route' 226 + - 'for_each_aggr_pgid' 227 + - 'for_each_alloc_capable_rdt_resource' 228 + - 'for_each_and_bit' 229 + - 'for_each_andnot_bit' 230 + - 'for_each_available_child_of_node' 231 + - 'for_each_available_child_of_node_scoped' 232 + - 'for_each_bench' 233 + - 'for_each_bio' 234 + - 'for_each_board_func_rsrc' 235 + - 'for_each_btf_ext_rec' 236 + - 'for_each_btf_ext_sec' 237 + - 'for_each_bvec' 238 + - 'for_each_capable_rdt_resource' 239 + - 'for_each_card_auxs' 240 + - 'for_each_card_auxs_safe' 241 + - 'for_each_card_components' 242 + - 'for_each_card_dapms' 243 + - 'for_each_card_pre_auxs' 244 + - 'for_each_card_prelinks' 245 + - 'for_each_card_rtds' 246 + - 'for_each_card_rtds_safe' 247 + - 'for_each_card_widgets' 248 + - 'for_each_card_widgets_safe' 249 + - 'for_each_cgroup_storage_type' 250 + - 'for_each_child_of_node' 251 + - 'for_each_child_of_node_scoped' 252 + - 'for_each_child_of_node_with_prefix' 253 + - 'for_each_clear_bit' 254 + - 'for_each_clear_bit_from' 255 + - 'for_each_clear_bitrange' 256 + - 'for_each_clear_bitrange_from' 257 + - 'for_each_cmd' 258 + - 'for_each_cmsghdr' 259 + - 'for_each_collection' 260 + - 'for_each_comp_order' 261 + - 'for_each_compatible_node' 262 + - 'for_each_component_dais' 263 + - 'for_each_component_dais_safe' 264 + - 'for_each_conduit' 265 + - 'for_each_console' 266 + - 'for_each_console_srcu' 267 + - 'for_each_cpu' 268 + - 'for_each_cpu_and' 269 + - 'for_each_cpu_andnot' 270 + - 'for_each_cpu_from' 271 + - 'for_each_cpu_or' 272 + - 'for_each_cpu_wrap' 273 + - 'for_each_dapm_widgets' 274 + - 'for_each_dedup_cand' 275 + - 'for_each_dev_addr' 276 + - 'for_each_dev_scope' 277 + - 'for_each_dma_cap_mask' 278 + - 'for_each_dpcm_be' 279 + - 'for_each_dpcm_be_rollback' 280 + - 'for_each_dpcm_be_safe' 281 + - 'for_each_dpcm_fe' 282 + - 'for_each_drhd_unit' 283 + - 'for_each_dss_dev' 284 + - 'for_each_efi_memory_desc' 285 + - 'for_each_efi_memory_desc_in_map' 286 + - 'for_each_element' 287 + - 'for_each_element_extid' 288 + - 'for_each_element_id' 289 + - 'for_each_enabled_cpu' 290 + - 'for_each_endpoint_of_node' 291 + - 'for_each_event' 292 + - 'for_each_event_tps' 293 + - 'for_each_evictable_lru' 294 + - 'for_each_fib6_node_rt_rcu' 295 + - 'for_each_fib6_walker_rt' 296 + - 'for_each_file_lock' 297 + - 'for_each_free_mem_pfn_range_in_zone_from' 298 + - 'for_each_free_mem_range' 299 + - 'for_each_free_mem_range_reverse' 300 + - 'for_each_func_rsrc' 301 + - 'for_each_gpiochip_node' 302 + - 'for_each_group_evsel' 303 + - 'for_each_group_evsel_head' 304 + - 'for_each_group_member' 305 + - 'for_each_group_member_head' 306 + - 'for_each_hstate' 307 + - 'for_each_hwgpio' 308 + - 'for_each_hwgpio_in_range' 309 + - 'for_each_if' 310 + - 'for_each_inject_fn' 311 + - 'for_each_insn' 312 + - 'for_each_insn_op_loc' 313 + - 'for_each_insn_prefix' 314 + - 'for_each_intid' 315 + - 'for_each_iommu' 316 + - 'for_each_ip_tunnel_rcu' 317 + - 'for_each_irq_desc' 318 + - 'for_each_irq_nr' 319 + - 'for_each_lang' 320 + - 'for_each_link_ch_maps' 321 + - 'for_each_link_codecs' 322 + - 'for_each_link_cpus' 323 + - 'for_each_link_platforms' 324 + - 'for_each_lru' 325 + - 'for_each_matching_node' 326 + - 'for_each_matching_node_and_match' 327 + - 'for_each_media_entity_data_link' 328 + - 'for_each_mem_pfn_range' 329 + - 'for_each_mem_range' 330 + - 'for_each_mem_range_rev' 331 + - 'for_each_mem_region' 332 + - 'for_each_member' 333 + - 'for_each_memory' 334 + - 'for_each_migratetype_order' 335 + - 'for_each_missing_reg' 336 + - 'for_each_mle_subelement' 337 + - 'for_each_mod_mem_type' 338 + - 'for_each_mon_capable_rdt_resource' 339 + - 'for_each_mp_bvec' 340 + - 'for_each_net' 341 + - 'for_each_net_continue_reverse' 342 + - 'for_each_net_rcu' 343 + - 'for_each_netdev' 344 + - 'for_each_netdev_continue' 345 + - 'for_each_netdev_continue_rcu' 346 + - 'for_each_netdev_continue_reverse' 347 + - 'for_each_netdev_dump' 348 + - 'for_each_netdev_feature' 349 + - 'for_each_netdev_in_bond_rcu' 350 + - 'for_each_netdev_rcu' 351 + - 'for_each_netdev_reverse' 352 + - 'for_each_netdev_safe' 353 + - 'for_each_new_connector_in_state' 354 + - 'for_each_new_crtc_in_state' 355 + - 'for_each_new_mst_mgr_in_state' 356 + - 'for_each_new_plane_in_state' 357 + - 'for_each_new_plane_in_state_reverse' 358 + - 'for_each_new_private_obj_in_state' 359 + - 'for_each_new_reg' 360 + - 'for_each_nhlt_endpoint' 361 + - 'for_each_nhlt_endpoint_fmtcfg' 362 + - 'for_each_nhlt_fmtcfg' 363 + - 'for_each_node' 364 + - 'for_each_node_by_name' 365 + - 'for_each_node_by_type' 366 + - 'for_each_node_mask' 367 + - 'for_each_node_numadist' 368 + - 'for_each_node_state' 369 + - 'for_each_node_with_cpus' 370 + - 'for_each_node_with_property' 371 + - 'for_each_nonreserved_multicast_dest_pgid' 372 + - 'for_each_numa_hop_mask' 373 + - 'for_each_of_allnodes' 374 + - 'for_each_of_allnodes_from' 375 + - 'for_each_of_cpu_node' 376 + - 'for_each_of_graph_port' 377 + - 'for_each_of_graph_port_endpoint' 378 + - 'for_each_of_pci_range' 379 + - 'for_each_old_connector_in_state' 380 + - 'for_each_old_crtc_in_state' 381 + - 'for_each_old_mst_mgr_in_state' 382 + - 'for_each_old_plane_in_state' 383 + - 'for_each_old_private_obj_in_state' 384 + - 'for_each_oldnew_connector_in_state' 385 + - 'for_each_oldnew_crtc_in_state' 386 + - 'for_each_oldnew_mst_mgr_in_state' 387 + - 'for_each_oldnew_plane_in_state' 388 + - 'for_each_oldnew_plane_in_state_reverse' 389 + - 'for_each_oldnew_private_obj_in_state' 390 + - 'for_each_online_cpu' 391 + - 'for_each_online_cpu_wrap' 392 + - 'for_each_online_node' 393 + - 'for_each_online_pgdat' 394 + - 'for_each_or_bit' 395 + - 'for_each_page_ext' 396 + - 'for_each_path' 397 + - 'for_each_pci_bridge' 398 + - 'for_each_pci_dev' 399 + - 'for_each_pcm_streams' 400 + - 'for_each_physmem_range' 401 + - 'for_each_populated_zone' 402 + - 'for_each_possible_cpu' 403 + - 'for_each_possible_cpu_wrap' 404 + - 'for_each_present_blessed_reg' 405 + - 'for_each_present_cpu' 406 + - 'for_each_present_section_nr' 407 + - 'for_each_prime_number' 408 + - 'for_each_prime_number_from' 409 + - 'for_each_probe_cache_entry' 410 + - 'for_each_process' 411 + - 'for_each_process_thread' 412 + - 'for_each_prop_codec_conf' 413 + - 'for_each_prop_dai_codec' 414 + - 'for_each_prop_dai_cpu' 415 + - 'for_each_prop_dlc_codecs' 416 + - 'for_each_prop_dlc_cpus' 417 + - 'for_each_prop_dlc_platforms' 418 + - 'for_each_property_of_node' 419 + - 'for_each_rdt_resource' 420 + - 'for_each_reg' 421 + - 'for_each_reg_filtered' 422 + - 'for_each_reloc' 423 + - 'for_each_reloc_from' 424 + - 'for_each_requested_gpio' 425 + - 'for_each_requested_gpio_in_range' 426 + - 'for_each_reserved_child_of_node' 427 + - 'for_each_reserved_mem_range' 428 + - 'for_each_reserved_mem_region' 429 + - 'for_each_rtd_ch_maps' 430 + - 'for_each_rtd_codec_dais' 431 + - 'for_each_rtd_components' 432 + - 'for_each_rtd_cpu_dais' 433 + - 'for_each_rtd_dais' 434 + - 'for_each_rtd_dais_reverse' 435 + - 'for_each_sband_iftype_data' 436 + - 'for_each_script' 437 + - 'for_each_sec' 438 + - 'for_each_set_bit' 439 + - 'for_each_set_bit_from' 440 + - 'for_each_set_bit_wrap' 441 + - 'for_each_set_bitrange' 442 + - 'for_each_set_bitrange_from' 443 + - 'for_each_set_clump8' 444 + - 'for_each_sg' 445 + - 'for_each_sg_dma_page' 446 + - 'for_each_sg_page' 447 + - 'for_each_sgtable_dma_page' 448 + - 'for_each_sgtable_dma_sg' 449 + - 'for_each_sgtable_page' 450 + - 'for_each_sgtable_sg' 451 + - 'for_each_sibling_event' 452 + - 'for_each_sta_active_link' 453 + - 'for_each_subelement' 454 + - 'for_each_subelement_extid' 455 + - 'for_each_subelement_id' 456 + - 'for_each_sublist' 457 + - 'for_each_subsystem' 458 + - 'for_each_suite' 459 + - 'for_each_supported_activate_fn' 460 + - 'for_each_supported_inject_fn' 461 + - 'for_each_sym' 462 + - 'for_each_thread' 463 + - 'for_each_token' 464 + - 'for_each_unicast_dest_pgid' 465 + - 'for_each_valid_link' 466 + - 'for_each_vif_active_link' 467 + - 'for_each_vma' 468 + - 'for_each_vma_range' 469 + - 'for_each_vsi' 470 + - 'for_each_wakeup_source' 471 + - 'for_each_zone' 472 + - 'for_each_zone_zonelist' 473 + - 'for_each_zone_zonelist_nodemask' 474 + - 'func_for_each_insn' 475 + - 'fwnode_for_each_available_child_node' 476 + - 'fwnode_for_each_child_node' 477 + - 'fwnode_for_each_parent_node' 478 + - 'fwnode_graph_for_each_endpoint' 479 + - 'gadget_for_each_ep' 480 + - 'genradix_for_each' 481 + - 'genradix_for_each_from' 482 + - 'genradix_for_each_reverse' 483 + - 'hash_for_each' 484 + - 'hash_for_each_possible' 485 + - 'hash_for_each_possible_rcu' 486 + - 'hash_for_each_possible_rcu_notrace' 487 + - 'hash_for_each_possible_safe' 488 + - 'hash_for_each_rcu' 489 + - 'hash_for_each_safe' 490 + - 'hashmap__for_each_entry' 491 + - 'hashmap__for_each_entry_safe' 492 + - 'hashmap__for_each_key_entry' 493 + - 'hashmap__for_each_key_entry_safe' 494 + - 'hctx_for_each_ctx' 495 + - 'hists__for_each_format' 496 + - 'hists__for_each_sort_list' 497 + - 'hlist_bl_for_each_entry' 498 + - 'hlist_bl_for_each_entry_rcu' 499 + - 'hlist_bl_for_each_entry_safe' 500 + - 'hlist_for_each' 501 + - 'hlist_for_each_entry' 502 + - 'hlist_for_each_entry_continue' 503 + - 'hlist_for_each_entry_continue_rcu' 504 + - 'hlist_for_each_entry_continue_rcu_bh' 505 + - 'hlist_for_each_entry_from' 506 + - 'hlist_for_each_entry_from_rcu' 507 + - 'hlist_for_each_entry_rcu' 508 + - 'hlist_for_each_entry_rcu_bh' 509 + - 'hlist_for_each_entry_rcu_notrace' 510 + - 'hlist_for_each_entry_safe' 511 + - 'hlist_for_each_entry_srcu' 512 + - 'hlist_for_each_safe' 513 + - 'hlist_nulls_for_each_entry' 514 + - 'hlist_nulls_for_each_entry_from' 515 + - 'hlist_nulls_for_each_entry_rcu' 516 + - 'hlist_nulls_for_each_entry_safe' 517 + - 'i3c_bus_for_each_i2cdev' 518 + - 'i3c_bus_for_each_i3cdev' 519 + - 'idr_for_each_entry' 520 + - 'idr_for_each_entry_continue' 521 + - 'idr_for_each_entry_continue_ul' 522 + - 'idr_for_each_entry_ul' 523 + - 'iio_for_each_active_channel' 524 + - 'in_dev_for_each_ifa_rcu' 525 + - 'in_dev_for_each_ifa_rtnl' 526 + - 'in_dev_for_each_ifa_rtnl_net' 527 + - 'inet_bind_bucket_for_each' 528 + - 'interval_tree_for_each_span' 529 + - 'intlist__for_each_entry' 530 + - 'intlist__for_each_entry_safe' 531 + - 'kcore_copy__for_each_phdr' 532 + - 'key_for_each' 533 + - 'key_for_each_safe' 534 + - 'klp_for_each_func' 535 + - 'klp_for_each_func_safe' 536 + - 'klp_for_each_func_static' 537 + - 'klp_for_each_object' 538 + - 'klp_for_each_object_safe' 539 + - 'klp_for_each_object_static' 540 + - 'kunit_suite_for_each_test_case' 541 + - 'kvm_for_each_memslot' 542 + - 'kvm_for_each_memslot_in_gfn_range' 543 + - 'kvm_for_each_vcpu' 544 + - 'libbpf_nla_for_each_attr' 545 + - 'list_for_each' 546 + - 'list_for_each_codec' 547 + - 'list_for_each_codec_safe' 548 + - 'list_for_each_continue' 549 + - 'list_for_each_entry' 550 + - 'list_for_each_entry_continue' 551 + - 'list_for_each_entry_continue_rcu' 552 + - 'list_for_each_entry_continue_reverse' 553 + - 'list_for_each_entry_from' 554 + - 'list_for_each_entry_from_rcu' 555 + - 'list_for_each_entry_from_reverse' 556 + - 'list_for_each_entry_lockless' 557 + - 'list_for_each_entry_rcu' 558 + - 'list_for_each_entry_reverse' 559 + - 'list_for_each_entry_safe' 560 + - 'list_for_each_entry_safe_continue' 561 + - 'list_for_each_entry_safe_from' 562 + - 'list_for_each_entry_safe_reverse' 563 + - 'list_for_each_entry_srcu' 564 + - 'list_for_each_from' 565 + - 'list_for_each_prev' 566 + - 'list_for_each_prev_safe' 567 + - 'list_for_each_rcu' 568 + - 'list_for_each_safe' 569 + - 'llist_for_each' 570 + - 'llist_for_each_entry' 571 + - 'llist_for_each_entry_safe' 572 + - 'llist_for_each_safe' 573 + - 'lwq_for_each_safe' 574 + - 'map__for_each_symbol' 575 + - 'map__for_each_symbol_by_name' 576 + - 'mas_for_each' 577 + - 'mas_for_each_rev' 578 + - 'mci_for_each_dimm' 579 + - 'media_device_for_each_entity' 580 + - 'media_device_for_each_intf' 581 + - 'media_device_for_each_link' 582 + - 'media_device_for_each_pad' 583 + - 'media_entity_for_each_pad' 584 + - 'media_pipeline_for_each_entity' 585 + - 'media_pipeline_for_each_pad' 586 + - 'mlx5_lag_for_each_peer_mdev' 587 + - 'mptcp_for_each_subflow' 588 + - 'msi_domain_for_each_desc' 589 + - 'msi_for_each_desc' 590 + - 'mt_for_each' 591 + - 'nanddev_io_for_each_block' 592 + - 'nanddev_io_for_each_page' 593 + - 'neigh_for_each_in_bucket' 594 + - 'neigh_for_each_in_bucket_rcu' 595 + - 'neigh_for_each_in_bucket_safe' 596 + - 'netdev_for_each_lower_dev' 597 + - 'netdev_for_each_lower_private' 598 + - 'netdev_for_each_lower_private_rcu' 599 + - 'netdev_for_each_mc_addr' 600 + - 'netdev_for_each_synced_mc_addr' 601 + - 'netdev_for_each_synced_uc_addr' 602 + - 'netdev_for_each_uc_addr' 603 + - 'netdev_for_each_upper_dev_rcu' 604 + - 'netdev_hw_addr_list_for_each' 605 + - 'nft_rule_for_each_expr' 606 + - 'nla_for_each_attr' 607 + - 'nla_for_each_attr_type' 608 + - 'nla_for_each_nested' 609 + - 'nla_for_each_nested_type' 610 + - 'nlmsg_for_each_attr' 611 + - 'nlmsg_for_each_msg' 612 + - 'nr_neigh_for_each' 613 + - 'nr_neigh_for_each_safe' 614 + - 'nr_node_for_each' 615 + - 'nr_node_for_each_safe' 616 + - 'of_for_each_phandle' 617 + - 'of_property_for_each_string' 618 + - 'of_property_for_each_u32' 619 + - 'pci_bus_for_each_resource' 620 + - 'pci_dev_for_each_resource' 621 + - 'pcl_for_each_chunk' 622 + - 'pcl_for_each_segment' 623 + - 'pcm_for_each_format' 624 + - 'perf_config_items__for_each_entry' 625 + - 'perf_config_sections__for_each_entry' 626 + - 'perf_config_set__for_each_entry' 627 + - 'perf_cpu_map__for_each_cpu' 628 + - 'perf_cpu_map__for_each_cpu_skip_any' 629 + - 'perf_cpu_map__for_each_idx' 630 + - 'perf_evlist__for_each_entry' 631 + - 'perf_evlist__for_each_entry_reverse' 632 + - 'perf_evlist__for_each_entry_safe' 633 + - 'perf_evlist__for_each_evsel' 634 + - 'perf_evlist__for_each_mmap' 635 + - 'perf_evsel_for_each_per_thread_period_safe' 636 + - 'perf_hpp_list__for_each_format' 637 + - 'perf_hpp_list__for_each_format_safe' 638 + - 'perf_hpp_list__for_each_sort_list' 639 + - 'perf_hpp_list__for_each_sort_list_safe' 640 + - 'plist_for_each' 641 + - 'plist_for_each_continue' 642 + - 'plist_for_each_entry' 643 + - 'plist_for_each_entry_continue' 644 + - 'plist_for_each_entry_safe' 645 + - 'plist_for_each_safe' 646 + - 'pnp_for_each_card' 647 + - 'pnp_for_each_dev' 648 + - 'protocol_for_each_card' 649 + - 'protocol_for_each_dev' 650 + - 'queue_for_each_hw_ctx' 651 + - 'radix_tree_for_each_slot' 652 + - 'radix_tree_for_each_tagged' 653 + - 'rb_for_each' 654 + - 'rbtree_postorder_for_each_entry_safe' 655 + - 'rdma_for_each_block' 656 + - 'rdma_for_each_port' 657 + - 'rdma_umem_for_each_dma_block' 658 + - 'resource_list_for_each_entry' 659 + - 'resource_list_for_each_entry_safe' 660 + - 'rhl_for_each_entry_rcu' 661 + - 'rhl_for_each_rcu' 662 + - 'rht_for_each' 663 + - 'rht_for_each_entry' 664 + - 'rht_for_each_entry_from' 665 + - 'rht_for_each_entry_rcu' 666 + - 'rht_for_each_entry_rcu_from' 667 + - 'rht_for_each_entry_safe' 668 + - 'rht_for_each_from' 669 + - 'rht_for_each_rcu' 670 + - 'rht_for_each_rcu_from' 671 + - 'rq_for_each_bvec' 672 + - 'rq_for_each_segment' 673 + - 'rq_list_for_each' 674 + - 'rq_list_for_each_safe' 675 + - 'sample_read_group__for_each' 676 + - 'scsi_for_each_prot_sg' 677 + - 'scsi_for_each_sg' 678 + - 'sctp_for_each_hentry' 679 + - 'sctp_skb_for_each' 680 + - 'sec_for_each_insn' 681 + - 'sec_for_each_insn_continue' 682 + - 'sec_for_each_insn_from' 683 + - 'sec_for_each_sym' 684 + - 'shdma_for_each_chan' 685 + - 'shost_for_each_device' 686 + - 'sk_for_each' 687 + - 'sk_for_each_bound' 688 + - 'sk_for_each_bound_safe' 689 + - 'sk_for_each_entry_offset_rcu' 690 + - 'sk_for_each_from' 691 + - 'sk_for_each_rcu' 692 + - 'sk_for_each_safe' 693 + - 'sk_nulls_for_each' 694 + - 'sk_nulls_for_each_from' 695 + - 'sk_nulls_for_each_rcu' 696 + - 'snd_array_for_each' 697 + - 'snd_pcm_group_for_each_entry' 698 + - 'snd_soc_dapm_widget_for_each_path' 699 + - 'snd_soc_dapm_widget_for_each_path_safe' 700 + - 'snd_soc_dapm_widget_for_each_sink_path' 701 + - 'snd_soc_dapm_widget_for_each_source_path' 702 + - 'sparsebit_for_each_set_range' 703 + - 'strlist__for_each_entry' 704 + - 'strlist__for_each_entry_safe' 705 + - 'sym_for_each_insn' 706 + - 'sym_for_each_insn_continue_reverse' 707 + - 'symbols__for_each_entry' 708 + - 'tb_property_for_each' 709 + - 'tcf_act_for_each_action' 710 + - 'tcf_exts_for_each_action' 711 + - 'test_suite__for_each_test_case' 712 + - 'tool_pmu__for_each_event' 713 + - 'ttm_bo_lru_for_each_reserved_guarded' 714 + - 'ttm_resource_manager_for_each_res' 715 + - 'udp_lrpa_for_each_entry_rcu' 716 + - 'udp_portaddr_for_each_entry' 717 + - 'udp_portaddr_for_each_entry_rcu' 718 + - 'usb_hub_for_each_child' 719 + - 'v4l2_device_for_each_subdev' 720 + - 'v4l2_m2m_for_each_dst_buf' 721 + - 'v4l2_m2m_for_each_dst_buf_safe' 722 + - 'v4l2_m2m_for_each_src_buf' 723 + - 'v4l2_m2m_for_each_src_buf_safe' 724 + - 'virtio_device_for_each_vq' 725 + - 'vkms_config_for_each_connector' 726 + - 'vkms_config_for_each_crtc' 727 + - 'vkms_config_for_each_encoder' 728 + - 'vkms_config_for_each_plane' 729 + - 'vkms_config_connector_for_each_possible_encoder' 730 + - 'vkms_config_encoder_for_each_possible_crtc' 731 + - 'vkms_config_plane_for_each_possible_crtc' 732 + - 'while_for_each_ftrace_op' 733 + - 'workloads__for_each' 734 + - 'xa_for_each' 735 + - 'xa_for_each_marked' 736 + - 'xa_for_each_range' 737 + - 'xa_for_each_start' 738 + - 'xas_for_each' 739 + - 'xas_for_each_conflict' 740 + - 'xas_for_each_marked' 741 + - 'xbc_array_for_each_value' 742 + - 'xbc_for_each_key_value' 743 + - 'xbc_node_for_each_array_value' 744 + - 'xbc_node_for_each_child' 745 + - 'xbc_node_for_each_key_value' 746 + - 'xbc_node_for_each_subkey' 747 + - 'ynl_attr_for_each' 748 + - 'ynl_attr_for_each_nested' 749 + - 'ynl_attr_for_each_payload' 750 + - 'zorro_for_each_dev' 751 + 752 + IncludeBlocks: Preserve 753 + IncludeCategories: 754 + - Regex: '.*' 755 + Priority: 1 756 + IncludeIsMainRegex: '(Test)?$' 757 + IndentCaseLabels: false 758 + IndentGotoLabels: false 759 + IndentPPDirectives: None 760 + IndentWidth: 8 761 + IndentWrappedFunctionNames: false 762 + JavaScriptQuotes: Leave 763 + JavaScriptWrapImports: true 764 + KeepEmptyLinesAtTheStartOfBlocks: false 765 + MacroBlockBegin: '' 766 + MacroBlockEnd: '' 767 + MaxEmptyLinesToKeep: 1 768 + NamespaceIndentation: None 769 + ObjCBinPackProtocolList: Auto 770 + ObjCBlockIndentWidth: 8 771 + ObjCSpaceAfterProperty: true 772 + ObjCSpaceBeforeProtocolList: true 773 + 774 + # Taken from git's rules 775 + PenaltyBreakAssignment: 10 776 + PenaltyBreakBeforeFirstCallParameter: 30 777 + PenaltyBreakComment: 10 778 + PenaltyBreakFirstLessLess: 0 779 + PenaltyBreakString: 10 780 + PenaltyExcessCharacter: 100 781 + PenaltyReturnTypeOnItsOwnLine: 60 782 + 783 + PointerAlignment: Right 784 + ReflowComments: false 785 + SortIncludes: false 786 + SortUsingDeclarations: false 787 + SpaceAfterCStyleCast: false 788 + SpaceAfterTemplateKeyword: true 789 + SpaceBeforeAssignmentOperators: true 790 + SpaceBeforeCtorInitializerColon: true 791 + SpaceBeforeInheritanceColon: true 792 + SpaceBeforeParens: ControlStatementsExceptForEachMacros 793 + SpaceBeforeRangeBasedForLoopColon: true 794 + SpaceInEmptyParentheses: false 795 + SpacesBeforeTrailingComments: 1 796 + SpacesInAngles: false 797 + SpacesInContainerLiterals: false 798 + SpacesInCStyleCastParentheses: false 799 + SpacesInParentheses: false 800 + SpacesInSquareBrackets: false 801 + Standard: Cpp03 802 + TabWidth: 8 803 + UseTab: Always 804 + ...
+1
.gitignore
··· 58 58 # 59 59 # We don't want to ignore the following even if they are dot-files 60 60 # 61 + !.clang-format 61 62 !.get_maintainer.* 62 63 !.gitattributes 63 64 !.gitignore