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