-
Notifications
You must be signed in to change notification settings - Fork 26
/
.cmake-format.yaml
202 lines (201 loc) · 4.38 KB
/
.cmake-format.yaml
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
---
markup:
first_comment_is_literal: true
format:
disable: false
line_width: 120
tab_size: 2
use_tabchars: false
max_subgroups_hwrap: 2
max_pargs_hwrap: 6
max_rows_cmdline: 2
separate_ctrl_name_with_space: false
separate_fn_name_with_space: false
dangle_parens: false
dangle_align: prefix
min_prefix_chars: 4
max_prefix_chars: 10
max_lines_hwrap: 2
line_ending: unix
command_case: canonical
keyword_case: unchanged
enable_sort: true
autosort: false
require_valid_layout: false
parse:
additional_commands:
_apply_patch_file:
kwargs:
PATCH_ARGS: +
ERROR_VARIABLE: 1
INPUT_FILE: 1
OUTPUT_VARIABLE: 1
RESULTS_VARIABLE: 1
RESULT_VARIABLE: 1
WORKING_DIRECTORY: 1
__exec_cmd:
kwargs:
COMMAND: +
WORKING_DIRECTORY: 1
__find_package:
pargs:
nargs: 1+
kwargs:
SEARCH_NAME: 1
apply_patches:
pargs:
nargs: +
flags:
- TRY_GIT_RESET
kwargs:
WORKING_DIRECTORY: 1
define_compiler_linker_flags:
pargs:
nargs: 2
kwargs:
COMPILER_FLAGS: 1
LINKER_FLAGS: 1
file:
pargs:
flags:
- CONFIGURE
- '@ONLY'
kwargs:
OUTPUT: 1
CONTENT: 1
NEWLINE_STYLE: 1
check_compiler_flags:
pargs:
nargs: 2+
flags:
- FLAGCHECK
kwargs:
LINKER_FLAGS: 1
check_link_flags:
pargs:
nargs: 2+
flags:
- VERBATIM
execute_process:
pargs:
flags:
- ECHO_ERROR_VARIABLE
- ECHO_OUTPUT_VARIABLE
- ERROR_QUIET
- ERROR_STRIP_TRAILING_WHITESPACE
- OUTPUT_QUIET
- OUTPUT_STRIP_TRAILING_WHITESPACE
kwargs:
COMMAND: 1+
COMMAND_ECHO: 1
COMMAND_ERROR_IS_FATAL: 1
ENCODING: 1
ERROR_FILE: 1
ERROR_VARIABLE: 1
INPUT_FILE: 1
OUTPUT_FILE: 1
OUTPUT_VARIABLE: 1
RESULTS_VARIABLE: 1
RESULT_VARIABLE: 1
TIMEOUT: 1
WORKING_DIRECTORY: 1
mindquantum_add_pkg:
pargs:
nargs: 1
flags:
- BUILD_USING_CMAKE
- CMAKE_PKG_NO_COMPONENTS
- FORCE_CONFIG_SEARCH
- FORCE_EXACT_VERSION
- FORCE_LOCAL_PKG
- GEN_CMAKE_CONFIG
- ONLY_MAKE
- SKIP_BUILD_STEP
- SKIP_INSTALL_STEP
- SKIP_IN_INSTALL_CONFIG
- USE_STATIC_LIBS
kwargs:
CMAKE_PATH: 1
EXE: 1
GIT_REPOSITORY: 1
GIT_TAG: 1
MD5: 1
URL: 1
VER: 1
BUILD_COMMAND: +
BUILD_DEPENDENCIES: +
BUILD_OPTION: +
CMAKE_OPTION: +
CONFIGURE_COMMAND: +
INSTALL_COMMAND: +
INSTALL_INCS: +
INSTALL_LIBS: +
LANGS: +
LIBS: +
LOCAL_EXTRA_DEFINES: +
ONLY_COPY_DIRS: +
ONLY_MAKE_INCS: +
ONLY_MAKE_LIBS: +
PATCHES: +
PRE_CONFIGURE_COMMAND: +
SYSTEM_EXTRA_DEFINES: +
TARGET_ALIAS: +
mq_add_compile_definitions:
pargs:
nargs: +
flags:
- TRYCOMPILE
- TRYCOMPILE_FLAGCHECK
mq_link_libraries:
pargs:
nargs: +
flags:
- TRYCOMPILE
- TRYCOMPILE_FLAGCHECK
pybind11_add_module:
pargs:
nargs: 1+
flags:
- MODULE
kwargs:
OUTPUT_HINT: 1
test_compile_option:
pargs:
nargs: 1+
flags:
- FLAGCHECK
- NO_MQ_TARGET
- NO_TRYCOMPILE_FLAGCHECK_TARGET
- NO_TRYCOMPILE_TARGET
kwargs:
CMAKE_OPTION: 1
FLAGS: +
GENEX: 1
LANGS: +
LINKER_FLAGS: 1
test_linker_option:
pargs:
nargs: 1+
flags:
- NO_MQ_TARGET
- VERBATIM
kwargs:
LANGS: +
FLAGS: +
CMAKE_OPTION: 1
GENEX: 1
try_compile_cxx_no_link:
pargs:
nargs: 2
flags:
- QUIET
kwargs:
OUTPUT: 1
INCLUDE_DIRECTORIES: +
LINK_LIBRARIES: +
lint:
argument_var_pattern: _?[a-z][a-z0-9_]+
local_var_pattern: _?([a-z][a-z0-9_]+|[A-Z][A-Z0-9_]+)
global_var_pattern: _?([a-z][a-z0-9_]+|[A-Z][A-Z0-9_]+)
internal_var_pattern: _?([a-z][a-z0-9_]+|[A-Z][A-Z0-9_]+)
macro_pattern: '[0-9a-z_]+'