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 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
- # AlignConsecutiveAssignments:
8
- # Enabled: false
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
- # AlignConsecutiveDeclarations:
22
- # Enabled: false
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
- AlignOperands: Align
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: '^<[^/ >]+>$' # C++ standard library headers, e.g., <string>, <vector>
141
- Priority: 1
142
- SortPriority: 0
143
- CaseSensitive: false
144
- - Regex: '^"catch/.*"$' # Catch headers
145
- Priority: 2
146
- SortPriority: 0
147
- CaseSensitive: false
148
- - Regex: '^"fast-cpp-csv-parser/.*"$' # fast-cpp-csv-parser headers
149
- Priority: 2
150
- SortPriority: 0
151
- CaseSensitive: false
152
- Priority: 3
153
- SortPriority: 0
154
- CaseSensitive: false
155
- - Regex: '^".*"$' # Catch all for all other third-party headers, e.g., "someheader.h"
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