# --------------------------
# General Formatting Options
# --------------------------
# How wide to allow formatted cmake files
# line_width = 120

# How many spaces to tab for indent
tab_size = 4

# If a statement is wrapped to more than one line, than dangle the closing
# parenthesis on it's own line
dangle_parens = True

# If the statement spelling length (including space and parenthesis is larger
# than the tab width by more than this amoung, then force reject un-nested
# layouts.
max_prefix_chars = 80

# If a candidate layout is wrapped horizontally but it exceeds this many lines,
# then reject the layout.
# max_lines_hwrap = 1

# If positional argument lists are longer than this, wrap them vertically
max_pargs_hwrap = 2

# If an argument group contains more than this many sub-groups, force vertical layout
max_subgroups_hwrap = 1

max_rows_cmdline = 1

dangle_align = 'prefix'

# A list of command names which should always be wrapped
always_wrap = []

# If true, the argument lists which are known to be sortable will be sorted
# lexicographicall
enable_sort = True

# If true, the parsers may infer whether or not an argument list is sortable
# (without annotation).
autosort = False

# If a comment line starts with at least this many consecutive hash characters,
# then don't lstrip() them off. This allows for lazy hash rulers where the first
# hash char is not separated by space
hashruler_min_length = 10

# A dictionary containing any per-command configuration overrides. Currently
# only `command_case` is supported.
per_command = {}

# Specify the encoding of the input file. Defaults to utf-8.
input_encoding = "utf-8"

# Specify the encoding of the output file. Defaults to utf-8. Note that cmake
# only claims to support utf-8 so be careful when using anything else
output_encoding = "utf-8"
