@@ -59,6 +59,7 @@ The available options are summarized below:
59
59
60
60
- :option: `AbstractClassCase `, :option: `AbstractClassPrefix `, :option: `AbstractClassSuffix `, :option: `AbstractClassIgnoredRegexp `, :option: `AbstractClassHungarianPrefix `
61
61
- :option: `ClassCase `, :option: `ClassPrefix `, :option: `ClassSuffix `, :option: `ClassIgnoredRegexp `, :option: `ClassHungarianPrefix `
62
+ - :option: `ClassConstexprCase `, :option: `ClassConstexprPrefix `, :option: `ClassConstexprSuffix `, :option: `ClassConstexprIgnoredRegexp `, :option: `ClassConstexprHungarianPrefix `
62
63
- :option: `ClassConstantCase `, :option: `ClassConstantPrefix `, :option: `ClassConstantSuffix `, :option: `ClassConstantIgnoredRegexp `, :option: `ClassConstantHungarianPrefix `
63
64
- :option: `ClassMemberCase `, :option: `ClassMemberPrefix `, :option: `ClassMemberSuffix `, :option: `ClassMemberIgnoredRegexp `, :option: `ClassMemberHungarianPrefix `
64
65
- :option: `ClassMethodCase `, :option: `ClassMethodPrefix `, :option: `ClassMethodSuffix `, :option: `ClassMethodIgnoredRegexp `
@@ -73,12 +74,14 @@ The available options are summarized below:
73
74
- :option: `EnumCase `, :option: `EnumPrefix `, :option: `EnumSuffix `, :option: `EnumIgnoredRegexp `
74
75
- :option: `EnumConstantCase `, :option: `EnumConstantPrefix `, :option: `EnumConstantSuffix `, :option: `EnumConstantIgnoredRegexp `, :option: `EnumConstantHungarianPrefix `
75
76
- :option: `FunctionCase `, :option: `FunctionPrefix `, :option: `FunctionSuffix `, :option: `FunctionIgnoredRegexp `
77
+ - :option: `GlobalConstexprVariableCase `, :option: `GlobalConstexprVariablePrefix `, :option: `GlobalConstexprVariableSuffix `, :option: `GlobalConstexprVariableIgnoredRegexp `, :option: `GlobalConstexprVariableHungarianPrefix `
76
78
- :option: `GlobalConstantCase `, :option: `GlobalConstantPrefix `, :option: `GlobalConstantSuffix `, :option: `GlobalConstantIgnoredRegexp `, :option: `GlobalConstantHungarianPrefix `
77
79
- :option: `GlobalConstantPointerCase `, :option: `GlobalConstantPointerPrefix `, :option: `GlobalConstantPointerSuffix `, :option: `GlobalConstantPointerIgnoredRegexp `, :option: `GlobalConstantPointerHungarianPrefix `
78
80
- :option: `GlobalFunctionCase `, :option: `GlobalFunctionPrefix `, :option: `GlobalFunctionSuffix `, :option: `GlobalFunctionIgnoredRegexp `
79
81
- :option: `GlobalPointerCase `, :option: `GlobalPointerPrefix `, :option: `GlobalPointerSuffix `, :option: `GlobalPointerIgnoredRegexp `, :option: `GlobalPointerHungarianPrefix `
80
82
- :option: `GlobalVariableCase `, :option: `GlobalVariablePrefix `, :option: `GlobalVariableSuffix `, :option: `GlobalVariableIgnoredRegexp `, :option: `GlobalVariableHungarianPrefix `
81
83
- :option: `InlineNamespaceCase `, :option: `InlineNamespacePrefix `, :option: `InlineNamespaceSuffix `, :option: `InlineNamespaceIgnoredRegexp `
84
+ - :option: `LocalConstexprVariableCase `, :option: `LocalConstexprVariablePrefix `, :option: `LocalConstexprVariableSuffix `, :option: `LocalConstexprVariableIgnoredRegexp `, :option: `LocalConstexprVariableHungarianPrefix `
82
85
- :option: `LocalConstantCase `, :option: `LocalConstantPrefix `, :option: `LocalConstantSuffix `, :option: `LocalConstantIgnoredRegexp `, :option: `LocalConstantHungarianPrefix `
83
86
- :option: `LocalConstantPointerCase `, :option: `LocalConstantPointerPrefix `, :option: `LocalConstantPointerSuffix `, :option: `LocalConstantPointerIgnoredRegexp `, :option: `LocalConstantPointerHungarianPrefix `
84
87
- :option: `LocalPointerCase `, :option: `LocalPointerPrefix `, :option: `LocalPointerSuffix `, :option: `LocalPointerIgnoredRegexp `, :option: `LocalPointerHungarianPrefix `
@@ -97,6 +100,7 @@ The available options are summarized below:
97
100
- :option: `PublicMemberCase `, :option: `PublicMemberPrefix `, :option: `PublicMemberSuffix `, :option: `PublicMemberIgnoredRegexp `, :option: `PublicMemberHungarianPrefix `
98
101
- :option: `PublicMethodCase `, :option: `PublicMethodPrefix `, :option: `PublicMethodSuffix `, :option: `PublicMethodIgnoredRegexp `
99
102
- :option: `ScopedEnumConstantCase `, :option: `ScopedEnumConstantPrefix `, :option: `ScopedEnumConstantSuffix `, :option: `ScopedEnumConstantIgnoredRegexp `
103
+ - :option: `StaticConstexprVariableCase `, :option: `StaticConstexprVariablePrefix `, :option: `StaticConstexprVariableSuffix `, :option: `StaticConstexprVariableIgnoredRegexp `, :option: `StaticConstexprVariableHungarianPrefix `
100
104
- :option: `StaticConstantCase `, :option: `StaticConstantPrefix `, :option: `StaticConstantSuffix `, :option: `StaticConstantIgnoredRegexp `, :option: `StaticConstantHungarianPrefix `
101
105
- :option: `StaticVariableCase `, :option: `StaticVariablePrefix `, :option: `StaticVariableSuffix `, :option: `StaticVariableIgnoredRegexp `, :option: `StaticVariableHungarianPrefix `
102
106
- :option: `StructCase `, :option: `StructPrefix `, :option: `StructSuffix `, :option: `StructIgnoredRegexp `
@@ -307,6 +311,58 @@ After:
307
311
~pre_foo_post();
308
312
};
309
313
314
+ .. option :: ClassConstexprCase
315
+
316
+ When defined, the check will ensure class constexpr names conform to the
317
+ selected casing.
318
+
319
+ .. option :: ClassConstexprPrefix
320
+
321
+ When defined, the check will ensure class constexpr names will add the
322
+ prefixed with the given value (regardless of casing).
323
+
324
+ .. option :: ClassConstexprIgnoredRegexp
325
+
326
+ Identifier naming checks won't be enforced for class constexpr names
327
+ matching this regular expression.
328
+
329
+ .. option :: ClassConstexprSuffix
330
+
331
+ When defined, the check will ensure class constexpr names will add the
332
+ suffix with the given value (regardless of casing).
333
+
334
+ .. option :: ClassConstexprHungarianPrefix
335
+
336
+ When enabled, the check ensures that the declared identifier will
337
+ have a Hungarian notation prefix based on the declared type.
338
+
339
+ For example using values of:
340
+
341
+ - ClassConstexprCase of ``lower_case ``
342
+ - ClassConstexprPrefix of ``pre_ ``
343
+ - ClassConstexprSuffix of ``_post ``
344
+ - ClassConstexprHungarianPrefix of ``On ``
345
+
346
+ Identifies and/or transforms class constexpr variable names as follows:
347
+
348
+ Before:
349
+
350
+ .. code-block :: c++
351
+
352
+ class FOO {
353
+ public:
354
+ static constexpr int CLASS_CONSTEXPR;
355
+ };
356
+
357
+ After:
358
+
359
+ .. code-block :: c++
360
+
361
+ class FOO {
362
+ public:
363
+ static const int pre_class_constexpr_post;
364
+ };
365
+
310
366
.. option :: ClassConstantCase
311
367
312
368
When defined, the check will ensure class constant names conform to the
@@ -950,6 +1006,52 @@ After:
950
1006
different style.
951
1007
Default value is `true `.
952
1008
1009
+ .. option :: GlobalConstexprVariableCase
1010
+
1011
+ When defined, the check will ensure global constexpr variable names conform
1012
+ to the selected casing.
1013
+
1014
+ .. option :: GlobalConstexprVariablePrefix
1015
+
1016
+ When defined, the check will ensure global constexpr variable names will
1017
+ add the prefixed with the given value (regardless of casing).
1018
+
1019
+ .. option :: GlobalConstexprVariableIgnoredRegexp
1020
+
1021
+ Identifier naming checks won't be enforced for global constexpr variable
1022
+ names matching this regular expression.
1023
+
1024
+ .. option :: GlobalConstexprVariableSuffix
1025
+
1026
+ When defined, the check will ensure global constexpr variable names will
1027
+ add the suffix with the given value (regardless of casing).
1028
+
1029
+ .. option :: GlobalConstexprVariableHungarianPrefix
1030
+
1031
+ When enabled, the check ensures that the declared identifier will
1032
+ have a Hungarian notation prefix based on the declared type.
1033
+
1034
+ For example using values of:
1035
+
1036
+ - GlobalConstexprVariableCase of ``lower_case ``
1037
+ - GlobalConstexprVariablePrefix of ``pre_ ``
1038
+ - GlobalConstexprVariableSuffix of ``_post ``
1039
+ - GlobalConstexprVariableHungarianPrefix of ``On ``
1040
+
1041
+ Identifies and/or transforms global constexpr variable names as follows:
1042
+
1043
+ Before:
1044
+
1045
+ .. code-block :: c++
1046
+
1047
+ constexpr unsigned ImportantValue = 69;
1048
+
1049
+ After:
1050
+
1051
+ .. code-block :: c++
1052
+
1053
+ constexpr unsigned pre_important_value_post = 69;
1054
+
953
1055
.. option :: GlobalConstantCase
954
1056
955
1057
When defined, the check will ensure global constant names conform to the
@@ -1228,6 +1330,52 @@ After:
1228
1330
}
1229
1331
} // namespace FOO_NS
1230
1332
1333
+ .. option :: LocalConstexprVariableCase
1334
+
1335
+ When defined, the check will ensure local constexpr variable names conform
1336
+ to the selected casing.
1337
+
1338
+ .. option :: LocalConstexprVariablePrefix
1339
+
1340
+ When defined, the check will ensure local constexpr variable names will add
1341
+ the prefixed with the given value (regardless of casing).
1342
+
1343
+ .. option :: LocalConstexprVariableIgnoredRegexp
1344
+
1345
+ Identifier naming checks won't be enforced for local constant names
1346
+ matching this regular expression.
1347
+
1348
+ .. option :: LocalConstexprVariableSuffix
1349
+
1350
+ When defined, the check will ensure local constexpr variable names will add
1351
+ the suffix with the given value (regardless of casing).
1352
+
1353
+ .. option :: LocalConstexprVariableHungarianPrefix
1354
+
1355
+ When enabled, the check ensures that the declared identifier will
1356
+ have a Hungarian notation prefix based on the declared type.
1357
+
1358
+ For example using values of:
1359
+
1360
+ - LocalConstexprVariableCase of ``lower_case ``
1361
+ - LocalConstexprVariablePrefix of ``pre_ ``
1362
+ - LocalConstexprVariableSuffix of ``_post ``
1363
+ - LocalConstexprVariableHungarianPrefix of ``On ``
1364
+
1365
+ Identifies and/or transforms local constexpr variable names as follows:
1366
+
1367
+ Before:
1368
+
1369
+ .. code-block :: c++
1370
+
1371
+ void foo() { int const local_Constexpr = 420; }
1372
+
1373
+ After:
1374
+
1375
+ .. code-block :: c++
1376
+
1377
+ void foo() { int const pre_local_constexpr_post = 420; }
1378
+
1231
1379
.. option :: LocalConstantCase
1232
1380
1233
1381
When defined, the check will ensure local constant names conform to the
@@ -2077,6 +2225,52 @@ After:
2077
2225
2078
2226
enum class FOO { pre_One_post, pre_Two_post, pre_Three_post };
2079
2227
2228
+ .. option :: StaticConstexprVariableCase
2229
+
2230
+ When defined, the check will ensure static constexpr variable names conform
2231
+ to the selected casing.
2232
+
2233
+ .. option :: StaticConstexprVariablePrefix
2234
+
2235
+ When defined, the check will ensure static constexpr variable names will
2236
+ add the prefixed with the given value (regardless of casing).
2237
+
2238
+ .. option :: StaticConstexprVariableIgnoredRegexp
2239
+
2240
+ Identifier naming checks won't be enforced for static constexpr variable
2241
+ names matching this regular expression.
2242
+
2243
+ .. option :: StaticConstexprVariableSuffix
2244
+
2245
+ When defined, the check will ensure static constexpr variable names will
2246
+ add the suffix with the given value (regardless of casing).
2247
+
2248
+ .. option :: StaticConstexprVariableHungarianPrefix
2249
+
2250
+ When enabled, the check ensures that the declared identifier will
2251
+ have a Hungarian notation prefix based on the declared type.
2252
+
2253
+ For example using values of:
2254
+
2255
+ - StaticConstexprVariableCase of ``lower_case ``
2256
+ - StaticConstexprVariablePrefix of ``pre_ ``
2257
+ - StaticConstexprVariableSuffix of ``_post ``
2258
+ - StaticConstexprVariableHungarianPrefix of ``On ``
2259
+
2260
+ Identifies and/or transforms static constexpr variable names as follows:
2261
+
2262
+ Before:
2263
+
2264
+ .. code-block :: c++
2265
+
2266
+ static unsigned constexpr MyConstexprStatic_array[] = {1, 2, 3};
2267
+
2268
+ After:
2269
+
2270
+ .. code-block :: c++
2271
+
2272
+ static unsigned constexpr pre_my_constexpr_static_array_post[] = {1, 2, 3};
2273
+
2080
2274
.. option :: StaticConstantCase
2081
2275
2082
2276
When defined, the check will ensure static constant names conform to the
0 commit comments