.clang-format 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548
  1. # SPDX-License-Identifier: GPL-2.0
  2. #
  3. # clang-format configuration file. Intended for clang-format >= 4.
  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: Right
  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: All
  26. AlwaysBreakAfterReturnType: None
  27. AlwaysBreakBeforeMultilineStrings: false
  28. AlwaysBreakTemplateDeclarations: false
  29. BinPackArguments: false
  30. BinPackParameters: false
  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: 85
  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/ \
  68. # | sed "s,^#define \([^[:space:]]*for_each[^[:space:]]*\)(.*$, - '\1'," \
  69. # | sort | uniq
  70. ForEachMacros:
  71. - 'apei_estatus_for_each_section'
  72. - 'ata_for_each_dev'
  73. - 'ata_for_each_link'
  74. - '__ata_qc_for_each'
  75. - 'ata_qc_for_each'
  76. - 'ata_qc_for_each_raw'
  77. - 'ata_qc_for_each_with_internal'
  78. - 'ax25_for_each'
  79. - 'ax25_uid_for_each'
  80. - '__bio_for_each_bvec'
  81. - 'bio_for_each_bvec'
  82. - 'bio_for_each_bvec_all'
  83. - 'bio_for_each_integrity_vec'
  84. - '__bio_for_each_segment'
  85. - 'bio_for_each_segment'
  86. - 'bio_for_each_segment_all'
  87. - 'bio_list_for_each'
  88. - 'bip_for_each_vec'
  89. - 'bitmap_for_each_clear_region'
  90. - 'bitmap_for_each_set_region'
  91. - 'blkg_for_each_descendant_post'
  92. - 'blkg_for_each_descendant_pre'
  93. - 'blk_queue_for_each_rl'
  94. - 'bond_for_each_slave'
  95. - 'bond_for_each_slave_rcu'
  96. - 'bpf_for_each_spilled_reg'
  97. - 'btree_for_each_safe128'
  98. - 'btree_for_each_safe32'
  99. - 'btree_for_each_safe64'
  100. - 'btree_for_each_safel'
  101. - 'card_for_each_dev'
  102. - 'cgroup_taskset_for_each'
  103. - 'cgroup_taskset_for_each_leader'
  104. - 'cpufreq_for_each_entry'
  105. - 'cpufreq_for_each_entry_idx'
  106. - 'cpufreq_for_each_valid_entry'
  107. - 'cpufreq_for_each_valid_entry_idx'
  108. - 'css_for_each_child'
  109. - 'css_for_each_descendant_post'
  110. - 'css_for_each_descendant_pre'
  111. - 'device_for_each_child_node'
  112. - 'dma_fence_chain_for_each'
  113. - 'do_for_each_ftrace_op'
  114. - 'drm_atomic_crtc_for_each_plane'
  115. - 'drm_atomic_crtc_state_for_each_plane'
  116. - 'drm_atomic_crtc_state_for_each_plane_state'
  117. - 'drm_atomic_for_each_plane_damage'
  118. - 'drm_client_for_each_connector_iter'
  119. - 'drm_client_for_each_modeset'
  120. - 'drm_connector_for_each_possible_encoder'
  121. - 'drm_for_each_bridge_in_chain'
  122. - 'drm_for_each_connector_iter'
  123. - 'drm_for_each_crtc'
  124. - 'drm_for_each_encoder'
  125. - 'drm_for_each_encoder_mask'
  126. - 'drm_for_each_fb'
  127. - 'drm_for_each_legacy_plane'
  128. - 'drm_for_each_plane'
  129. - 'drm_for_each_plane_mask'
  130. - 'drm_for_each_privobj'
  131. - 'drm_mm_for_each_hole'
  132. - 'drm_mm_for_each_node'
  133. - 'drm_mm_for_each_node_in_range'
  134. - 'drm_mm_for_each_node_safe'
  135. - 'flow_action_for_each'
  136. - 'for_each_active_dev_scope'
  137. - 'for_each_active_drhd_unit'
  138. - 'for_each_active_iommu'
  139. - 'for_each_aggr_pgid'
  140. - 'for_each_available_child_of_node'
  141. - 'for_each_bio'
  142. - 'for_each_board_func_rsrc'
  143. - 'for_each_bvec'
  144. - 'for_each_card_auxs'
  145. - 'for_each_card_auxs_safe'
  146. - 'for_each_card_components'
  147. - 'for_each_card_dapms'
  148. - 'for_each_card_pre_auxs'
  149. - 'for_each_card_prelinks'
  150. - 'for_each_card_rtds'
  151. - 'for_each_card_rtds_safe'
  152. - 'for_each_card_widgets'
  153. - 'for_each_card_widgets_safe'
  154. - 'for_each_cgroup_storage_type'
  155. - 'for_each_child_of_node'
  156. - 'for_each_clear_bit'
  157. - 'for_each_clear_bit_from'
  158. - 'for_each_cmsghdr'
  159. - 'for_each_compatible_node'
  160. - 'for_each_component_dais'
  161. - 'for_each_component_dais_safe'
  162. - 'for_each_comp_order'
  163. - 'for_each_console'
  164. - 'for_each_cpu'
  165. - 'for_each_cpu_and'
  166. - 'for_each_cpu_not'
  167. - 'for_each_cpu_wrap'
  168. - 'for_each_dapm_widgets'
  169. - 'for_each_dev_addr'
  170. - 'for_each_dev_scope'
  171. - 'for_each_displayid_db'
  172. - 'for_each_dma_cap_mask'
  173. - 'for_each_dpcm_be'
  174. - 'for_each_dpcm_be_rollback'
  175. - 'for_each_dpcm_be_safe'
  176. - 'for_each_dpcm_fe'
  177. - 'for_each_drhd_unit'
  178. - 'for_each_dss_dev'
  179. - 'for_each_efi_memory_desc'
  180. - 'for_each_efi_memory_desc_in_map'
  181. - 'for_each_element'
  182. - 'for_each_element_extid'
  183. - 'for_each_element_id'
  184. - 'for_each_endpoint_of_node'
  185. - 'for_each_evictable_lru'
  186. - 'for_each_fib6_node_rt_rcu'
  187. - 'for_each_fib6_walker_rt'
  188. - 'for_each_free_mem_pfn_range_in_zone'
  189. - 'for_each_free_mem_pfn_range_in_zone_from'
  190. - 'for_each_free_mem_range'
  191. - 'for_each_free_mem_range_reverse'
  192. - 'for_each_func_rsrc'
  193. - 'for_each_hstate'
  194. - 'for_each_if'
  195. - 'for_each_iommu'
  196. - 'for_each_ip_tunnel_rcu'
  197. - 'for_each_irq_nr'
  198. - 'for_each_link_codecs'
  199. - 'for_each_link_cpus'
  200. - 'for_each_link_platforms'
  201. - 'for_each_lru'
  202. - 'for_each_matching_node'
  203. - 'for_each_matching_node_and_match'
  204. - 'for_each_member'
  205. - 'for_each_mem_region'
  206. - 'for_each_memblock_type'
  207. - 'for_each_memcg_cache_index'
  208. - 'for_each_mem_pfn_range'
  209. - '__for_each_mem_range'
  210. - 'for_each_mem_range'
  211. - '__for_each_mem_range_rev'
  212. - 'for_each_mem_range_rev'
  213. - 'for_each_migratetype_order'
  214. - 'for_each_msi_entry'
  215. - 'for_each_msi_entry_safe'
  216. - 'for_each_net'
  217. - 'for_each_net_continue_reverse'
  218. - 'for_each_netdev'
  219. - 'for_each_netdev_continue'
  220. - 'for_each_netdev_continue_rcu'
  221. - 'for_each_netdev_continue_reverse'
  222. - 'for_each_netdev_feature'
  223. - 'for_each_netdev_in_bond_rcu'
  224. - 'for_each_netdev_rcu'
  225. - 'for_each_netdev_reverse'
  226. - 'for_each_netdev_safe'
  227. - 'for_each_net_rcu'
  228. - 'for_each_new_connector_in_state'
  229. - 'for_each_new_crtc_in_state'
  230. - 'for_each_new_mst_mgr_in_state'
  231. - 'for_each_new_plane_in_state'
  232. - 'for_each_new_private_obj_in_state'
  233. - 'for_each_node'
  234. - 'for_each_node_by_name'
  235. - 'for_each_node_by_type'
  236. - 'for_each_node_mask'
  237. - 'for_each_node_state'
  238. - 'for_each_node_with_cpus'
  239. - 'for_each_node_with_property'
  240. - 'for_each_nonreserved_multicast_dest_pgid'
  241. - 'for_each_of_allnodes'
  242. - 'for_each_of_allnodes_from'
  243. - 'for_each_of_cpu_node'
  244. - 'for_each_of_pci_range'
  245. - 'for_each_old_connector_in_state'
  246. - 'for_each_old_crtc_in_state'
  247. - 'for_each_old_mst_mgr_in_state'
  248. - 'for_each_oldnew_connector_in_state'
  249. - 'for_each_oldnew_crtc_in_state'
  250. - 'for_each_oldnew_mst_mgr_in_state'
  251. - 'for_each_oldnew_plane_in_state'
  252. - 'for_each_oldnew_plane_in_state_reverse'
  253. - 'for_each_oldnew_private_obj_in_state'
  254. - 'for_each_old_plane_in_state'
  255. - 'for_each_old_private_obj_in_state'
  256. - 'for_each_online_cpu'
  257. - 'for_each_online_node'
  258. - 'for_each_online_pgdat'
  259. - 'for_each_pci_bridge'
  260. - 'for_each_pci_dev'
  261. - 'for_each_pci_msi_entry'
  262. - 'for_each_pcm_streams'
  263. - 'for_each_physmem_range'
  264. - 'for_each_populated_zone'
  265. - 'for_each_possible_cpu'
  266. - 'for_each_present_cpu'
  267. - 'for_each_prime_number'
  268. - 'for_each_prime_number_from'
  269. - 'for_each_process'
  270. - 'for_each_process_thread'
  271. - 'for_each_property_of_node'
  272. - 'for_each_registered_fb'
  273. - 'for_each_requested_gpio'
  274. - 'for_each_requested_gpio_in_range'
  275. - 'for_each_reserved_mem_range'
  276. - 'for_each_reserved_mem_region'
  277. - 'for_each_rtd_codec_dais'
  278. - 'for_each_rtd_codec_dais_rollback'
  279. - 'for_each_rtd_components'
  280. - 'for_each_rtd_cpu_dais'
  281. - 'for_each_rtd_cpu_dais_rollback'
  282. - 'for_each_rtd_dais'
  283. - 'for_each_set_bit'
  284. - 'for_each_set_bit_from'
  285. - 'for_each_set_clump8'
  286. - 'for_each_sg'
  287. - 'for_each_sg_dma_page'
  288. - 'for_each_sg_page'
  289. - 'for_each_sgtable_dma_page'
  290. - 'for_each_sgtable_dma_sg'
  291. - 'for_each_sgtable_page'
  292. - 'for_each_sgtable_sg'
  293. - 'for_each_sibling_event'
  294. - 'for_each_subelement'
  295. - 'for_each_subelement_extid'
  296. - 'for_each_subelement_id'
  297. - '__for_each_thread'
  298. - 'for_each_thread'
  299. - 'for_each_unicast_dest_pgid'
  300. - 'for_each_wakeup_source'
  301. - 'for_each_zone'
  302. - 'for_each_zone_zonelist'
  303. - 'for_each_zone_zonelist_nodemask'
  304. - 'fwnode_for_each_available_child_node'
  305. - 'fwnode_for_each_child_node'
  306. - 'fwnode_graph_for_each_endpoint'
  307. - 'gadget_for_each_ep'
  308. - 'genradix_for_each'
  309. - 'genradix_for_each_from'
  310. - 'hash_for_each'
  311. - 'hash_for_each_possible'
  312. - 'hash_for_each_possible_rcu'
  313. - 'hash_for_each_possible_rcu_notrace'
  314. - 'hash_for_each_possible_safe'
  315. - 'hash_for_each_rcu'
  316. - 'hash_for_each_safe'
  317. - 'hctx_for_each_ctx'
  318. - 'hlist_bl_for_each_entry'
  319. - 'hlist_bl_for_each_entry_rcu'
  320. - 'hlist_bl_for_each_entry_safe'
  321. - 'hlist_for_each'
  322. - 'hlist_for_each_entry'
  323. - 'hlist_for_each_entry_continue'
  324. - 'hlist_for_each_entry_continue_rcu'
  325. - 'hlist_for_each_entry_continue_rcu_bh'
  326. - 'hlist_for_each_entry_from'
  327. - 'hlist_for_each_entry_from_rcu'
  328. - 'hlist_for_each_entry_rcu'
  329. - 'hlist_for_each_entry_rcu_bh'
  330. - 'hlist_for_each_entry_rcu_notrace'
  331. - 'hlist_for_each_entry_safe'
  332. - '__hlist_for_each_rcu'
  333. - 'hlist_for_each_safe'
  334. - 'hlist_nulls_for_each_entry'
  335. - 'hlist_nulls_for_each_entry_from'
  336. - 'hlist_nulls_for_each_entry_rcu'
  337. - 'hlist_nulls_for_each_entry_safe'
  338. - 'i3c_bus_for_each_i2cdev'
  339. - 'i3c_bus_for_each_i3cdev'
  340. - 'ide_host_for_each_port'
  341. - 'ide_port_for_each_dev'
  342. - 'ide_port_for_each_present_dev'
  343. - 'idr_for_each_entry'
  344. - 'idr_for_each_entry_continue'
  345. - 'idr_for_each_entry_continue_ul'
  346. - 'idr_for_each_entry_ul'
  347. - 'in_dev_for_each_ifa_rcu'
  348. - 'in_dev_for_each_ifa_rtnl'
  349. - 'inet_bind_bucket_for_each'
  350. - 'inet_lhash2_for_each_icsk_rcu'
  351. - 'key_for_each'
  352. - 'key_for_each_safe'
  353. - 'klp_for_each_func'
  354. - 'klp_for_each_func_safe'
  355. - 'klp_for_each_func_static'
  356. - 'klp_for_each_object'
  357. - 'klp_for_each_object_safe'
  358. - 'klp_for_each_object_static'
  359. - 'kunit_suite_for_each_test_case'
  360. - 'kvm_for_each_memslot'
  361. - 'kvm_for_each_vcpu'
  362. - 'list_for_each'
  363. - 'list_for_each_codec'
  364. - 'list_for_each_codec_safe'
  365. - 'list_for_each_continue'
  366. - 'list_for_each_entry'
  367. - 'list_for_each_entry_continue'
  368. - 'list_for_each_entry_continue_rcu'
  369. - 'list_for_each_entry_continue_reverse'
  370. - 'list_for_each_entry_from'
  371. - 'list_for_each_entry_from_rcu'
  372. - 'list_for_each_entry_from_reverse'
  373. - 'list_for_each_entry_lockless'
  374. - 'list_for_each_entry_rcu'
  375. - 'list_for_each_entry_reverse'
  376. - 'list_for_each_entry_safe'
  377. - 'list_for_each_entry_safe_continue'
  378. - 'list_for_each_entry_safe_from'
  379. - 'list_for_each_entry_safe_reverse'
  380. - 'list_for_each_prev'
  381. - 'list_for_each_prev_safe'
  382. - 'list_for_each_safe'
  383. - 'llist_for_each'
  384. - 'llist_for_each_entry'
  385. - 'llist_for_each_entry_safe'
  386. - 'llist_for_each_safe'
  387. - 'mci_for_each_dimm'
  388. - 'media_device_for_each_entity'
  389. - 'media_device_for_each_intf'
  390. - 'media_device_for_each_link'
  391. - 'media_device_for_each_pad'
  392. - 'nanddev_io_for_each_page'
  393. - 'netdev_for_each_lower_dev'
  394. - 'netdev_for_each_lower_private'
  395. - 'netdev_for_each_lower_private_rcu'
  396. - 'netdev_for_each_mc_addr'
  397. - 'netdev_for_each_uc_addr'
  398. - 'netdev_for_each_upper_dev_rcu'
  399. - 'netdev_hw_addr_list_for_each'
  400. - 'nft_rule_for_each_expr'
  401. - 'nla_for_each_attr'
  402. - 'nla_for_each_nested'
  403. - 'nlmsg_for_each_attr'
  404. - 'nlmsg_for_each_msg'
  405. - 'nr_neigh_for_each'
  406. - 'nr_neigh_for_each_safe'
  407. - 'nr_node_for_each'
  408. - 'nr_node_for_each_safe'
  409. - 'of_for_each_phandle'
  410. - 'of_property_for_each_string'
  411. - 'of_property_for_each_u32'
  412. - 'pci_bus_for_each_resource'
  413. - 'pcm_for_each_format'
  414. - 'ping_portaddr_for_each_entry'
  415. - 'plist_for_each'
  416. - 'plist_for_each_continue'
  417. - 'plist_for_each_entry'
  418. - 'plist_for_each_entry_continue'
  419. - 'plist_for_each_entry_safe'
  420. - 'plist_for_each_safe'
  421. - 'pnp_for_each_card'
  422. - 'pnp_for_each_dev'
  423. - 'protocol_for_each_card'
  424. - 'protocol_for_each_dev'
  425. - 'queue_for_each_hw_ctx'
  426. - 'radix_tree_for_each_slot'
  427. - 'radix_tree_for_each_tagged'
  428. - 'rbtree_postorder_for_each_entry_safe'
  429. - 'rdma_for_each_block'
  430. - 'rdma_for_each_port'
  431. - 'rdma_umem_for_each_dma_block'
  432. - 'resource_list_for_each_entry'
  433. - 'resource_list_for_each_entry_safe'
  434. - 'rhl_for_each_entry_rcu'
  435. - 'rhl_for_each_rcu'
  436. - 'rht_for_each'
  437. - 'rht_for_each_entry'
  438. - 'rht_for_each_entry_from'
  439. - 'rht_for_each_entry_rcu'
  440. - 'rht_for_each_entry_rcu_from'
  441. - 'rht_for_each_entry_safe'
  442. - 'rht_for_each_from'
  443. - 'rht_for_each_rcu'
  444. - 'rht_for_each_rcu_from'
  445. - '__rq_for_each_bio'
  446. - 'rq_for_each_bvec'
  447. - 'rq_for_each_segment'
  448. - 'scsi_for_each_prot_sg'
  449. - 'scsi_for_each_sg'
  450. - 'sctp_for_each_hentry'
  451. - 'sctp_skb_for_each'
  452. - 'shdma_for_each_chan'
  453. - '__shost_for_each_device'
  454. - 'shost_for_each_device'
  455. - 'sk_for_each'
  456. - 'sk_for_each_bound'
  457. - 'sk_for_each_entry_offset_rcu'
  458. - 'sk_for_each_from'
  459. - 'sk_for_each_rcu'
  460. - 'sk_for_each_safe'
  461. - 'sk_nulls_for_each'
  462. - 'sk_nulls_for_each_from'
  463. - 'sk_nulls_for_each_rcu'
  464. - 'snd_array_for_each'
  465. - 'snd_pcm_group_for_each_entry'
  466. - 'snd_soc_dapm_widget_for_each_path'
  467. - 'snd_soc_dapm_widget_for_each_path_safe'
  468. - 'snd_soc_dapm_widget_for_each_sink_path'
  469. - 'snd_soc_dapm_widget_for_each_source_path'
  470. - 'tb_property_for_each'
  471. - 'tcf_exts_for_each_action'
  472. - 'udp_portaddr_for_each_entry'
  473. - 'udp_portaddr_for_each_entry_rcu'
  474. - 'usb_hub_for_each_child'
  475. - 'v4l2_device_for_each_subdev'
  476. - 'v4l2_m2m_for_each_dst_buf'
  477. - 'v4l2_m2m_for_each_dst_buf_safe'
  478. - 'v4l2_m2m_for_each_src_buf'
  479. - 'v4l2_m2m_for_each_src_buf_safe'
  480. - 'virtio_device_for_each_vq'
  481. - 'while_for_each_ftrace_op'
  482. - 'xa_for_each'
  483. - 'xa_for_each_marked'
  484. - 'xa_for_each_range'
  485. - 'xa_for_each_start'
  486. - 'xas_for_each'
  487. - 'xas_for_each_conflict'
  488. - 'xas_for_each_marked'
  489. - 'xbc_array_for_each_value'
  490. - 'xbc_for_each_key_value'
  491. - 'xbc_node_for_each_array_value'
  492. - 'xbc_node_for_each_child'
  493. - 'xbc_node_for_each_key_value'
  494. - 'zorro_for_each_dev'
  495. IncludeBlocks: Preserve
  496. IncludeCategories:
  497. - Regex: '.*'
  498. Priority: 1
  499. IncludeIsMainRegex: '(Test)?$'
  500. IndentCaseLabels: false
  501. IndentPPDirectives: None
  502. IndentWidth: 8
  503. IndentWrappedFunctionNames: false
  504. JavaScriptQuotes: Leave
  505. JavaScriptWrapImports: true
  506. KeepEmptyLinesAtTheStartOfBlocks: false
  507. MacroBlockBegin: ''
  508. MacroBlockEnd: ''
  509. MaxEmptyLinesToKeep: 1
  510. NamespaceIndentation: None
  511. ObjCBinPackProtocolList: Auto
  512. ObjCBlockIndentWidth: 8
  513. ObjCSpaceAfterProperty: true
  514. ObjCSpaceBeforeProtocolList: true
  515. # Taken from git's rules
  516. #PenaltyBreakAssignment: 10
  517. #PenaltyBreakBeforeFirstCallParameter: 30
  518. #PenaltyBreakComment: 10
  519. #PenaltyBreakFirstLessLess: 0
  520. #PenaltyBreakString: 10
  521. #PenaltyExcessCharacter: 100
  522. #PenaltyReturnTypeOnItsOwnLine: 60
  523. PointerAlignment: Right
  524. ReflowComments: true
  525. SortIncludes: true
  526. SortUsingDeclarations: false
  527. SpaceAfterCStyleCast: false
  528. SpaceAfterTemplateKeyword: true
  529. SpaceBeforeAssignmentOperators: true
  530. SpaceBeforeCtorInitializerColon: true
  531. SpaceBeforeInheritanceColon: true
  532. SpaceBeforeParens: ControlStatements
  533. SpaceBeforeRangeBasedForLoopColon: true
  534. SpaceInEmptyParentheses: false
  535. SpacesBeforeTrailingComments: 1
  536. SpacesInAngles: false
  537. SpacesInContainerLiterals: false
  538. SpacesInCStyleCastParentheses: false
  539. SpacesInParentheses: false
  540. SpacesInSquareBrackets: false
  541. Standard: Cpp03
  542. TabWidth: 8
  543. UseTab: Never
  544. ...