Advertisement
AtomicOs

.clang-format

Apr 23rd, 2021 (edited)
483
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 16.87 KB | None | 0 0
  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: true
  15. AlignConsecutiveDeclarations: true
  16. AlignEscapedNewlines: Left # Unknown to clang-format-4.0
  17. AlignOperands: true
  18. AlignTrailingComments: true
  19. AllowAllParametersOfDeclarationOnNextLine: false
  20. AllowShortBlocksOnASingleLine: true
  21. AllowShortCaseLabelsOnASingleLine: true
  22. AllowShortFunctionsOnASingleLine: None
  23. AllowShortIfStatementsOnASingleLine: true
  24. AllowShortLoopsOnASingleLine: true
  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: true
  34.   AfterEnum: true
  35.   AfterFunction: true
  36.   AfterNamespace: true
  37.   AfterObjCDeclaration: true
  38.   AfterStruct: true
  39.   AfterUnion: true
  40.   #AfterExternBlock: false # Unknown to clang-format-5.0
  41.   BeforeCatch: true
  42.   BeforeElse: true
  43.   IndentBraces: true
  44.   #SplitEmptyFunction: true # Unknown to clang-format-4.0
  45.   #SplitEmptyRecord: true # Unknown to clang-format-4.0
  46.   #SplitEmptyNamespace: true # Unknown to clang-format-4.0
  47. BreakBeforeBinaryOperators: None
  48. BreakBeforeBraces: Custom
  49. #BreakBeforeInheritanceComma: true # Unknown to clang-format-4.0
  50. BreakBeforeTernaryOperators: true
  51. BreakConstructorInitializersBeforeComma: true
  52. #BreakConstructorInitializers: BeforeComma # Unknown to clang-format-4.0
  53. BreakAfterJavaFieldAnnotations: false
  54. BreakStringLiterals: false
  55. ColumnLimit: 80
  56. CommentPragmas: '^ IWYU pragma:'
  57. #CompactNamespaces: false # Unknown to clang-format-4.0
  58. ConstructorInitializerAllOnOneLineOrOnePerLine: false
  59. ConstructorInitializerIndentWidth: 8
  60. ContinuationIndentWidth: 8
  61. Cpp11BracedListStyle: false
  62. DerivePointerAlignment: false
  63. DisableFormat: false
  64. ExperimentalAutoDetectBinPacking: false
  65. #FixNamespaceComments: false # Unknown to clang-format-4.0
  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.   - 'cxl_for_each_cmd'
  112.   - 'device_for_each_child_node'
  113.   - 'dma_fence_chain_for_each'
  114.   - 'do_for_each_ftrace_op'
  115.   - 'drm_atomic_crtc_for_each_plane'
  116.   - 'drm_atomic_crtc_state_for_each_plane'
  117.   - 'drm_atomic_crtc_state_for_each_plane_state'
  118.   - 'drm_atomic_for_each_plane_damage'
  119.   - 'drm_client_for_each_connector_iter'
  120.   - 'drm_client_for_each_modeset'
  121.   - 'drm_connector_for_each_possible_encoder'
  122.   - 'drm_for_each_bridge_in_chain'
  123.   - 'drm_for_each_connector_iter'
  124.   - 'drm_for_each_crtc'
  125.   - 'drm_for_each_crtc_reverse'
  126.   - 'drm_for_each_encoder'
  127.   - 'drm_for_each_encoder_mask'
  128.   - 'drm_for_each_fb'
  129.   - 'drm_for_each_legacy_plane'
  130.   - 'drm_for_each_plane'
  131.   - 'drm_for_each_plane_mask'
  132.   - 'drm_for_each_privobj'
  133.   - 'drm_mm_for_each_hole'
  134.   - 'drm_mm_for_each_node'
  135.   - 'drm_mm_for_each_node_in_range'
  136.   - 'drm_mm_for_each_node_safe'
  137.   - 'flow_action_for_each'
  138.   - 'for_each_active_dev_scope'
  139.   - 'for_each_active_drhd_unit'
  140.   - 'for_each_active_iommu'
  141.   - 'for_each_aggr_pgid'
  142.   - 'for_each_available_child_of_node'
  143.   - 'for_each_bio'
  144.   - 'for_each_board_func_rsrc'
  145.   - 'for_each_bvec'
  146.   - 'for_each_card_auxs'
  147.   - 'for_each_card_auxs_safe'
  148.   - 'for_each_card_components'
  149.   - 'for_each_card_dapms'
  150.   - 'for_each_card_pre_auxs'
  151.   - 'for_each_card_prelinks'
  152.   - 'for_each_card_rtds'
  153.   - 'for_each_card_rtds_safe'
  154.   - 'for_each_card_widgets'
  155.   - 'for_each_card_widgets_safe'
  156.   - 'for_each_cgroup_storage_type'
  157.   - 'for_each_child_of_node'
  158.   - 'for_each_clear_bit'
  159.   - 'for_each_clear_bit_from'
  160.   - 'for_each_cmsghdr'
  161.   - 'for_each_compatible_node'
  162.   - 'for_each_component_dais'
  163.   - 'for_each_component_dais_safe'
  164.   - 'for_each_comp_order'
  165.   - 'for_each_console'
  166.   - 'for_each_cpu'
  167.   - 'for_each_cpu_and'
  168.   - 'for_each_cpu_not'
  169.   - 'for_each_cpu_wrap'
  170.   - 'for_each_dapm_widgets'
  171.   - 'for_each_dev_addr'
  172.   - 'for_each_dev_scope'
  173.   - 'for_each_displayid_db'
  174.   - 'for_each_dma_cap_mask'
  175.   - 'for_each_dpcm_be'
  176.   - 'for_each_dpcm_be_rollback'
  177.   - 'for_each_dpcm_be_safe'
  178.   - 'for_each_dpcm_fe'
  179.   - 'for_each_drhd_unit'
  180.   - 'for_each_dss_dev'
  181.   - 'for_each_efi_memory_desc'
  182.   - 'for_each_efi_memory_desc_in_map'
  183.   - 'for_each_element'
  184.   - 'for_each_element_extid'
  185.   - 'for_each_element_id'
  186.   - 'for_each_endpoint_of_node'
  187.   - 'for_each_evictable_lru'
  188.   - 'for_each_fib6_node_rt_rcu'
  189.   - 'for_each_fib6_walker_rt'
  190.   - 'for_each_free_mem_pfn_range_in_zone'
  191.   - 'for_each_free_mem_pfn_range_in_zone_from'
  192.   - 'for_each_free_mem_range'
  193.   - 'for_each_free_mem_range_reverse'
  194.   - 'for_each_func_rsrc'
  195.   - 'for_each_hstate'
  196.   - 'for_each_if'
  197.   - 'for_each_iommu'
  198.   - 'for_each_ip_tunnel_rcu'
  199.   - 'for_each_irq_nr'
  200.   - 'for_each_link_codecs'
  201.   - 'for_each_link_cpus'
  202.   - 'for_each_link_platforms'
  203.   - 'for_each_lru'
  204.   - 'for_each_matching_node'
  205.   - 'for_each_matching_node_and_match'
  206.   - 'for_each_member'
  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_mem_region'
  214.   - 'for_each_migratetype_order'
  215.   - 'for_each_msi_entry'
  216.   - 'for_each_msi_entry_safe'
  217.   - 'for_each_net'
  218.   - 'for_each_net_continue_reverse'
  219.   - 'for_each_netdev'
  220.   - 'for_each_netdev_continue'
  221.   - 'for_each_netdev_continue_rcu'
  222.   - 'for_each_netdev_continue_reverse'
  223.   - 'for_each_netdev_feature'
  224.   - 'for_each_netdev_in_bond_rcu'
  225.   - 'for_each_netdev_rcu'
  226.   - 'for_each_netdev_reverse'
  227.   - 'for_each_netdev_safe'
  228.   - 'for_each_net_rcu'
  229.   - 'for_each_new_connector_in_state'
  230.   - 'for_each_new_crtc_in_state'
  231.   - 'for_each_new_mst_mgr_in_state'
  232.   - 'for_each_new_plane_in_state'
  233.   - 'for_each_new_private_obj_in_state'
  234.   - 'for_each_node'
  235.   - 'for_each_node_by_name'
  236.   - 'for_each_node_by_type'
  237.   - 'for_each_node_mask'
  238.   - 'for_each_node_state'
  239.   - 'for_each_node_with_cpus'
  240.   - 'for_each_node_with_property'
  241.   - 'for_each_nonreserved_multicast_dest_pgid'
  242.   - 'for_each_of_allnodes'
  243.   - 'for_each_of_allnodes_from'
  244.   - 'for_each_of_cpu_node'
  245.   - 'for_each_of_pci_range'
  246.   - 'for_each_old_connector_in_state'
  247.   - 'for_each_old_crtc_in_state'
  248.   - 'for_each_old_mst_mgr_in_state'
  249.   - 'for_each_oldnew_connector_in_state'
  250.   - 'for_each_oldnew_crtc_in_state'
  251.   - 'for_each_oldnew_mst_mgr_in_state'
  252.   - 'for_each_oldnew_plane_in_state'
  253.   - 'for_each_oldnew_plane_in_state_reverse'
  254.   - 'for_each_oldnew_private_obj_in_state'
  255.   - 'for_each_old_plane_in_state'
  256.   - 'for_each_old_private_obj_in_state'
  257.   - 'for_each_online_cpu'
  258.   - 'for_each_online_node'
  259.   - 'for_each_online_pgdat'
  260.   - 'for_each_pci_bridge'
  261.   - 'for_each_pci_dev'
  262.   - 'for_each_pci_msi_entry'
  263.   - 'for_each_pcm_streams'
  264.   - 'for_each_physmem_range'
  265.   - 'for_each_populated_zone'
  266.   - 'for_each_possible_cpu'
  267.   - 'for_each_present_cpu'
  268.   - 'for_each_prime_number'
  269.   - 'for_each_prime_number_from'
  270.   - 'for_each_process'
  271.   - 'for_each_process_thread'
  272.   - 'for_each_property_of_node'
  273.   - 'for_each_registered_fb'
  274.   - 'for_each_requested_gpio'
  275.   - 'for_each_requested_gpio_in_range'
  276.   - 'for_each_reserved_mem_range'
  277.   - 'for_each_reserved_mem_region'
  278.   - 'for_each_rtd_codec_dais'
  279.   - 'for_each_rtd_components'
  280.   - 'for_each_rtd_cpu_dais'
  281.   - 'for_each_rtd_dais'
  282.   - 'for_each_set_bit'
  283.   - 'for_each_set_bit_from'
  284.   - 'for_each_set_clump8'
  285.   - 'for_each_sg'
  286.   - 'for_each_sg_dma_page'
  287.   - 'for_each_sg_page'
  288.   - 'for_each_sgtable_dma_page'
  289.   - 'for_each_sgtable_dma_sg'
  290.   - 'for_each_sgtable_page'
  291.   - 'for_each_sgtable_sg'
  292.   - 'for_each_sibling_event'
  293.   - 'for_each_subelement'
  294.   - 'for_each_subelement_extid'
  295.   - 'for_each_subelement_id'
  296.   - '__for_each_thread'
  297.   - 'for_each_thread'
  298.   - 'for_each_unicast_dest_pgid'
  299.   - 'for_each_vsi'
  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_entry_srcu'
  333.   - '__hlist_for_each_rcu'
  334.   - 'hlist_for_each_safe'
  335.   - 'hlist_nulls_for_each_entry'
  336.   - 'hlist_nulls_for_each_entry_from'
  337.   - 'hlist_nulls_for_each_entry_rcu'
  338.   - 'hlist_nulls_for_each_entry_safe'
  339.   - 'i3c_bus_for_each_i2cdev'
  340.   - 'i3c_bus_for_each_i3cdev'
  341.   - 'ide_host_for_each_port'
  342.   - 'ide_port_for_each_dev'
  343.   - 'ide_port_for_each_present_dev'
  344.   - 'idr_for_each_entry'
  345.   - 'idr_for_each_entry_continue'
  346.   - 'idr_for_each_entry_continue_ul'
  347.   - 'idr_for_each_entry_ul'
  348.   - 'in_dev_for_each_ifa_rcu'
  349.   - 'in_dev_for_each_ifa_rtnl'
  350.   - 'inet_bind_bucket_for_each'
  351.   - 'inet_lhash2_for_each_icsk_rcu'
  352.   - 'key_for_each'
  353.   - 'key_for_each_safe'
  354.   - 'klp_for_each_func'
  355.   - 'klp_for_each_func_safe'
  356.   - 'klp_for_each_func_static'
  357.   - 'klp_for_each_object'
  358.   - 'klp_for_each_object_safe'
  359.   - 'klp_for_each_object_static'
  360.   - 'kunit_suite_for_each_test_case'
  361.   - 'kvm_for_each_memslot'
  362.   - 'kvm_for_each_vcpu'
  363.   - 'list_for_each'
  364.   - 'list_for_each_codec'
  365.   - 'list_for_each_codec_safe'
  366.   - 'list_for_each_continue'
  367.   - 'list_for_each_entry'
  368.   - 'list_for_each_entry_continue'
  369.   - 'list_for_each_entry_continue_rcu'
  370.   - 'list_for_each_entry_continue_reverse'
  371.   - 'list_for_each_entry_from'
  372.   - 'list_for_each_entry_from_rcu'
  373.   - 'list_for_each_entry_from_reverse'
  374.   - 'list_for_each_entry_lockless'
  375.   - 'list_for_each_entry_rcu'
  376.   - 'list_for_each_entry_reverse'
  377.   - 'list_for_each_entry_safe'
  378.   - 'list_for_each_entry_safe_continue'
  379.   - 'list_for_each_entry_safe_from'
  380.   - 'list_for_each_entry_safe_reverse'
  381.   - 'list_for_each_entry_srcu'
  382.   - 'list_for_each_prev'
  383.   - 'list_for_each_prev_safe'
  384.   - 'list_for_each_safe'
  385.   - 'llist_for_each'
  386.   - 'llist_for_each_entry'
  387.   - 'llist_for_each_entry_safe'
  388.   - 'llist_for_each_safe'
  389.   - 'mci_for_each_dimm'
  390.   - 'media_device_for_each_entity'
  391.   - 'media_device_for_each_intf'
  392.   - 'media_device_for_each_link'
  393.   - 'media_device_for_each_pad'
  394.   - 'nanddev_io_for_each_page'
  395.   - 'netdev_for_each_lower_dev'
  396.   - 'netdev_for_each_lower_private'
  397.   - 'netdev_for_each_lower_private_rcu'
  398.   - 'netdev_for_each_mc_addr'
  399.   - 'netdev_for_each_uc_addr'
  400.   - 'netdev_for_each_upper_dev_rcu'
  401.   - 'netdev_hw_addr_list_for_each'
  402.   - 'nft_rule_for_each_expr'
  403.   - 'nla_for_each_attr'
  404.   - 'nla_for_each_nested'
  405.   - 'nlmsg_for_each_attr'
  406.   - 'nlmsg_for_each_msg'
  407.   - 'nr_neigh_for_each'
  408.   - 'nr_neigh_for_each_safe'
  409.   - 'nr_node_for_each'
  410.   - 'nr_node_for_each_safe'
  411.   - 'of_for_each_phandle'
  412.   - 'of_property_for_each_string'
  413.   - 'of_property_for_each_u32'
  414.   - 'pci_bus_for_each_resource'
  415.   - 'pcl_for_each_chunk'
  416.   - 'pcl_for_each_segment'
  417.   - 'pcm_for_each_format'
  418.   - 'ping_portaddr_for_each_entry'
  419.   - 'plist_for_each'
  420.   - 'plist_for_each_continue'
  421.   - 'plist_for_each_entry'
  422.   - 'plist_for_each_entry_continue'
  423.   - 'plist_for_each_entry_safe'
  424.   - 'plist_for_each_safe'
  425.   - 'pnp_for_each_card'
  426.   - 'pnp_for_each_dev'
  427.   - 'protocol_for_each_card'
  428.   - 'protocol_for_each_dev'
  429.   - 'queue_for_each_hw_ctx'
  430.   - 'radix_tree_for_each_slot'
  431.   - 'radix_tree_for_each_tagged'
  432.   - 'rbtree_postorder_for_each_entry_safe'
  433.   - 'rdma_for_each_block'
  434.   - 'rdma_for_each_port'
  435.   - 'rdma_umem_for_each_dma_block'
  436.   - 'resource_list_for_each_entry'
  437.   - 'resource_list_for_each_entry_safe'
  438.   - 'rhl_for_each_entry_rcu'
  439.   - 'rhl_for_each_rcu'
  440.   - 'rht_for_each'
  441.   - 'rht_for_each_entry'
  442.   - 'rht_for_each_entry_from'
  443.   - 'rht_for_each_entry_rcu'
  444.   - 'rht_for_each_entry_rcu_from'
  445.   - 'rht_for_each_entry_safe'
  446.   - 'rht_for_each_from'
  447.   - 'rht_for_each_rcu'
  448.   - 'rht_for_each_rcu_from'
  449.   - '__rq_for_each_bio'
  450.   - 'rq_for_each_bvec'
  451.   - 'rq_for_each_segment'
  452.   - 'scsi_for_each_prot_sg'
  453.   - 'scsi_for_each_sg'
  454.   - 'sctp_for_each_hentry'
  455.   - 'sctp_skb_for_each'
  456.   - 'shdma_for_each_chan'
  457.   - '__shost_for_each_device'
  458.   - 'shost_for_each_device'
  459.   - 'sk_for_each'
  460.   - 'sk_for_each_bound'
  461.   - 'sk_for_each_entry_offset_rcu'
  462.   - 'sk_for_each_from'
  463.   - 'sk_for_each_rcu'
  464.   - 'sk_for_each_safe'
  465.   - 'sk_nulls_for_each'
  466.   - 'sk_nulls_for_each_from'
  467.   - 'sk_nulls_for_each_rcu'
  468.   - 'snd_array_for_each'
  469.   - 'snd_pcm_group_for_each_entry'
  470.   - 'snd_soc_dapm_widget_for_each_path'
  471.   - 'snd_soc_dapm_widget_for_each_path_safe'
  472.   - 'snd_soc_dapm_widget_for_each_sink_path'
  473.   - 'snd_soc_dapm_widget_for_each_source_path'
  474.   - 'tb_property_for_each'
  475.   - 'tcf_exts_for_each_action'
  476.   - 'udp_portaddr_for_each_entry'
  477.   - 'udp_portaddr_for_each_entry_rcu'
  478.   - 'usb_hub_for_each_child'
  479.   - 'v4l2_device_for_each_subdev'
  480.   - 'v4l2_m2m_for_each_dst_buf'
  481.   - 'v4l2_m2m_for_each_dst_buf_safe'
  482.   - 'v4l2_m2m_for_each_src_buf'
  483.   - 'v4l2_m2m_for_each_src_buf_safe'
  484.   - 'virtio_device_for_each_vq'
  485.   - 'while_for_each_ftrace_op'
  486.   - 'xa_for_each'
  487.   - 'xa_for_each_marked'
  488.   - 'xa_for_each_range'
  489.   - 'xa_for_each_start'
  490.   - 'xas_for_each'
  491.   - 'xas_for_each_conflict'
  492.   - 'xas_for_each_marked'
  493.   - 'xbc_array_for_each_value'
  494.   - 'xbc_for_each_key_value'
  495.   - 'xbc_node_for_each_array_value'
  496.   - 'xbc_node_for_each_child'
  497.   - 'xbc_node_for_each_key_value'
  498.   - 'zorro_for_each_dev'
  499. #IncludeBlocks: Preserve # Unknown to clang-format-5.0
  500. IncludeCategories:
  501.   - Regex: '.*'
  502.     Priority: 1
  503. IncludeIsMainRegex: '(Test)?$'
  504. IndentCaseLabels: false
  505. #IndentPPDirectives: None # Unknown to clang-format-5.0
  506. IndentWidth: 8
  507. IndentWrappedFunctionNames: false
  508. JavaScriptQuotes: Leave
  509. JavaScriptWrapImports: true
  510. KeepEmptyLinesAtTheStartOfBlocks: false
  511. MacroBlockBegin: ''
  512. MacroBlockEnd: ''
  513. MaxEmptyLinesToKeep: 1
  514. NamespaceIndentation: None
  515. #ObjCBinPackProtocolList: Auto # Unknown to clang-format-5.0
  516. ObjCBlockIndentWidth: 8
  517. ObjCSpaceAfterProperty: true
  518. ObjCSpaceBeforeProtocolList: true
  519. # Taken from git's rules
  520. #PenaltyBreakAssignment: 10 # Unknown to clang-format-4.0
  521. PenaltyBreakBeforeFirstCallParameter: 30
  522. PenaltyBreakComment: 10
  523. PenaltyBreakFirstLessLess: 0
  524. PenaltyBreakString: 10
  525. PenaltyExcessCharacter: 100
  526. PenaltyReturnTypeOnItsOwnLine: 60
  527. PointerAlignment: Right
  528. ReflowComments: false
  529. SortIncludes: false
  530. #SortUsingDeclarations: false # Unknown to clang-format-4.0
  531. SpaceAfterCStyleCast: false
  532. SpaceAfterTemplateKeyword: true
  533. SpaceBeforeAssignmentOperators: true
  534. #SpaceBeforeCtorInitializerColon: true # Unknown to clang-format-5.0
  535. #SpaceBeforeInheritanceColon: true # Unknown to clang-format-5.0
  536. SpaceBeforeParens: ControlStatements
  537. #SpaceBeforeRangeBasedForLoopColon: true # Unknown to clang-format-5.0
  538. SpaceInEmptyParentheses: true
  539. SpacesBeforeTrailingComments: 1
  540. SpacesInAngles: false
  541. SpacesInContainerLiterals: true
  542. SpacesInCStyleCastParentheses: false
  543. SpacesInParentheses: true
  544. SpacesInSquareBrackets: true
  545. Standard: Cpp03
  546. TabWidth: 8
  547. UseTab: Always
  548. ...
  549.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement