.cmake-format.py 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. # Generated with cmake-format 0.5.1
  2. # How wide to allow formatted cmake files
  3. line_width = 80
  4. # How many spaces to tab for indent
  5. tab_size = 2
  6. # If arglists are longer than this, break them always
  7. max_subargs_per_line = 10
  8. # If true, separate flow control names from their parentheses with a space
  9. separate_ctrl_name_with_space = False
  10. # If true, separate function names from parentheses with a space
  11. separate_fn_name_with_space = False
  12. # If a statement is wrapped to more than one line, than dangle the closing
  13. # parenthesis on it's own line
  14. dangle_parens = False
  15. # What character to use for bulleted lists
  16. bullet_char = '*'
  17. # What character to use as punctuation after numerals in an enumerated list
  18. enum_char = '.'
  19. # What style line endings to use in the output.
  20. line_ending = u'unix'
  21. # Format command names consistently as 'lower' or 'upper' case
  22. command_case = u'lower'
  23. # Format keywords consistently as 'lower' or 'upper' case
  24. keyword_case = u'unchanged'
  25. # Specify structure for custom cmake functions
  26. additional_commands = {
  27. "foo": {
  28. "flags": [
  29. "BAR",
  30. "BAZ"
  31. ],
  32. "kwargs": {
  33. "HEADERS": "*",
  34. "DEPENDS": "*",
  35. "SOURCES": "*"
  36. }
  37. }
  38. }
  39. # A list of command names which should always be wrapped
  40. always_wrap = []
  41. # Specify the order of wrapping algorithms during successive reflow attempts
  42. algorithm_order = [0, 1, 2, 3, 4]
  43. # If true, the argument lists which are known to be sortable will be sorted
  44. # lexicographicall
  45. autosort = False
  46. # enable comment markup parsing and reflow
  47. enable_markup = True
  48. # If comment markup is enabled, don't reflow the first comment block in
  49. # eachlistfile. Use this to preserve formatting of your
  50. # copyright/licensestatements.
  51. first_comment_is_literal = False
  52. # If comment markup is enabled, don't reflow any comment block which matchesthis
  53. # (regex) pattern. Default is `None` (disabled).
  54. literal_comment_pattern = None
  55. # Regular expression to match preformat fences in comments
  56. # default=r'^\s*([`~]{3}[`~]*)(.*)$'
  57. fence_pattern = u'^\\s*([`~]{3}[`~]*)(.*)$'
  58. # Regular expression to match rulers in comments
  59. # default=r'^\s*[^\w\s]{3}.*[^\w\s]{3}$'
  60. ruler_pattern = u'^\\s*[^\\w\\s]{3}.*[^\\w\\s]{3}$'
  61. # If true, emit the unicode byte-order mark (BOM) at the start of the file
  62. emit_byteorder_mark = False
  63. # If a comment line starts with at least this many consecutive hash characters,
  64. # then don't lstrip() them off. This allows for lazy hash rulers where the first
  65. # hash char is not separated by space
  66. hashruler_min_length = 10
  67. # If true, then insert a space between the first hash char and remaining hash
  68. # chars in a hash ruler, and normalize it's length to fill the column
  69. canonicalize_hashrulers = True
  70. # Specify the encoding of the input file. Defaults to utf-8.
  71. input_encoding = u'utf-8'
  72. # Specify the encoding of the output file. Defaults to utf-8. Note that cmake
  73. # only claims to support utf-8 so be careful when using anything else
  74. output_encoding = u'utf-8'
  75. # A dictionary containing any per-command configuration overrides. Currently
  76. # only `command_case` is supported.
  77. per_command = {}