-
Notifications
You must be signed in to change notification settings - Fork 17
/
.cmake-format
57 lines (55 loc) · 1.81 KB
/
.cmake-format
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
# ----------------------------------
# Options affecting listfile parsing
# ----------------------------------
with section("parse"):
# Specify structure for custom cmake functions
additional_commands = {
'ament_target_dependencies': {
'kwargs': {
'PUBLIC': '*',
'INTERFACE': '*',
'SYSTEM': '*',
},
},
'rclcpp_components_register_node': {
'pargs': {
'nargs': 1,
},
'kwargs': {
'PLUGIN': 1,
'EXECUTABLE': 1,
'EXECUTOR': 1,
'RESOURCE_INDEX': 1,
}
},
'catkin_package': {
'flags': [
'SKIP_CMAKE_CONFIG_GENERATION',
'SKIP_PKG_CONFIG_GENERATION',
],
'kwargs': {
'INCLUDE_DIRS': '*',
'LIBRARIES': '*',
'CATKIN_DEPENDS': '*',
'DEPENDS': '*',
'CFG_EXTRAS': 1,
'EXPORTED_TARGETS': '*',
}
},
}
# -----------------------------
# Options affecting formatting.
# -----------------------------
with section("format"):
# Force vertical layout if an argument group contains more than this many sub-groups.
max_subgroups_hwrap = 2
# Force vertical layout if a positional argument group contains more than this many arguments.
max_pargs_hwrap = 3
# If true, the parsers may infer whether or not an argument list is sortable (without annotation).
autosort = True
# ------------------------------------------------
# Options affecting comment reflow and formatting.
# ------------------------------------------------
with section("markup"):
# Disable comment markup parsing and reflow.
enable_markup = False