forked from mindspore-ai/mindquantum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cmake-format.yaml
141 lines (140 loc) · 2.93 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
---
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:
file:
pargs:
flags:
- CONFIGURE
- '@ONLY'
kwargs:
OUTPUT: 1
CONTENT: 1
NEWLINE_STYLE: 1
check_compiler_flags:
pargs:
nargs: 2+
flags:
- FLAGCHECK
test_compile_option:
pargs:
nargs: 1+
flags:
- FLAGCHECK
- NO_MQ_TARGET
- NO_TRYCOMPILE_TARGET
- NO_TRYCOMPILE_FLAGCHECK_TARGET
kwargs:
LANGS: +
FLAGS: +
CMAKE_OPTION: 1
GENEX: 1
check_link_flags:
pargs:
nargs: 2+
flags:
- VERBATIM
test_linker_option:
pargs:
nargs: 1+
flags:
- NO_MQ_TARGET
- VERBATIM
kwargs:
LANGS: +
FLAGS: +
CMAKE_OPTION: 1
GENEX: 1
_apply_patch_file:
kwargs:
PATCH_ARGS: +
ERROR_VARIABLE: 1
INPUT_FILE: 1
OUTPUT_VARIABLE: 1
RESULTS_VARIABLE: 1
RESULT_VARIABLE: 1
WORKING_DIRECTORY: 1
__find_package:
pargs:
nargs: 1+
kwargs:
SEARCH_NAME: 1
__exec_cmd:
kwargs:
COMMAND: +
WORKING_DIRECTORY: 1
pybind11_add_module:
pargs:
nargs: 1+
flags:
- MODULE
kwargs:
OUTPUT_HINT: 1
mq_add_compile_definitions:
pargs:
nargs: +
mindquantum_add_pkg:
pargs:
nargs: 1
flags:
- 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
kwargs:
CMAKE_PATH: 1
CUSTOM_CMAKE: 1
DIR: 1
EXE: 1
GIT_REPOSITORY: 1
GIT_TAG: 1
MD5: 1
NS_NAME: 1
URL: 1
VER: 1
BUILD_COMMAND: +
BUILD_DEPENDENCIES: +
BUILD_OPTION: +
CMAKE_OPTION: +
CONFIGURE_COMMAND: +
INSTALL_COMMAND: +
INSTALL_INCS: +
INSTALL_LIBS: +
LIBS: +
ONLY_COPY_DIRS: +
ONLY_MAKE_INCS: +
ONLY_MAKE_LIBS: +
PATCHES: +
PRE_CONFIGURE_COMMAND: +
TARGET_ALIAS: +
lint:
argument_var_pattern: _?[a-z][a-z0-9_]+
local_var_pattern: _?([a-z][a-z0-9_]+|[A-Z][A-Z0-9_]+)
macro_pattern: '[0-9a-z_]+'