Skip to content

Commit 3b9d1fa

Browse files
author
Ziad Mostafa
committed
iox-#1368 Add rules for iox- cmake macros
Signed-off-by: Ziad Mostafa <[email protected]>
1 parent a14cc5c commit 3b9d1fa

File tree

1 file changed

+51
-8
lines changed

1 file changed

+51
-8
lines changed

.cmake-format.yaml

Lines changed: 51 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,57 @@ parse:
33
_help_additional_commands:
44
- Specify structure for custom cmake functions
55
additional_commands:
6-
foo:
7-
flags:
8-
- BAR
9-
- BAZ
6+
iox_add_executable:
7+
pargs:
8+
nargs: '*'
9+
flags:
10+
- USE_C_LANGUAGE
11+
- PLACE_IN_BUILD_ROOT
1012
kwargs:
11-
HEADERS: '*'
12-
SOURCES: '*'
13-
DEPENDS: '*'
13+
TARGET: 1
14+
STACK_SIZE: 1
15+
FILES: +
16+
LIBS: +
17+
INCLUDE_DIRECTORIES: +
18+
LIBS_QNX: +
19+
LIBS_LINUX: +
20+
LIBS_UNIX: +
21+
LIBS_WIN32: +
22+
LIBS_APPLE: +
23+
BUILD_INTERFACE: +
24+
INSTALL_INTERFACE: +
25+
iox_add_library:
26+
pargs:
27+
nargs: '*'
28+
flags:
29+
- USE_C_LANGUAGE
30+
- NO_EXPORT
31+
- NO_PACKAGE_SETUP
32+
- NO_FIND_PACKAGE_SUPPORT
33+
- STATIC
34+
kwargs:
35+
TARGET: 1
36+
NAMESPACE: 1
37+
PROJECT_PREFIX: 1
38+
FILES: +
39+
PUBLIC_LIBS: +
40+
PRIVATE_LIBS: +
41+
BUILD_INTERFACE: +
42+
INSTALL_INTERFACE: +
43+
ADDITIONAL_EXPORT_TARGETS: +
44+
PUBLIC_INCLUDES: +
45+
PRIVATE_INCLUDES: +
46+
PUBLIC_LIBS_LINUX: +
47+
PRIVATE_LIBS_LINUX: +
48+
PUBLIC_LIBS_QNX: +
49+
PRIVATE_LIBS_QNX: +
50+
PUBLIC_LIBS_UNIX: +
51+
PRIVATE_LIBS_UNIX: +
52+
PUBLIC_LIBS_WIN32: +
53+
PRIVATE_LIBS_WIN32: +
54+
PUBLIC_LIBS_APPLE: +
55+
PRIVATE_LIBS_APPLE: +
56+
EXPORT_INCLUDE_DIRS: +
1457
_help_override_spec:
1558
- Override configurations per-command where available
1659
override_spec: {}
@@ -70,7 +113,7 @@ format:
70113
_help_dangle_parens:
71114
- If a statement is wrapped to more than one line, than dangle
72115
- the closing parenthesis on its own line.
73-
dangle_parens: false
116+
dangle_parens: true
74117
_help_dangle_align:
75118
- If the trailing parenthesis must be 'dangled' on its on
76119
- 'line, then align it to this reference: `prefix`: the start'

0 commit comments

Comments
 (0)