measur-tools-suite 1.0.11-beta.44 → 1.0.11-beta.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.clang-format +125 -45
- package/CONTRIBUTING.md +736 -691
- package/bin/package.json +1 -1
- package/contributing/.pages +6 -0
- package/contributing/conventional-commits.md +89 -0
- package/contributing/documentation.md +353 -0
- package/contributing/formatting.md +51 -0
- package/contributing/index.md +24 -0
- package/contributing/style-guide.md +444 -0
- package/docs/dependencies/mathjax-config.js +92 -0
- package/docs/dependencies/siunitx.js +1 -0
- package/package.json +1 -1
- package/bin/client.js +0 -1
- package/bin/client.wasm +0 -0
- package/mathjax-config.js +0 -30
package/.clang-format
CHANGED
|
@@ -2,10 +2,42 @@
|
|
|
2
2
|
Language: Cpp
|
|
3
3
|
# BasedOnStyle: Google
|
|
4
4
|
# AccessModifierOffset: -1
|
|
5
|
+
|
|
6
|
+
# --------------------------------------------------------------------------------
|
|
7
|
+
# If true, horizontally aligns arguments after an open bracket. This applies to
|
|
8
|
+
# round brackets (parentheses), angle brackets and square brackets.
|
|
9
|
+
#
|
|
10
|
+
# Possible values:
|
|
11
|
+
#
|
|
12
|
+
# Align: Align parameters on the open bracket, e.g.:
|
|
13
|
+
#
|
|
14
|
+
# someLongFunction(argument1,
|
|
15
|
+
# argument2);
|
|
16
|
+
|
|
17
|
+
# DontAlign: Don't align, instead use ContinuationIndentWidth, e.g.:
|
|
18
|
+
#
|
|
19
|
+
# someLongFunction(argument1,
|
|
20
|
+
# argument2);
|
|
21
|
+
|
|
22
|
+
# AlwaysBreak: Always break after an open bracket, if the parameters don't fit on
|
|
23
|
+
# a single line, e.g.:
|
|
24
|
+
#
|
|
25
|
+
# someLongFunction(
|
|
26
|
+
# argument1, argument2);
|
|
27
|
+
# --------------------------------------------------------------------------------
|
|
5
28
|
AlignAfterOpenBracket: Align
|
|
6
29
|
# AlignArrayOfStructures: None
|
|
7
|
-
|
|
8
|
-
#
|
|
30
|
+
|
|
31
|
+
# --------------------------------------------------------------------------------
|
|
32
|
+
# If true, aligns consecutive assignments. This will align the assignment
|
|
33
|
+
# operators of consecutive lines. This will result in formattings like
|
|
34
|
+
#
|
|
35
|
+
# int aaaa = 12;
|
|
36
|
+
# int b = 23;
|
|
37
|
+
# int ccc = 23;
|
|
38
|
+
# --------------------------------------------------------------------------------
|
|
39
|
+
AlignConsecutiveAssignments:
|
|
40
|
+
Enabled: true
|
|
9
41
|
# AcrossEmptyLines: false
|
|
10
42
|
# AcrossComments: false
|
|
11
43
|
# AlignCompound: false
|
|
@@ -18,13 +50,33 @@ AlignAfterOpenBracket: Align
|
|
|
18
50
|
# AlignCompound: false
|
|
19
51
|
# AlignFunctionPointers: false
|
|
20
52
|
# PadOperators: false
|
|
21
|
-
|
|
22
|
-
#
|
|
53
|
+
|
|
54
|
+
# --------------------------------------------------------------------------------
|
|
55
|
+
# If true, aligns consecutive declarations. This will align the declaration names
|
|
56
|
+
# of consecutive lines. This will result in formattings like
|
|
57
|
+
#
|
|
58
|
+
# int aaaa = 12;
|
|
59
|
+
# float b = 23;
|
|
60
|
+
# std::string ccc = 23;
|
|
61
|
+
# --------------------------------------------------------------------------------
|
|
62
|
+
AlignConsecutiveDeclarations:
|
|
63
|
+
Enabled: true
|
|
23
64
|
# AcrossEmptyLines: false
|
|
24
65
|
# AcrossComments: false
|
|
25
66
|
# AlignCompound: false
|
|
26
|
-
# AlignFunctionPointers: false
|
|
67
|
+
# AlignFunctionPointers: false
|
|
27
68
|
# PadOperators: false
|
|
69
|
+
|
|
70
|
+
# --------------------------------------------------------------------------------
|
|
71
|
+
# If true, aligns consecutive C/C++ preprocessor macros. This will align the C/C++
|
|
72
|
+
# preprocessor macros of consecutive lines. This will result in formattings like
|
|
73
|
+
#
|
|
74
|
+
# #define SHORT_NAME 42
|
|
75
|
+
# #define LONGER_NAME 0x007f
|
|
76
|
+
# #define EVEN_LONGER_NAME (2)
|
|
77
|
+
# #define foo(x) (x * x)
|
|
78
|
+
# #define bar(y, z) (y + z)
|
|
79
|
+
# --------------------------------------------------------------------------------
|
|
28
80
|
AlignConsecutiveMacros:
|
|
29
81
|
Enabled: true
|
|
30
82
|
# AcrossEmptyLines: false
|
|
@@ -60,7 +112,24 @@ AlignConsecutiveMacros:
|
|
|
60
112
|
# AlignFunctionPointers: false
|
|
61
113
|
# PadOperators: false
|
|
62
114
|
# AlignEscapedNewlines: Left
|
|
63
|
-
|
|
115
|
+
|
|
116
|
+
# --------------------------------------------------------------------------------
|
|
117
|
+
# If true, horizontally align operands of binary and ternary expressions.
|
|
118
|
+
# Specifically, this aligns operands of a single expression that needs to be split
|
|
119
|
+
# over multiple lines, e.g.:
|
|
120
|
+
#
|
|
121
|
+
# int aaa = bbbbbbbbbbbbbbb +
|
|
122
|
+
# ccccccccccccccc;
|
|
123
|
+
# --------------------------------------------------------------------------------
|
|
124
|
+
AlignOperands: true
|
|
125
|
+
|
|
126
|
+
# --------------------------------------------------------------------------------
|
|
127
|
+
# If true, aligns trailing comments.
|
|
128
|
+
#
|
|
129
|
+
# true: false:
|
|
130
|
+
# int a; // My comment a vs. int a; // My comment a
|
|
131
|
+
# int b = 2; // comment b int b = 2; // comment about b
|
|
132
|
+
# --------------------------------------------------------------------------------
|
|
64
133
|
AlignTrailingComments:
|
|
65
134
|
Kind: Always
|
|
66
135
|
OverEmptyLines: 0
|
|
@@ -80,7 +149,41 @@ AlignTrailingComments:
|
|
|
80
149
|
# AlwaysBreakBeforeMultilineStrings: true
|
|
81
150
|
# AttributeMacros:
|
|
82
151
|
# - __capability
|
|
152
|
+
|
|
153
|
+
# --------------------------------------------------------------------------------
|
|
154
|
+
# If false, a function call's arguments will either be all on the same line or
|
|
155
|
+
# will have one line each.
|
|
156
|
+
#
|
|
157
|
+
# true:
|
|
158
|
+
#
|
|
159
|
+
# void f() {
|
|
160
|
+
# f(aaaaaaaaaaaaaaaaaaaa, aaaaaaaaaaaaaaaaaaaa,
|
|
161
|
+
# aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa);
|
|
162
|
+
# }
|
|
163
|
+
#
|
|
164
|
+
# false:
|
|
165
|
+
# void f() {
|
|
166
|
+
# f(aaaaaaaaaaaaaaaaaaaa,
|
|
167
|
+
# aaaaaaaaaaaaaaaaaaaa,
|
|
168
|
+
# aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa);
|
|
169
|
+
# }
|
|
170
|
+
# --------------------------------------------------------------------------------
|
|
83
171
|
BinPackArguments: true
|
|
172
|
+
|
|
173
|
+
# --------------------------------------------------------------------------------
|
|
174
|
+
# If false, a function declaration's or function definition's parameters will either all be on the same line or will have one line each.
|
|
175
|
+
#
|
|
176
|
+
# true:
|
|
177
|
+
#
|
|
178
|
+
# void f(int aaaaaaaaaaaaaaaaaaaa, int aaaaaaaaaaaaaaaaaaaa,
|
|
179
|
+
# int aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa) {}
|
|
180
|
+
#
|
|
181
|
+
# false:
|
|
182
|
+
#
|
|
183
|
+
# void f(int aaaaaaaaaaaaaaaaaaaa,
|
|
184
|
+
# int aaaaaaaaaaaaaaaaaaaa,
|
|
185
|
+
# int aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa) {}
|
|
186
|
+
# --------------------------------------------------------------------------------
|
|
84
187
|
BinPackParameters: true
|
|
85
188
|
# BitFieldColonSpacing: Both
|
|
86
189
|
BraceWrapping:
|
|
@@ -137,45 +240,22 @@ FixNamespaceComments: true
|
|
|
137
240
|
# - KJ_IF_MAYBE
|
|
138
241
|
IncludeBlocks: Regroup
|
|
139
242
|
IncludeCategories:
|
|
140
|
-
- Regex:
|
|
141
|
-
Priority:
|
|
142
|
-
SortPriority:
|
|
143
|
-
CaseSensitive:
|
|
144
|
-
- Regex:
|
|
145
|
-
Priority:
|
|
146
|
-
SortPriority:
|
|
147
|
-
CaseSensitive:
|
|
148
|
-
- Regex:
|
|
149
|
-
Priority:
|
|
150
|
-
SortPriority:
|
|
151
|
-
CaseSensitive:
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
Priority: 4
|
|
157
|
-
SortPriority: 0
|
|
158
|
-
CaseSensitive: false
|
|
159
|
-
- Regex: '^"[^"]+\.h"' # Project-local includes, e.g., "myheader.h"
|
|
160
|
-
Priority: 5
|
|
161
|
-
SortPriority: 0
|
|
162
|
-
CaseSensitive: false
|
|
163
|
-
# - Regex: ^<ext/.*\.h>
|
|
164
|
-
# Priority: 2
|
|
165
|
-
# SortPriority: 0
|
|
166
|
-
# CaseSensitive: false
|
|
167
|
-
# - Regex: ^<.*\.h>
|
|
168
|
-
# Priority: 1
|
|
169
|
-
# SortPriority: 0
|
|
170
|
-
# CaseSensitive: false
|
|
171
|
-
# - Regex: ^<.*
|
|
172
|
-
# Priority: 2
|
|
173
|
-
# SortPriority: 0
|
|
174
|
-
# CaseSensitive: false
|
|
175
|
-
# - Regex: .*
|
|
176
|
-
# Priority: 3
|
|
177
|
-
# SortPriority: 0
|
|
178
|
-
# CaseSensitive: false
|
|
243
|
+
- Regex: '^<([a-zA-Z0-9_]+\.h)>' # C system headers, e.g., <stdio.h>, <stdlib.h>
|
|
244
|
+
Priority: 1
|
|
245
|
+
SortPriority: 0
|
|
246
|
+
CaseSensitive: false
|
|
247
|
+
- Regex: '^<([a-zA-Z0-9_]+)>' # C++ standard library headers, e.g., <string>, <vector>
|
|
248
|
+
Priority: 2
|
|
249
|
+
SortPriority: 0
|
|
250
|
+
CaseSensitive: false
|
|
251
|
+
- Regex: '^<.*>' # Other third-party headers, e.g., <boost/someheader.h>
|
|
252
|
+
Priority: 3
|
|
253
|
+
SortPriority: 0
|
|
254
|
+
CaseSensitive: false
|
|
255
|
+
- Regex: '^".*"' # Project-local includes, e.g., "my_header.h"
|
|
256
|
+
Priority: 4
|
|
257
|
+
SortPriority: 0
|
|
258
|
+
CaseSensitive: false
|
|
179
259
|
# IncludeIsMainRegex: ([-_](test|unittest))?$
|
|
180
260
|
# IncludeIsMainSourceRegex: ""
|
|
181
261
|
# IndentAccessModifiers: false
|