This repository has been archived by the owner on Oct 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.cmake-format.py
90 lines (87 loc) · 2.33 KB
/
.cmake-format.py
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
with section("parse"):
additional_commands = {
"pybind11_add_module": {
"pargs": "1+",
"flags": [],
"kwargs": {
"MODULE": 1,
"SHARED": 1,
"EXCLUDE_FROM_ALL": 1,
"NO_EXTRAS": 1,
"SYSTEM": 1,
"THIN_LTO": 1,
"OPT_SIZE": 1,
},
},
"setup_target_for_coverage_lcov": {
"pargs": 0,
"flags": ["NO_DEMANGLE"],
"kwargs": {
"NAME": 1,
"BASE_DIRECTORY": 1,
"EXCLUDE": "*",
"EXECUTABLE": "*",
"EXECUTABLE_ARGS": "*",
"DEPENDENCIES": "*",
"LCOV_ARGS": "*",
"GENHTML_ARGS": "*",
},
},
"setup_target_for_coverage_gcovr_xml": {
"pargs": 0,
"flags": [],
"kwargs": {
"NAME": 1,
"BASE_DIRECTORY": 1,
"EXCLUDE": "*",
"EXECUTABLE": "*",
"EXECUTABLE_ARGS": "*",
"DEPENDENCIES": "*",
},
},
"setup_target_for_coverage_gcovr_html": {
"pargs": 0,
"flags": [],
"kwargs": {
"NAME": 1,
"BASE_DIRECTORY": 1,
"EXCLUDE": "*",
"EXECUTABLE": "*",
"EXECUTABLE_ARGS": "*",
"DEPENDENCIES": "*",
},
},
"conan_cmake_run": {
"pargs": "*",
"flags": [
"BASIC_SETUP",
"CMAKE_TARGETS",
"UPDATE",
"KEEP_RPATHS",
"NO_LOAD",
"NO_OUTPUT_DIRS",
"OUTPUT_QUIET",
"NO_IMPORTS",
"SKIP_STD",
],
"kwargs": {
"CONANFILE": 1,
"ARCH": 1,
"BUILD": 1,
"REQUIRES": "*",
"OPTIONS": "*",
},
},
}
with section("lint"):
disabled_codes = [
"C0113",
]
with section("format"):
dangle_parens = True
line_ending = "unix"
line_width = 80
tab_size = 2
keyword_case = "upper"
with section("markup"):
bullet_char = "-"