|
1 | | -bullet_char: '*' |
2 | | -dangle_parens: true |
3 | | -enum_char: . |
4 | | -line_ending: unix |
5 | | -line_width: 80 |
6 | | -max_pargs_hwrap: 3 |
| 1 | +disable : false |
| 2 | + |
| 3 | +# How wide to allow formatted cmake files |
| 4 | +line_width: 110 |
| 5 | + |
| 6 | +# How many spaces to tab for indent |
| 7 | +tab_size: 4 |
| 8 | + |
| 9 | +# If true, lines are indented using tab characters (utf-8 0x09) instead of |
| 10 | +# <tab_size> space characters (utf-8 0x20). In cases where the layout would |
| 11 | +# require a fractional tab character, the behavior of the fractional |
| 12 | +# indentation is governed by <fractional_tab_policy> |
| 13 | +use_tabchars: false |
| 14 | + |
| 15 | +# If an argument group contains more than this many sub-groups (parg or kwarg |
| 16 | +# groups) then force it to a vertical layout. |
| 17 | +max_subgroups_hwrap: 2 |
| 18 | + |
| 19 | +# If a positional argument group contains more than this many arguments, then |
| 20 | +# force it to a vertical layout. |
| 21 | +max_pargs_hwrap: 6 |
| 22 | + |
| 23 | +# If a cmdline positional group consumes more than this many lines without |
| 24 | +# nesting, then invalidate the layout (and nest) |
| 25 | +max_rows_cmdline: 2 |
| 26 | + |
| 27 | +# If true, separate flow control names from their parentheses with a space |
7 | 28 | separate_ctrl_name_with_space: true |
| 29 | + |
| 30 | +# If true, separate function names from parentheses with a space |
8 | 31 | separate_fn_name_with_space: false |
9 | | -tab_size: 4 |
| 32 | + |
| 33 | +# If a statement is wrapped to more than one line, than dangle the closing |
| 34 | +# parenthesis on its own line. |
| 35 | +dangle_parens: true |
| 36 | + |
| 37 | +# If the trailing parenthesis must be 'dangled' on its own line, then align it |
| 38 | +# to this reference: `prefix`: the start of the statement, `prefix-indent`: |
| 39 | +# the start of the statement, plus one indentation level, `child`: align to |
| 40 | +# the column of the arguments |
| 41 | +dangle_align: "prefix" |
| 42 | + |
| 43 | +# If the statement spelling length (including space and parenthesis) is smaller |
| 44 | +# than this amount, then force reject nested layouts. |
| 45 | +min_prefix_chars: 4 |
| 46 | + |
| 47 | +# If the statement spelling length (including space and parenthesis) is larger |
| 48 | +# than the tab width by more than this amount, then force reject un-nested |
| 49 | +# layouts. |
| 50 | +max_prefix_chars: 10 |
| 51 | + |
| 52 | +# If a candidate layout is wrapped horizontally but it exceeds this many lines, |
| 53 | +# then reject the layout. |
| 54 | +max_lines_hwrap: 2 |
| 55 | + |
| 56 | +# What style line endings to use in the output. |
| 57 | +line_ending: 'unix' |
| 58 | + |
| 59 | +# Format command names consistently as 'lower' or 'upper' case |
| 60 | +command_case: 'canonical' # TODO |
| 61 | + |
| 62 | +# Format keywords consistently as 'lower' or 'upper' case |
| 63 | +keyword_case: 'unchanged' # TODO |
| 64 | + |
| 65 | +# A list of command names which should always be wrapped |
| 66 | +always_wrap: [] |
| 67 | + |
| 68 | +# If true, the argument lists which are known to be sortable will be sorted |
| 69 | +# lexicographicall |
| 70 | +enable_sort: true |
| 71 | + |
| 72 | +# If true, the parsers may infer whether or not an argument list is sortable |
| 73 | +# (without annotation). |
| 74 | +autosort: false |
| 75 | + |
| 76 | +# By default, if cmake-format cannot successfully fit everything into the |
| 77 | +# desired linewidth it will apply the last, most agressive attempt that it |
| 78 | +# made. If this flag is True, however, cmake-format will print error, exit with |
| 79 | +# non-zero status code, and write-out nothing |
| 80 | +require_valid_layout: false |
| 81 | + |
| 82 | +# ------------------------------------------------ |
| 83 | +# Options affecting comment reflow and formatting. |
| 84 | +# ------------------------------------------------ |
| 85 | + |
| 86 | +# What character to use for bulleted lists |
| 87 | +bullet_char: '*' |
| 88 | + |
| 89 | +# What character to use as punctuation after numerals in an enumerated list |
| 90 | +enum_char: '.' |
| 91 | + |
| 92 | +# If comment markup is enabled, don't reflow the first comment block in each |
| 93 | +# listfile. Use this to preserve formatting of your copyright/license |
| 94 | +# statements. |
| 95 | +first_comment_is_literal: false |
| 96 | + |
| 97 | +# If comment markup is enabled, don't reflow any comment block which matches |
| 98 | +# this (regex) pattern. Default is `None` (disabled). |
| 99 | +literal_comment_pattern: null |
| 100 | + |
| 101 | +explicit_trailing_pattern: "#<" |
| 102 | + |
| 103 | +# If a comment line starts with at least this many consecutive hash characters, |
| 104 | +# then don't lstrip() them off. This allows for lazy hash rulers where the |
| 105 | +# first hash char is not separated by space |
| 106 | +hashruler_min_length: 10 |
| 107 | + |
| 108 | +# If true, then insert a space between the first hash char and remaining hash |
| 109 | +# chars in a hash ruler, and normalize its length to fill the column |
| 110 | +canonicalize_hashrulers: true |
| 111 | + |
| 112 | +# enable comment markup parsing and reflow |
| 113 | +enable_markup: true |
0 commit comments