.cmake-format.yaml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. parse:
  2. additional_commands:
  3. pybind11_add_module:
  4. flags:
  5. - THIN_LTO
  6. - MODULE
  7. - SHARED
  8. - NO_EXTRAS
  9. - EXCLUDE_FROM_ALL
  10. - SYSTEM
  11. format:
  12. line_width: 99
  13. tab_size: 2
  14. # If an argument group contains more than this many sub-groups
  15. # (parg or kwarg groups) then force it to a vertical layout.
  16. max_subgroups_hwrap: 2
  17. # If a positional argument group contains more than this many
  18. # arguments, then force it to a vertical layout.
  19. max_pargs_hwrap: 6
  20. # If a cmdline positional group consumes more than this many
  21. # lines without nesting, then invalidate the layout (and nest)
  22. max_rows_cmdline: 2
  23. separate_ctrl_name_with_space: false
  24. separate_fn_name_with_space: false
  25. dangle_parens: false
  26. # If the trailing parenthesis must be 'dangled' on its on
  27. # 'line, then align it to this reference: `prefix`: the start'
  28. # 'of the statement, `prefix-indent`: the start of the'
  29. # 'statement, plus one indentation level, `child`: align to'
  30. # the column of the arguments
  31. dangle_align: prefix
  32. # If the statement spelling length (including space and
  33. # parenthesis) is smaller than this amount, then force reject
  34. # nested layouts.
  35. min_prefix_chars: 4
  36. # If the statement spelling length (including space and
  37. # parenthesis) is larger than the tab width by more than this
  38. # amount, then force reject un-nested layouts.
  39. max_prefix_chars: 10
  40. # If a candidate layout is wrapped horizontally but it exceeds
  41. # this many lines, then reject the layout.
  42. max_lines_hwrap: 2
  43. line_ending: unix
  44. # Format command names consistently as 'lower' or 'upper' case
  45. command_case: canonical
  46. # Format keywords consistently as 'lower' or 'upper' case
  47. # unchanged is valid too
  48. keyword_case: 'upper'
  49. # A list of command names which should always be wrapped
  50. always_wrap: []
  51. # If true, the argument lists which are known to be sortable
  52. # will be sorted lexicographically
  53. enable_sort: true
  54. # If true, the parsers may infer whether or not an argument
  55. # list is sortable (without annotation).
  56. autosort: false
  57. # Causes a few issues - can be solved later, possibly.
  58. markup:
  59. enable_markup: false