-
Notifications
You must be signed in to change notification settings - Fork 229
/
.cmake-format.py
39 lines (36 loc) · 1015 Bytes
/
.cmake-format.py
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
# If a statement is wrapped to more than one line, than dangle the closing
# parenthesis on it's own line.
dangle_parens = True
dangle_align = 'child'
# If true, the parsers may infer whether or not an argument list is sortable
# (without annotation).
autosort = True
# How wide to allow formatted cmake files
line_width = 100
additional_commands = {
"target_sources": {
"kwargs": {
"PUBLIC": {
"pargs": {
"nargs": "*",
"tags": ["file-list"],
"sortable": True
}
},
"PRIVATE": {
"pargs": {
"nargs": "*",
"tags": ["file-list"],
"sortable": True
}
},
"INTERFACE": {
"pargs": {
"nargs": "*",
"tags": ["file-list"],
"sortable": True
}
},
}
},
}