forked from opentibiabr/canary
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.cmake-format
More file actions
58 lines (43 loc) · 1.78 KB
/
.cmake-format
File metadata and controls
58 lines (43 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# --------------------------
# 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"