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' 7599e309b6SJason Gunthorpe - '__ata_qc_for_each' 7699e309b6SJason Gunthorpe - 'ata_qc_for_each' 7799e309b6SJason Gunthorpe - 'ata_qc_for_each_raw' 7899e309b6SJason Gunthorpe - 'ata_qc_for_each_with_internal' 79d4ef8d3fSMiguel Ojeda - 'ax25_for_each' 80d4ef8d3fSMiguel Ojeda - 'ax25_uid_for_each' 81f16628d6SMiguel Ojeda - '__bio_for_each_bvec' 82f16628d6SMiguel Ojeda - 'bio_for_each_bvec' 83d4ef8d3fSMiguel Ojeda - 'bio_for_each_integrity_vec' 84d4ef8d3fSMiguel Ojeda - '__bio_for_each_segment' 85d4ef8d3fSMiguel Ojeda - 'bio_for_each_segment' 86d4ef8d3fSMiguel Ojeda - 'bio_for_each_segment_all' 87d4ef8d3fSMiguel Ojeda - 'bio_list_for_each' 88d4ef8d3fSMiguel Ojeda - 'bip_for_each_vec' 8911a4a8f7SMiguel Ojeda - 'bitmap_for_each_clear_region' 9011a4a8f7SMiguel Ojeda - 'bitmap_for_each_set_region' 91d4ef8d3fSMiguel Ojeda - 'blkg_for_each_descendant_post' 92d4ef8d3fSMiguel Ojeda - 'blkg_for_each_descendant_pre' 93d4ef8d3fSMiguel Ojeda - 'blk_queue_for_each_rl' 94d4ef8d3fSMiguel Ojeda - 'bond_for_each_slave' 95d4ef8d3fSMiguel Ojeda - 'bond_for_each_slave_rcu' 9699e309b6SJason Gunthorpe - 'bpf_for_each_spilled_reg' 97d4ef8d3fSMiguel Ojeda - 'btree_for_each_safe128' 98d4ef8d3fSMiguel Ojeda - 'btree_for_each_safe32' 99d4ef8d3fSMiguel Ojeda - 'btree_for_each_safe64' 100d4ef8d3fSMiguel Ojeda - 'btree_for_each_safel' 101d4ef8d3fSMiguel Ojeda - 'card_for_each_dev' 102d4ef8d3fSMiguel Ojeda - 'cgroup_taskset_for_each' 103d4ef8d3fSMiguel Ojeda - 'cgroup_taskset_for_each_leader' 104d4ef8d3fSMiguel Ojeda - 'cpufreq_for_each_entry' 105d4ef8d3fSMiguel Ojeda - 'cpufreq_for_each_entry_idx' 106d4ef8d3fSMiguel Ojeda - 'cpufreq_for_each_valid_entry' 107d4ef8d3fSMiguel Ojeda - 'cpufreq_for_each_valid_entry_idx' 108d4ef8d3fSMiguel Ojeda - 'css_for_each_child' 109d4ef8d3fSMiguel Ojeda - 'css_for_each_descendant_post' 110d4ef8d3fSMiguel Ojeda - 'css_for_each_descendant_pre' 111d4ef8d3fSMiguel Ojeda - 'device_for_each_child_node' 11252d08347SMiguel Ojeda - 'dma_fence_chain_for_each' 113d4ef8d3fSMiguel Ojeda - 'drm_atomic_crtc_for_each_plane' 114d4ef8d3fSMiguel Ojeda - 'drm_atomic_crtc_state_for_each_plane' 115d4ef8d3fSMiguel Ojeda - 'drm_atomic_crtc_state_for_each_plane_state' 11699e309b6SJason Gunthorpe - 'drm_atomic_for_each_plane_damage' 11752d08347SMiguel Ojeda - 'drm_client_for_each_connector_iter' 11852d08347SMiguel Ojeda - 'drm_client_for_each_modeset' 11999e309b6SJason Gunthorpe - 'drm_connector_for_each_possible_encoder' 12011a4a8f7SMiguel Ojeda - 'drm_for_each_bridge_in_chain' 121d4ef8d3fSMiguel Ojeda - 'drm_for_each_connector_iter' 122d4ef8d3fSMiguel Ojeda - 'drm_for_each_crtc' 123d4ef8d3fSMiguel Ojeda - 'drm_for_each_encoder' 124d4ef8d3fSMiguel Ojeda - 'drm_for_each_encoder_mask' 125d4ef8d3fSMiguel Ojeda - 'drm_for_each_fb' 126d4ef8d3fSMiguel Ojeda - 'drm_for_each_legacy_plane' 127d4ef8d3fSMiguel Ojeda - 'drm_for_each_plane' 128d4ef8d3fSMiguel Ojeda - 'drm_for_each_plane_mask' 129f16628d6SMiguel Ojeda - 'drm_for_each_privobj' 130d4ef8d3fSMiguel Ojeda - 'drm_mm_for_each_hole' 131d4ef8d3fSMiguel Ojeda - 'drm_mm_for_each_node' 132d4ef8d3fSMiguel Ojeda - 'drm_mm_for_each_node_in_range' 133d4ef8d3fSMiguel Ojeda - 'drm_mm_for_each_node_safe' 134f16628d6SMiguel Ojeda - 'flow_action_for_each' 13552d08347SMiguel Ojeda - 'for_each_active_dev_scope' 136d4ef8d3fSMiguel Ojeda - 'for_each_active_drhd_unit' 137d4ef8d3fSMiguel Ojeda - 'for_each_active_iommu' 138d4ef8d3fSMiguel Ojeda - 'for_each_available_child_of_node' 139d4ef8d3fSMiguel Ojeda - 'for_each_bio' 140d4ef8d3fSMiguel Ojeda - 'for_each_board_func_rsrc' 141d4ef8d3fSMiguel Ojeda - 'for_each_bvec' 14211a4a8f7SMiguel Ojeda - 'for_each_card_auxs' 14311a4a8f7SMiguel Ojeda - 'for_each_card_auxs_safe' 14499e309b6SJason Gunthorpe - 'for_each_card_components' 14511a4a8f7SMiguel Ojeda - 'for_each_card_pre_auxs' 14699e309b6SJason Gunthorpe - 'for_each_card_prelinks' 14799e309b6SJason Gunthorpe - 'for_each_card_rtds' 14899e309b6SJason Gunthorpe - 'for_each_card_rtds_safe' 14999e309b6SJason Gunthorpe - 'for_each_cgroup_storage_type' 150d4ef8d3fSMiguel Ojeda - 'for_each_child_of_node' 151d4ef8d3fSMiguel Ojeda - 'for_each_clear_bit' 152d4ef8d3fSMiguel Ojeda - 'for_each_clear_bit_from' 153d4ef8d3fSMiguel Ojeda - 'for_each_cmsghdr' 154d4ef8d3fSMiguel Ojeda - 'for_each_compatible_node' 15599e309b6SJason Gunthorpe - 'for_each_component_dais' 15699e309b6SJason Gunthorpe - 'for_each_component_dais_safe' 15799e309b6SJason Gunthorpe - 'for_each_comp_order' 158d4ef8d3fSMiguel Ojeda - 'for_each_console' 159d4ef8d3fSMiguel Ojeda - 'for_each_cpu' 160d4ef8d3fSMiguel Ojeda - 'for_each_cpu_and' 161d4ef8d3fSMiguel Ojeda - 'for_each_cpu_not' 162d4ef8d3fSMiguel Ojeda - 'for_each_cpu_wrap' 163d4ef8d3fSMiguel Ojeda - 'for_each_dev_addr' 16452d08347SMiguel Ojeda - 'for_each_dev_scope' 16552d08347SMiguel Ojeda - 'for_each_displayid_db' 166d4ef8d3fSMiguel Ojeda - 'for_each_dma_cap_mask' 16799e309b6SJason Gunthorpe - 'for_each_dpcm_be' 16899e309b6SJason Gunthorpe - 'for_each_dpcm_be_rollback' 16999e309b6SJason Gunthorpe - 'for_each_dpcm_be_safe' 17099e309b6SJason Gunthorpe - 'for_each_dpcm_fe' 171d4ef8d3fSMiguel Ojeda - 'for_each_drhd_unit' 172d4ef8d3fSMiguel Ojeda - 'for_each_dss_dev' 17311a4a8f7SMiguel Ojeda - 'for_each_efi_handle' 174d4ef8d3fSMiguel Ojeda - 'for_each_efi_memory_desc' 175d4ef8d3fSMiguel Ojeda - 'for_each_efi_memory_desc_in_map' 176f16628d6SMiguel Ojeda - 'for_each_element' 177f16628d6SMiguel Ojeda - 'for_each_element_extid' 178f16628d6SMiguel Ojeda - 'for_each_element_id' 179d4ef8d3fSMiguel Ojeda - 'for_each_endpoint_of_node' 180d4ef8d3fSMiguel Ojeda - 'for_each_evictable_lru' 181d4ef8d3fSMiguel Ojeda - 'for_each_fib6_node_rt_rcu' 182d4ef8d3fSMiguel Ojeda - 'for_each_fib6_walker_rt' 18352d08347SMiguel Ojeda - 'for_each_free_mem_pfn_range_in_zone' 18452d08347SMiguel Ojeda - 'for_each_free_mem_pfn_range_in_zone_from' 185d4ef8d3fSMiguel Ojeda - 'for_each_free_mem_range' 186d4ef8d3fSMiguel Ojeda - 'for_each_free_mem_range_reverse' 187d4ef8d3fSMiguel Ojeda - 'for_each_func_rsrc' 188d4ef8d3fSMiguel Ojeda - 'for_each_hstate' 189d4ef8d3fSMiguel Ojeda - 'for_each_if' 190d4ef8d3fSMiguel Ojeda - 'for_each_iommu' 191d4ef8d3fSMiguel Ojeda - 'for_each_ip_tunnel_rcu' 192d4ef8d3fSMiguel Ojeda - 'for_each_irq_nr' 19399e309b6SJason Gunthorpe - 'for_each_link_codecs' 19452d08347SMiguel Ojeda - 'for_each_link_platforms' 195d4ef8d3fSMiguel Ojeda - 'for_each_lru' 196d4ef8d3fSMiguel Ojeda - 'for_each_matching_node' 197d4ef8d3fSMiguel Ojeda - 'for_each_matching_node_and_match' 19811a4a8f7SMiguel Ojeda - 'for_each_member' 199d4ef8d3fSMiguel Ojeda - 'for_each_memblock' 200d4ef8d3fSMiguel Ojeda - 'for_each_memblock_type' 201d4ef8d3fSMiguel Ojeda - 'for_each_memcg_cache_index' 202d4ef8d3fSMiguel Ojeda - 'for_each_mem_pfn_range' 203d4ef8d3fSMiguel Ojeda - 'for_each_mem_range' 204d4ef8d3fSMiguel Ojeda - 'for_each_mem_range_rev' 205d4ef8d3fSMiguel Ojeda - 'for_each_migratetype_order' 206d4ef8d3fSMiguel Ojeda - 'for_each_msi_entry' 20799e309b6SJason Gunthorpe - 'for_each_msi_entry_safe' 208d4ef8d3fSMiguel Ojeda - 'for_each_net' 20911a4a8f7SMiguel Ojeda - 'for_each_net_continue_reverse' 210d4ef8d3fSMiguel Ojeda - 'for_each_netdev' 211d4ef8d3fSMiguel Ojeda - 'for_each_netdev_continue' 212d4ef8d3fSMiguel Ojeda - 'for_each_netdev_continue_rcu' 21311a4a8f7SMiguel Ojeda - 'for_each_netdev_continue_reverse' 214d4ef8d3fSMiguel Ojeda - 'for_each_netdev_feature' 215d4ef8d3fSMiguel Ojeda - 'for_each_netdev_in_bond_rcu' 216d4ef8d3fSMiguel Ojeda - 'for_each_netdev_rcu' 217d4ef8d3fSMiguel Ojeda - 'for_each_netdev_reverse' 218d4ef8d3fSMiguel Ojeda - 'for_each_netdev_safe' 219d4ef8d3fSMiguel Ojeda - 'for_each_net_rcu' 220d4ef8d3fSMiguel Ojeda - 'for_each_new_connector_in_state' 221d4ef8d3fSMiguel Ojeda - 'for_each_new_crtc_in_state' 222f16628d6SMiguel Ojeda - 'for_each_new_mst_mgr_in_state' 223d4ef8d3fSMiguel Ojeda - 'for_each_new_plane_in_state' 224d4ef8d3fSMiguel Ojeda - 'for_each_new_private_obj_in_state' 225d4ef8d3fSMiguel Ojeda - 'for_each_node' 226d4ef8d3fSMiguel Ojeda - 'for_each_node_by_name' 227d4ef8d3fSMiguel Ojeda - 'for_each_node_by_type' 228d4ef8d3fSMiguel Ojeda - 'for_each_node_mask' 229d4ef8d3fSMiguel Ojeda - 'for_each_node_state' 230d4ef8d3fSMiguel Ojeda - 'for_each_node_with_cpus' 231d4ef8d3fSMiguel Ojeda - 'for_each_node_with_property' 232d4ef8d3fSMiguel Ojeda - 'for_each_of_allnodes' 233d4ef8d3fSMiguel Ojeda - 'for_each_of_allnodes_from' 23499e309b6SJason Gunthorpe - 'for_each_of_cpu_node' 235d4ef8d3fSMiguel Ojeda - 'for_each_of_pci_range' 236d4ef8d3fSMiguel Ojeda - 'for_each_old_connector_in_state' 237d4ef8d3fSMiguel Ojeda - 'for_each_old_crtc_in_state' 238f16628d6SMiguel Ojeda - 'for_each_old_mst_mgr_in_state' 239d4ef8d3fSMiguel Ojeda - 'for_each_oldnew_connector_in_state' 240d4ef8d3fSMiguel Ojeda - 'for_each_oldnew_crtc_in_state' 241f16628d6SMiguel Ojeda - 'for_each_oldnew_mst_mgr_in_state' 242d4ef8d3fSMiguel Ojeda - 'for_each_oldnew_plane_in_state' 24399e309b6SJason Gunthorpe - 'for_each_oldnew_plane_in_state_reverse' 244d4ef8d3fSMiguel Ojeda - 'for_each_oldnew_private_obj_in_state' 245d4ef8d3fSMiguel Ojeda - 'for_each_old_plane_in_state' 246d4ef8d3fSMiguel Ojeda - 'for_each_old_private_obj_in_state' 247d4ef8d3fSMiguel Ojeda - 'for_each_online_cpu' 248d4ef8d3fSMiguel Ojeda - 'for_each_online_node' 249d4ef8d3fSMiguel Ojeda - 'for_each_online_pgdat' 250d4ef8d3fSMiguel Ojeda - 'for_each_pci_bridge' 251d4ef8d3fSMiguel Ojeda - 'for_each_pci_dev' 252d4ef8d3fSMiguel Ojeda - 'for_each_pci_msi_entry' 253d4ef8d3fSMiguel Ojeda - 'for_each_populated_zone' 254d4ef8d3fSMiguel Ojeda - 'for_each_possible_cpu' 255d4ef8d3fSMiguel Ojeda - 'for_each_present_cpu' 256d4ef8d3fSMiguel Ojeda - 'for_each_prime_number' 257d4ef8d3fSMiguel Ojeda - 'for_each_prime_number_from' 258d4ef8d3fSMiguel Ojeda - 'for_each_process' 259d4ef8d3fSMiguel Ojeda - 'for_each_process_thread' 260d4ef8d3fSMiguel Ojeda - 'for_each_property_of_node' 26199e309b6SJason Gunthorpe - 'for_each_registered_fb' 262d4ef8d3fSMiguel Ojeda - 'for_each_reserved_mem_region' 26399e309b6SJason Gunthorpe - 'for_each_rtd_codec_dai' 26499e309b6SJason Gunthorpe - 'for_each_rtd_codec_dai_rollback' 26511a4a8f7SMiguel Ojeda - 'for_each_rtd_components' 266d4ef8d3fSMiguel Ojeda - 'for_each_set_bit' 267d4ef8d3fSMiguel Ojeda - 'for_each_set_bit_from' 26811a4a8f7SMiguel Ojeda - 'for_each_set_clump8' 269d4ef8d3fSMiguel Ojeda - 'for_each_sg' 270d901b276SJason Gunthorpe - 'for_each_sg_dma_page' 271d4ef8d3fSMiguel Ojeda - 'for_each_sg_page' 27299e309b6SJason Gunthorpe - 'for_each_sibling_event' 273f16628d6SMiguel Ojeda - 'for_each_subelement' 274f16628d6SMiguel Ojeda - 'for_each_subelement_extid' 275f16628d6SMiguel Ojeda - 'for_each_subelement_id' 276d4ef8d3fSMiguel Ojeda - '__for_each_thread' 277d4ef8d3fSMiguel Ojeda - 'for_each_thread' 27811a4a8f7SMiguel Ojeda - 'for_each_wakeup_source' 279d4ef8d3fSMiguel Ojeda - 'for_each_zone' 280d4ef8d3fSMiguel Ojeda - 'for_each_zone_zonelist' 281d4ef8d3fSMiguel Ojeda - 'for_each_zone_zonelist_nodemask' 282d4ef8d3fSMiguel Ojeda - 'fwnode_for_each_available_child_node' 283d4ef8d3fSMiguel Ojeda - 'fwnode_for_each_child_node' 284d4ef8d3fSMiguel Ojeda - 'fwnode_graph_for_each_endpoint' 285d4ef8d3fSMiguel Ojeda - 'gadget_for_each_ep' 286f16628d6SMiguel Ojeda - 'genradix_for_each' 287f16628d6SMiguel Ojeda - 'genradix_for_each_from' 288d4ef8d3fSMiguel Ojeda - 'hash_for_each' 289d4ef8d3fSMiguel Ojeda - 'hash_for_each_possible' 290d4ef8d3fSMiguel Ojeda - 'hash_for_each_possible_rcu' 291d4ef8d3fSMiguel Ojeda - 'hash_for_each_possible_rcu_notrace' 292d4ef8d3fSMiguel Ojeda - 'hash_for_each_possible_safe' 293d4ef8d3fSMiguel Ojeda - 'hash_for_each_rcu' 294d4ef8d3fSMiguel Ojeda - 'hash_for_each_safe' 295d4ef8d3fSMiguel Ojeda - 'hctx_for_each_ctx' 296d4ef8d3fSMiguel Ojeda - 'hlist_bl_for_each_entry' 297d4ef8d3fSMiguel Ojeda - 'hlist_bl_for_each_entry_rcu' 298d4ef8d3fSMiguel Ojeda - 'hlist_bl_for_each_entry_safe' 299d4ef8d3fSMiguel Ojeda - 'hlist_for_each' 300d4ef8d3fSMiguel Ojeda - 'hlist_for_each_entry' 301d4ef8d3fSMiguel Ojeda - 'hlist_for_each_entry_continue' 302d4ef8d3fSMiguel Ojeda - 'hlist_for_each_entry_continue_rcu' 303d4ef8d3fSMiguel Ojeda - 'hlist_for_each_entry_continue_rcu_bh' 304d4ef8d3fSMiguel Ojeda - 'hlist_for_each_entry_from' 305d4ef8d3fSMiguel Ojeda - 'hlist_for_each_entry_from_rcu' 306d4ef8d3fSMiguel Ojeda - 'hlist_for_each_entry_rcu' 307d4ef8d3fSMiguel Ojeda - 'hlist_for_each_entry_rcu_bh' 308d4ef8d3fSMiguel Ojeda - 'hlist_for_each_entry_rcu_notrace' 309d4ef8d3fSMiguel Ojeda - 'hlist_for_each_entry_safe' 310d4ef8d3fSMiguel Ojeda - '__hlist_for_each_rcu' 311d4ef8d3fSMiguel Ojeda - 'hlist_for_each_safe' 312d4ef8d3fSMiguel Ojeda - 'hlist_nulls_for_each_entry' 313d4ef8d3fSMiguel Ojeda - 'hlist_nulls_for_each_entry_from' 314d4ef8d3fSMiguel Ojeda - 'hlist_nulls_for_each_entry_rcu' 315d4ef8d3fSMiguel Ojeda - 'hlist_nulls_for_each_entry_safe' 31699e309b6SJason Gunthorpe - 'i3c_bus_for_each_i2cdev' 31799e309b6SJason Gunthorpe - 'i3c_bus_for_each_i3cdev' 318d4ef8d3fSMiguel Ojeda - 'ide_host_for_each_port' 319d4ef8d3fSMiguel Ojeda - 'ide_port_for_each_dev' 320d4ef8d3fSMiguel Ojeda - 'ide_port_for_each_present_dev' 321d4ef8d3fSMiguel Ojeda - 'idr_for_each_entry' 322d4ef8d3fSMiguel Ojeda - 'idr_for_each_entry_continue' 32352d08347SMiguel Ojeda - 'idr_for_each_entry_continue_ul' 324d4ef8d3fSMiguel Ojeda - 'idr_for_each_entry_ul' 32552d08347SMiguel Ojeda - 'in_dev_for_each_ifa_rcu' 32652d08347SMiguel Ojeda - 'in_dev_for_each_ifa_rtnl' 327d4ef8d3fSMiguel Ojeda - 'inet_bind_bucket_for_each' 328d4ef8d3fSMiguel Ojeda - 'inet_lhash2_for_each_icsk_rcu' 329d4ef8d3fSMiguel Ojeda - 'key_for_each' 330d4ef8d3fSMiguel Ojeda - 'key_for_each_safe' 331d4ef8d3fSMiguel Ojeda - 'klp_for_each_func' 332f16628d6SMiguel Ojeda - 'klp_for_each_func_safe' 333f16628d6SMiguel Ojeda - 'klp_for_each_func_static' 334d4ef8d3fSMiguel Ojeda - 'klp_for_each_object' 335f16628d6SMiguel Ojeda - 'klp_for_each_object_safe' 336f16628d6SMiguel Ojeda - 'klp_for_each_object_static' 337d4ef8d3fSMiguel Ojeda - 'kvm_for_each_memslot' 338d4ef8d3fSMiguel Ojeda - 'kvm_for_each_vcpu' 339d4ef8d3fSMiguel Ojeda - 'list_for_each' 34099e309b6SJason Gunthorpe - 'list_for_each_codec' 34199e309b6SJason Gunthorpe - 'list_for_each_codec_safe' 34211a4a8f7SMiguel Ojeda - 'list_for_each_continue' 343d4ef8d3fSMiguel Ojeda - 'list_for_each_entry' 344d4ef8d3fSMiguel Ojeda - 'list_for_each_entry_continue' 345d4ef8d3fSMiguel Ojeda - 'list_for_each_entry_continue_rcu' 346d4ef8d3fSMiguel Ojeda - 'list_for_each_entry_continue_reverse' 347d4ef8d3fSMiguel Ojeda - 'list_for_each_entry_from' 34899e309b6SJason Gunthorpe - 'list_for_each_entry_from_rcu' 349d4ef8d3fSMiguel Ojeda - 'list_for_each_entry_from_reverse' 350d4ef8d3fSMiguel Ojeda - 'list_for_each_entry_lockless' 351d4ef8d3fSMiguel Ojeda - 'list_for_each_entry_rcu' 352d4ef8d3fSMiguel Ojeda - 'list_for_each_entry_reverse' 353d4ef8d3fSMiguel Ojeda - 'list_for_each_entry_safe' 354d4ef8d3fSMiguel Ojeda - 'list_for_each_entry_safe_continue' 355d4ef8d3fSMiguel Ojeda - 'list_for_each_entry_safe_from' 356d4ef8d3fSMiguel Ojeda - 'list_for_each_entry_safe_reverse' 357d4ef8d3fSMiguel Ojeda - 'list_for_each_prev' 358d4ef8d3fSMiguel Ojeda - 'list_for_each_prev_safe' 359d4ef8d3fSMiguel Ojeda - 'list_for_each_safe' 360d4ef8d3fSMiguel Ojeda - 'llist_for_each' 361d4ef8d3fSMiguel Ojeda - 'llist_for_each_entry' 362d4ef8d3fSMiguel Ojeda - 'llist_for_each_entry_safe' 363d4ef8d3fSMiguel Ojeda - 'llist_for_each_safe' 36411a4a8f7SMiguel Ojeda - 'mci_for_each_dimm' 365d4ef8d3fSMiguel Ojeda - 'media_device_for_each_entity' 366d4ef8d3fSMiguel Ojeda - 'media_device_for_each_intf' 367d4ef8d3fSMiguel Ojeda - 'media_device_for_each_link' 368d4ef8d3fSMiguel Ojeda - 'media_device_for_each_pad' 36999e309b6SJason Gunthorpe - 'nanddev_io_for_each_page' 370d4ef8d3fSMiguel Ojeda - 'netdev_for_each_lower_dev' 371d4ef8d3fSMiguel Ojeda - 'netdev_for_each_lower_private' 372d4ef8d3fSMiguel Ojeda - 'netdev_for_each_lower_private_rcu' 373d4ef8d3fSMiguel Ojeda - 'netdev_for_each_mc_addr' 374d4ef8d3fSMiguel Ojeda - 'netdev_for_each_uc_addr' 375d4ef8d3fSMiguel Ojeda - 'netdev_for_each_upper_dev_rcu' 376d4ef8d3fSMiguel Ojeda - 'netdev_hw_addr_list_for_each' 377d4ef8d3fSMiguel Ojeda - 'nft_rule_for_each_expr' 378d4ef8d3fSMiguel Ojeda - 'nla_for_each_attr' 379d4ef8d3fSMiguel Ojeda - 'nla_for_each_nested' 380d4ef8d3fSMiguel Ojeda - 'nlmsg_for_each_attr' 381d4ef8d3fSMiguel Ojeda - 'nlmsg_for_each_msg' 382d4ef8d3fSMiguel Ojeda - 'nr_neigh_for_each' 383d4ef8d3fSMiguel Ojeda - 'nr_neigh_for_each_safe' 384d4ef8d3fSMiguel Ojeda - 'nr_node_for_each' 385d4ef8d3fSMiguel Ojeda - 'nr_node_for_each_safe' 386d4ef8d3fSMiguel Ojeda - 'of_for_each_phandle' 387d4ef8d3fSMiguel Ojeda - 'of_property_for_each_string' 388d4ef8d3fSMiguel Ojeda - 'of_property_for_each_u32' 389d4ef8d3fSMiguel Ojeda - 'pci_bus_for_each_resource' 390d4ef8d3fSMiguel Ojeda - 'ping_portaddr_for_each_entry' 391d4ef8d3fSMiguel Ojeda - 'plist_for_each' 392d4ef8d3fSMiguel Ojeda - 'plist_for_each_continue' 393d4ef8d3fSMiguel Ojeda - 'plist_for_each_entry' 394d4ef8d3fSMiguel Ojeda - 'plist_for_each_entry_continue' 395d4ef8d3fSMiguel Ojeda - 'plist_for_each_entry_safe' 396d4ef8d3fSMiguel Ojeda - 'plist_for_each_safe' 397d4ef8d3fSMiguel Ojeda - 'pnp_for_each_card' 398d4ef8d3fSMiguel Ojeda - 'pnp_for_each_dev' 399d4ef8d3fSMiguel Ojeda - 'protocol_for_each_card' 400d4ef8d3fSMiguel Ojeda - 'protocol_for_each_dev' 401d4ef8d3fSMiguel Ojeda - 'queue_for_each_hw_ctx' 402d4ef8d3fSMiguel Ojeda - 'radix_tree_for_each_slot' 403d4ef8d3fSMiguel Ojeda - 'radix_tree_for_each_tagged' 404d4ef8d3fSMiguel Ojeda - 'rbtree_postorder_for_each_entry_safe' 40552d08347SMiguel Ojeda - 'rdma_for_each_block' 406ea1075edSJason Gunthorpe - 'rdma_for_each_port' 407d4ef8d3fSMiguel Ojeda - 'resource_list_for_each_entry' 408d4ef8d3fSMiguel Ojeda - 'resource_list_for_each_entry_safe' 409d4ef8d3fSMiguel Ojeda - 'rhl_for_each_entry_rcu' 410d4ef8d3fSMiguel Ojeda - 'rhl_for_each_rcu' 411d4ef8d3fSMiguel Ojeda - 'rht_for_each' 412d4ef8d3fSMiguel Ojeda - 'rht_for_each_entry' 413f7ad68bfSNeilBrown - 'rht_for_each_entry_from' 414d4ef8d3fSMiguel Ojeda - 'rht_for_each_entry_rcu' 415f7ad68bfSNeilBrown - 'rht_for_each_entry_rcu_from' 416d4ef8d3fSMiguel Ojeda - 'rht_for_each_entry_safe' 41752d08347SMiguel Ojeda - 'rht_for_each_from' 418d4ef8d3fSMiguel Ojeda - 'rht_for_each_rcu' 419f7ad68bfSNeilBrown - 'rht_for_each_rcu_from' 420d4ef8d3fSMiguel Ojeda - '__rq_for_each_bio' 421f16628d6SMiguel Ojeda - 'rq_for_each_bvec' 422d4ef8d3fSMiguel Ojeda - 'rq_for_each_segment' 423d4ef8d3fSMiguel Ojeda - 'scsi_for_each_prot_sg' 424d4ef8d3fSMiguel Ojeda - 'scsi_for_each_sg' 425d4ef8d3fSMiguel Ojeda - 'sctp_for_each_hentry' 426d4ef8d3fSMiguel Ojeda - 'sctp_skb_for_each' 427d4ef8d3fSMiguel Ojeda - 'shdma_for_each_chan' 428d4ef8d3fSMiguel Ojeda - '__shost_for_each_device' 429d4ef8d3fSMiguel Ojeda - 'shost_for_each_device' 430d4ef8d3fSMiguel Ojeda - 'sk_for_each' 431d4ef8d3fSMiguel Ojeda - 'sk_for_each_bound' 432d4ef8d3fSMiguel Ojeda - 'sk_for_each_entry_offset_rcu' 433d4ef8d3fSMiguel Ojeda - 'sk_for_each_from' 434d4ef8d3fSMiguel Ojeda - 'sk_for_each_rcu' 435d4ef8d3fSMiguel Ojeda - 'sk_for_each_safe' 436d4ef8d3fSMiguel Ojeda - 'sk_nulls_for_each' 437d4ef8d3fSMiguel Ojeda - 'sk_nulls_for_each_from' 438d4ef8d3fSMiguel Ojeda - 'sk_nulls_for_each_rcu' 43999e309b6SJason Gunthorpe - 'snd_array_for_each' 440d4ef8d3fSMiguel Ojeda - 'snd_pcm_group_for_each_entry' 441d4ef8d3fSMiguel Ojeda - 'snd_soc_dapm_widget_for_each_path' 442d4ef8d3fSMiguel Ojeda - 'snd_soc_dapm_widget_for_each_path_safe' 443d4ef8d3fSMiguel Ojeda - 'snd_soc_dapm_widget_for_each_sink_path' 444d4ef8d3fSMiguel Ojeda - 'snd_soc_dapm_widget_for_each_source_path' 445d4ef8d3fSMiguel Ojeda - 'tb_property_for_each' 44699e309b6SJason Gunthorpe - 'tcf_exts_for_each_action' 447d4ef8d3fSMiguel Ojeda - 'udp_portaddr_for_each_entry' 448d4ef8d3fSMiguel Ojeda - 'udp_portaddr_for_each_entry_rcu' 449d4ef8d3fSMiguel Ojeda - 'usb_hub_for_each_child' 450d4ef8d3fSMiguel Ojeda - 'v4l2_device_for_each_subdev' 451d4ef8d3fSMiguel Ojeda - 'v4l2_m2m_for_each_dst_buf' 452d4ef8d3fSMiguel Ojeda - 'v4l2_m2m_for_each_dst_buf_safe' 453d4ef8d3fSMiguel Ojeda - 'v4l2_m2m_for_each_src_buf' 454d4ef8d3fSMiguel Ojeda - 'v4l2_m2m_for_each_src_buf_safe' 45599e309b6SJason Gunthorpe - 'virtio_device_for_each_vq' 45699e309b6SJason Gunthorpe - 'xa_for_each' 457f16628d6SMiguel Ojeda - 'xa_for_each_marked' 45811a4a8f7SMiguel Ojeda - 'xa_for_each_range' 459f16628d6SMiguel Ojeda - 'xa_for_each_start' 46099e309b6SJason Gunthorpe - 'xas_for_each' 46199e309b6SJason Gunthorpe - 'xas_for_each_conflict' 46299e309b6SJason Gunthorpe - 'xas_for_each_marked' 46311a4a8f7SMiguel Ojeda - 'xbc_array_for_each_value' 46411a4a8f7SMiguel Ojeda - 'xbc_for_each_key_value' 46511a4a8f7SMiguel Ojeda - 'xbc_node_for_each_array_value' 46611a4a8f7SMiguel Ojeda - 'xbc_node_for_each_child' 46711a4a8f7SMiguel Ojeda - 'xbc_node_for_each_key_value' 468d4ef8d3fSMiguel Ojeda - 'zorro_for_each_dev' 469d4ef8d3fSMiguel Ojeda 470d4ef8d3fSMiguel Ojeda#IncludeBlocks: Preserve # Unknown to clang-format-5.0 471d4ef8d3fSMiguel OjedaIncludeCategories: 472d4ef8d3fSMiguel Ojeda - Regex: '.*' 473d4ef8d3fSMiguel Ojeda Priority: 1 474d4ef8d3fSMiguel OjedaIncludeIsMainRegex: '(Test)?$' 475d4ef8d3fSMiguel OjedaIndentCaseLabels: false 476d4ef8d3fSMiguel Ojeda#IndentPPDirectives: None # Unknown to clang-format-5.0 477d4ef8d3fSMiguel OjedaIndentWidth: 8 4787bee9bd2SJason GunthorpeIndentWrappedFunctionNames: false 479d4ef8d3fSMiguel OjedaJavaScriptQuotes: Leave 480d4ef8d3fSMiguel OjedaJavaScriptWrapImports: true 481d4ef8d3fSMiguel OjedaKeepEmptyLinesAtTheStartOfBlocks: false 482d4ef8d3fSMiguel OjedaMacroBlockBegin: '' 483d4ef8d3fSMiguel OjedaMacroBlockEnd: '' 484d4ef8d3fSMiguel OjedaMaxEmptyLinesToKeep: 1 485c90f3b8cSIan RogersNamespaceIndentation: None 486d4ef8d3fSMiguel Ojeda#ObjCBinPackProtocolList: Auto # Unknown to clang-format-5.0 487d4ef8d3fSMiguel OjedaObjCBlockIndentWidth: 8 488d4ef8d3fSMiguel OjedaObjCSpaceAfterProperty: true 489d4ef8d3fSMiguel OjedaObjCSpaceBeforeProtocolList: true 490d4ef8d3fSMiguel Ojeda 491d4ef8d3fSMiguel Ojeda# Taken from git's rules 492d4ef8d3fSMiguel Ojeda#PenaltyBreakAssignment: 10 # Unknown to clang-format-4.0 493d4ef8d3fSMiguel OjedaPenaltyBreakBeforeFirstCallParameter: 30 494d4ef8d3fSMiguel OjedaPenaltyBreakComment: 10 495d4ef8d3fSMiguel OjedaPenaltyBreakFirstLessLess: 0 496d4ef8d3fSMiguel OjedaPenaltyBreakString: 10 497d4ef8d3fSMiguel OjedaPenaltyExcessCharacter: 100 498d4ef8d3fSMiguel OjedaPenaltyReturnTypeOnItsOwnLine: 60 499d4ef8d3fSMiguel Ojeda 500d4ef8d3fSMiguel OjedaPointerAlignment: Right 501d4ef8d3fSMiguel OjedaReflowComments: false 502d4ef8d3fSMiguel OjedaSortIncludes: false 503d4ef8d3fSMiguel Ojeda#SortUsingDeclarations: false # Unknown to clang-format-4.0 504d4ef8d3fSMiguel OjedaSpaceAfterCStyleCast: false 505d4ef8d3fSMiguel OjedaSpaceAfterTemplateKeyword: true 506d4ef8d3fSMiguel OjedaSpaceBeforeAssignmentOperators: true 507d4ef8d3fSMiguel Ojeda#SpaceBeforeCtorInitializerColon: true # Unknown to clang-format-5.0 508d4ef8d3fSMiguel Ojeda#SpaceBeforeInheritanceColon: true # Unknown to clang-format-5.0 509d4ef8d3fSMiguel OjedaSpaceBeforeParens: ControlStatements 510d4ef8d3fSMiguel Ojeda#SpaceBeforeRangeBasedForLoopColon: true # Unknown to clang-format-5.0 511d4ef8d3fSMiguel OjedaSpaceInEmptyParentheses: false 512d4ef8d3fSMiguel OjedaSpacesBeforeTrailingComments: 1 513d4ef8d3fSMiguel OjedaSpacesInAngles: false 514d4ef8d3fSMiguel OjedaSpacesInContainerLiterals: false 515d4ef8d3fSMiguel OjedaSpacesInCStyleCastParentheses: false 516d4ef8d3fSMiguel OjedaSpacesInParentheses: false 517d4ef8d3fSMiguel OjedaSpacesInSquareBrackets: false 518d4ef8d3fSMiguel OjedaStandard: Cpp03 519d4ef8d3fSMiguel OjedaTabWidth: 8 520d4ef8d3fSMiguel OjedaUseTab: Always 521d4ef8d3fSMiguel Ojeda... 522