Skip to content

Commit 75377f3

Browse files
committed
cmake: Use/include Buddy formatting rules for consistency
1 parent 0b23ab8 commit 75377f3

File tree

2 files changed

+106
-69
lines changed

2 files changed

+106
-69
lines changed

.cmake-format.py

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# If a statement is wrapped to more than one line, than dangle the closing
2+
# parenthesis on it's own line.
3+
dangle_parens = True
4+
dangle_align = 'child'
5+
6+
# If true, the parsers may infer whether or not an argument list is sortable
7+
# (without annotation).
8+
autosort = True
9+
10+
# How wide to allow formatted cmake files
11+
line_width = 100
12+
13+
additional_commands = {
14+
"target_sources": {
15+
"kwargs": {
16+
"PUBLIC": "*",
17+
"PRIVATE": "*",
18+
"INTERFACE": "*",
19+
}
20+
},
21+
}

0 commit comments

Comments
 (0)