1 2AlignAfterOpenBracket: true 3AlignConsecutiveMacros: true 4 5AllowAllArgumentsOnNextLine: false 6AllowShortCaseLabelsOnASingleLine: false 7AllowShortFunctionsOnASingleLine: false 8 9AlwaysBreakAfterReturnType: TopLevelDefinitions 10 11BraceWrapping: 12 AfterControlStatement: false 13 AfterEnum: false 14 AfterFunction: true 15 AfterStruct: false 16 BeforeElse: false 17 SplitEmptyFunction: true 18 19BinPackArguments: true 20BinPackParameters: true 21 22BreakBeforeBraces: Custom 23 24ColumnLimit: 0 25PenaltyBreakBeforeFirstCallParameter: 1 26PenaltyExcessCharacter: 100 27 28ContinuationIndentWidth: 3 29IndentWidth: 3 30UseTab: Never 31 32Cpp11BracedListStyle: true 33 34SpaceAfterCStyleCast: false 35SpaceBeforeCpp11BracedList: false 36SpaceBeforeCtorInitializerColon: false 37SpacesInContainerLiterals: false 38 39PointerAlignment: Right 40 41IncludeBlocks: Preserve 42IncludeCategories: 43 - Regex: '<[[:alnum:].]+>' 44 Priority: 1 45 - Regex: '.*\/.*' 46 Priority: 2 47 - Regex: '.*' 48 Priority: 3 49 50ForEachMacros: 51# util 52 - u_foreach_bit 53 - u_foreach_bit64 54 55 - BITSET_FOREACH_SET 56 - BITSET_FOREACH_RANGE 57 58 - hash_table_foreach 59 - hash_table_foreach_remove 60 - hash_table_u64_foreach 61 62 - rb_tree_foreach 63 - rb_tree_foreach_rev 64 - rb_tree_foreach_rev_safe 65 - rb_tree_foreach_safe 66 - uinterval_tree_foreach 67 68 - set_foreach 69 - set_foreach_remove 70 71 - util_dynarray_foreach 72 - util_dynarray_foreach_reverse 73 74 - util_idalloc_foreach 75 76 - LIST_FOR_EACH_ENTRY 77 - LIST_FOR_EACH_ENTRY_FROM 78 - LIST_FOR_EACH_ENTRY_FROM_REV 79 - LIST_FOR_EACH_ENTRY_SAFE 80 - LIST_FOR_EACH_ENTRY_SAFE_REV 81 - list_for_each_entry 82 - list_for_each_entry_from 83 - list_for_each_entry_from_rev 84 - list_for_each_entry_from_safe 85 - list_for_each_entry_rev 86 - list_for_each_entry_rev_safe 87 - list_for_each_entry_safe 88 - list_pair_for_each_entry 89 90 - foreach_in_list 91 - foreach_in_list_reverse 92 - foreach_in_list_reverse_safe 93 - foreach_in_list_safe 94 - foreach_in_list_use_after 95 - foreach_list_typed 96 - foreach_list_typed_from 97 - foreach_list_typed_reverse 98 - foreach_list_typed_reverse_safe 99 - foreach_list_typed_safe 100 - foreach_two_lists 101 102# nir 103 - nir_foreach_function_temp_variable 104 - nir_foreach_function_temp_variable_safe 105 - nir_foreach_image_variable 106 - nir_foreach_image_variable_safe 107 - nir_foreach_shader_in_variable 108 - nir_foreach_shader_in_variable_safe 109 - nir_foreach_shader_out_variable 110 - nir_foreach_shader_out_variable_safe 111 - nir_foreach_uniform_variable 112 - nir_foreach_uniform_variable_safe 113 - nir_foreach_variable 114 - nir_foreach_variable_in_list 115 - nir_foreach_variable_in_list_safe 116 - nir_foreach_variable_in_shader 117 - nir_foreach_variable_in_shader_safe 118 - nir_foreach_variable_safe 119 - nir_foreach_variable_with_modes 120 - nir_foreach_variable_with_modes_safe 121 122 - nir_foreach_reg_decl 123 - nir_foreach_reg_decl_safe 124 - nir_foreach_reg_load 125 - nir_foreach_reg_load_safe 126 - nir_foreach_reg_store 127 - nir_foreach_reg_store_safe 128 129 - nir_foreach_if_use 130 - nir_foreach_if_use_safe 131 - nir_foreach_use 132 - nir_foreach_use_including_if 133 - nir_foreach_use_including_if_safe 134 - nir_foreach_use_safe 135 136 - nir_foreach_phi_src 137 - nir_foreach_phi_src_safe 138 139 - nir_foreach_parallel_copy_entry 140 141 - nir_foreach_instr 142 - nir_foreach_instr_in_worklist 143 - nir_foreach_instr_reverse 144 - nir_foreach_instr_reverse_safe 145 - nir_foreach_instr_safe 146 147 - nir_foreach_phi 148 - nir_foreach_phi_safe 149 150 - nir_foreach_function 151 - nir_foreach_function_safe 152 - nir_foreach_function_with_impl 153 154 - nir_foreach_function_impl 155 156 - nir_foreach_entrypoint 157 - nir_foreach_entrypoint_safe 158 159 - nir_foreach_block_unstructured 160 - nir_foreach_block_unstructured_safe 161 162 - nir_foreach_block 163 - nir_foreach_block_in_cf_node 164 - nir_foreach_block_in_cf_node_reverse 165 - nir_foreach_block_reverse 166 - nir_foreach_block_reverse_safe 167 - nir_foreach_block_safe 168 169 - nir_precomp_foreach_arg 170 - nir_precomp_foreach_variant_param 171 172# egl 173 - egl_relax 174 175# wayland 176 - wl_list_for_each 177 - wl_list_for_each_safe 178 - wl_list_for_each_reverse 179 - wl_list_for_each_reverse_safe 180 - wl_array_for_each 181 182# vulkan 183 - vk_foreach_queue 184 - vk_foreach_queue_safe 185 186 - vk_foreach_struct 187 - vk_foreach_struct_const 188 189 - vk_foreach_multi_draw 190 - vk_foreach_multi_draw_indexed 191 192# asahi 193 - foreach_active 194 - foreach_submitted 195 - hk_foreach_view 196 - hk_foreach_variant 197 - AGX_BATCH_FOREACH_BO_HANDLE 198 - agx_pack 199 - agx_push 200 - agx_usc_pack 201 - agx_ppp_push 202 - agx_ppp_push_merged 203 - agx_foreach_block 204 - agx_foreach_block_safe 205 - agx_foreach_block_from 206 - agx_foreach_block_from_rev 207 - agx_foreach_block_rev 208 - agx_foreach_dest 209 - agx_foreach_dest_rev 210 - agx_foreach_instr_global 211 - agx_foreach_instr_global_rev 212 - agx_foreach_instr_global_safe 213 - agx_foreach_instr_global_safe_rev 214 - agx_foreach_instr_in_block 215 - agx_foreach_instr_in_block_from 216 - agx_foreach_instr_in_block_from_rev 217 - agx_foreach_instr_in_block_rev 218 - agx_foreach_instr_in_block_safe 219 - agx_foreach_instr_in_block_safe_rev 220 - agx_foreach_non_phi_in_block_rev 221 - agx_foreach_phi_in_block 222 - agx_foreach_phi_in_block_safe 223 - agx_foreach_predecessor 224 - agx_foreach_src 225 - agx_foreach_src_rev 226 - agx_foreach_ssa_dest 227 - agx_foreach_ssa_dest_rev 228 - agx_foreach_ssa_src 229 - agx_foreach_ssa_src_rev 230 - agx_foreach_successor 231 - foreach_next_use 232 233# radv 234 - PHASE 235 236# freedreno 237 - ir2_foreach_instr 238 - ir2_foreach_live_reg 239 - ir2_foreach_avail 240 - ir2_foreach_src 241 - foreach_two_lists 242 - foreach_sched_node 243 - foreach_src 244 - foreach_src_n 245 - foreach_src_if 246 - foreach_dst 247 - foreach_dst_n 248 - foreach_dst_if 249 - ra_foreach_dst 250 - ra_foreach_src 251 - ra_foreach_src_rev 252 - foreach_ssa_use 253 - foreach_ssa_srcp_n 254 - foreach_ssa_srcp 255 - foreach_ssa_src_n 256 - foreach_ssa_src 257 - foreach_input_n 258 - foreach_input 259 - foreach_output_n 260 - foreach_output 261 - foreach_instr 262 - foreach_instr_rev 263 - foreach_instr_safe 264 - foreach_instr_from_safe 265 - foreach_block 266 - foreach_block_safe 267 - foreach_block_rev 268 - foreach_array 269 - foreach_array_safe 270 - foreach_name_n 271 - foreach_name 272 - foreach_def 273 - foreach_use 274 - foreach_interval 275 - foreach_interval_safe 276 - foreach_interval_rev 277 - foreach_interval_rev_safe 278 - foreach_batch 279 - foreach_line_in_section 280 - perf_time 281 - perf_time_ctx 282 - foreach_submit 283 - foreach_submit_safe 284 - foreach_instr_rpt 285 - foreach_instr_rpt_excl 286 - foreach_instr_rpt_excl_safe 287 288# Disable clang formatting by default. Drivers that use clang-format 289# inherit from this .clang-format file and re-enable formatting: 290# 291# DisableFormat: false 292# 293DisableFormat: true 294