@@ -254,7 +254,7 @@ private static void generateGroupClassHeader(
254
254
indent + " {\n " +
255
255
indent + " return %2$d;\n " +
256
256
indent + " }\n \n " +
257
- indent + " std::uint64_t position(void ) const\n " +
257
+ indent + " std::uint64_t position() const\n " +
258
258
indent + " {\n " +
259
259
indent + " return *m_positionPtr;\n " +
260
260
indent + " }\n \n " +
@@ -266,15 +266,15 @@ private static void generateGroupClassHeader(
266
266
indent + " }\n " +
267
267
indent + " *m_positionPtr = position;\n " +
268
268
indent + " }\n \n " +
269
- indent + " inline std::uint64_t count(void ) const\n " +
269
+ indent + " inline std::uint64_t count() const\n " +
270
270
indent + " {\n " +
271
271
indent + " return m_count;\n " +
272
272
indent + " }\n \n " +
273
- indent + " inline bool hasNext(void ) const\n " +
273
+ indent + " inline bool hasNext() const\n " +
274
274
indent + " {\n " +
275
275
indent + " return m_index + 1 < m_count;\n " +
276
276
indent + " }\n \n " +
277
- indent + " inline %3$s &next(void )\n " +
277
+ indent + " inline %3$s &next()\n " +
278
278
indent + " {\n " +
279
279
indent + " m_offset = *m_positionPtr;\n " +
280
280
indent + " if (SBE_BOUNDS_CHECK_EXPECT(( (m_offset + m_blockLength) > m_bufferLength ), false))\n " +
@@ -326,7 +326,7 @@ private static CharSequence generateGroupProperty(
326
326
327
327
sb .append (String .format (
328
328
"\n " +
329
- indent + " static SBE_CONSTEXPR std::uint16_t %1$sId(void )\n " +
329
+ indent + " static SBE_CONSTEXPR std::uint16_t %1$sId()\n " +
330
330
indent + " {\n " +
331
331
indent + " return %2$d;\n " +
332
332
indent + " }\n \n " ,
@@ -335,7 +335,7 @@ private static CharSequence generateGroupProperty(
335
335
336
336
sb .append (String .format (
337
337
"\n " +
338
- indent + " inline %1$s &%2$s(void )\n " +
338
+ indent + " inline %1$s &%2$s()\n " +
339
339
indent + " {\n " +
340
340
indent + " m_%2$s.wrapForDecode(m_buffer, m_positionPtr, m_actingVersion, m_bufferLength);\n " +
341
341
indent + " return m_%2$s;\n " +
@@ -356,16 +356,16 @@ private static CharSequence generateGroupProperty(
356
356
cppTypeForNumInGroup ));
357
357
358
358
sb .append (String .format (
359
- indent + " static SBE_CONSTEXPR std::uint64_t %1$sSinceVersion(void )\n " +
359
+ indent + " static SBE_CONSTEXPR std::uint64_t %1$sSinceVersion()\n " +
360
360
indent + " {\n " +
361
361
indent + " return %2$d;\n " +
362
362
indent + " }\n \n " +
363
- indent + " bool %1$sInActingVersion(void )\n " +
363
+ indent + " bool %1$sInActingVersion()\n " +
364
364
indent + " {\n " +
365
- indent + "#pragma GCC diagnostic push\n " +
366
- indent + "#pragma GCC diagnostic ignored \" -Wtautological-compare\" \n " +
365
+ indent + "#pragma clang diagnostic push\n " +
366
+ indent + "#pragma clang diagnostic ignored \" -Wtautological-compare\" \n " +
367
367
indent + " return m_actingVersion >= %1$sSinceVersion();\n " +
368
- indent + "#pragma GCC diagnostic pop\n " +
368
+ indent + "#pragma clang diagnostic pop\n " +
369
369
indent + " }\n " ,
370
370
propertyName ,
371
371
token .version ()));
@@ -397,7 +397,7 @@ private CharSequence generateVarData(final String className, final List<Token> t
397
397
sb , token , propertyName , characterEncoding , lengthToken , lengthOfLengthField , lengthCppType , indent );
398
398
399
399
sb .append (String .format (
400
- indent + " const char *%1$s(void )\n " +
400
+ indent + " const char *%1$s()\n " +
401
401
indent + " {\n " +
402
402
"%2$s" +
403
403
indent + " const char *fieldPtr = (m_buffer + position() + %3$d);\n " +
@@ -515,18 +515,18 @@ private void generateVarDataDescriptors(
515
515
characterEncoding ));
516
516
517
517
sb .append (String .format (
518
- indent + " static SBE_CONSTEXPR std::uint64_t %1$sSinceVersion(void )\n " +
518
+ indent + " static SBE_CONSTEXPR std::uint64_t %1$sSinceVersion()\n " +
519
519
indent + " {\n " +
520
520
indent + " return %2$d;\n " +
521
521
indent + " }\n \n " +
522
- indent + " bool %1$sInActingVersion(void )\n " +
522
+ indent + " bool %1$sInActingVersion()\n " +
523
523
indent + " {\n " +
524
- indent + "#pragma GCC diagnostic push\n " +
525
- indent + "#pragma GCC diagnostic ignored \" -Wtautological-compare\" \n " +
524
+ indent + "#pragma clang diagnostic push\n " +
525
+ indent + "#pragma clang diagnostic ignored \" -Wtautological-compare\" \n " +
526
526
indent + " return m_actingVersion >= %1$sSinceVersion();\n " +
527
- indent + "#pragma GCC diagnostic pop\n " +
527
+ indent + "#pragma clang diagnostic pop\n " +
528
528
indent + " }\n \n " +
529
- indent + " static SBE_CONSTEXPR std::uint16_t %1$sId(void )\n " +
529
+ indent + " static SBE_CONSTEXPR std::uint16_t %1$sId()\n " +
530
530
indent + " {\n " +
531
531
indent + " return %3$d;\n " +
532
532
indent + " }\n \n " ,
@@ -545,7 +545,7 @@ private void generateVarDataDescriptors(
545
545
546
546
sb .append (String .format (
547
547
"\n " +
548
- indent + " %4$s %1$sLength(void ) const\n " +
548
+ indent + " %4$s %1$sLength() const\n " +
549
549
indent + " {\n " +
550
550
"%2$s" +
551
551
indent + " return %3$s(*((%4$s *)(m_buffer + position())));\n " +
@@ -568,7 +568,7 @@ private void generateChoiceSet(final List<Token> tokens) throws IOException
568
568
569
569
out .append (String .format (
570
570
"\n " +
571
- " %1$s &clear(void )\n " +
571
+ " %1$s &clear()\n " +
572
572
" {\n " +
573
573
" *((%2$s *)(m_buffer + m_offset)) = 0;\n " +
574
574
" return *this;\n " +
@@ -653,7 +653,7 @@ private CharSequence generateChoices(final String bitsetClassName, final List<To
653
653
654
654
sb .append (String .format (
655
655
"\n " +
656
- " bool %1$s(void ) const\n " +
656
+ " bool %1$s() const\n " +
657
657
" {\n " +
658
658
"%2$s" +
659
659
" return %3$s(*((%4$s *)(m_buffer + m_offset))) & (0x1L << %5$s);\n " +
@@ -981,7 +981,7 @@ private CharSequence generatePrimitiveFieldMetaData(
981
981
982
982
sb .append (String .format (
983
983
"\n " +
984
- indent + " static SBE_CONSTEXPR std::size_t %1$sEncodingLength(void )\n " +
984
+ indent + " static SBE_CONSTEXPR std::size_t %1$sEncodingLength()\n " +
985
985
indent + " {\n " +
986
986
indent + " return %2$d;\n " +
987
987
indent + " }\n " ,
@@ -1000,7 +1000,7 @@ private CharSequence generateSingleValueProperty(
1000
1000
1001
1001
sb .append (String .format (
1002
1002
"\n " +
1003
- indent + " %1$s %2$s(void ) const\n " +
1003
+ indent + " %1$s %2$s() const\n " +
1004
1004
indent + " {\n " +
1005
1005
"%3$s" +
1006
1006
indent + " return %4$s(*((%1$s *)(m_buffer + m_offset + %5$d)));\n " +
@@ -1036,15 +1036,15 @@ private CharSequence generateArrayProperty(
1036
1036
1037
1037
sb .append (String .format (
1038
1038
"\n " +
1039
- indent + " static SBE_CONSTEXPR std::uint64_t %1$sLength(void )\n " +
1039
+ indent + " static SBE_CONSTEXPR std::uint64_t %1$sLength()\n " +
1040
1040
indent + " {\n " +
1041
1041
indent + " return %2$d;\n " +
1042
1042
indent + " }\n \n " ,
1043
1043
propertyName ,
1044
1044
token .arrayLength ()));
1045
1045
1046
1046
sb .append (String .format (
1047
- indent + " const char *%1$s(void ) const\n " +
1047
+ indent + " const char *%1$s() const\n " +
1048
1048
indent + " {\n " +
1049
1049
"%2$s" +
1050
1050
indent + " return (m_buffer + m_offset + %3$d);\n " +
@@ -1150,7 +1150,7 @@ private CharSequence generateConstPropertyMethods(
1150
1150
{
1151
1151
return String .format (
1152
1152
"\n " +
1153
- indent + " static SBE_CONSTEXPR %1$s %2$s(void )\n " +
1153
+ indent + " static SBE_CONSTEXPR %1$s %2$s()\n " +
1154
1154
indent + " {\n " +
1155
1155
indent + " return %3$s;\n " +
1156
1156
indent + " }\n " ,
@@ -1175,15 +1175,15 @@ private CharSequence generateConstPropertyMethods(
1175
1175
1176
1176
sb .append (String .format (
1177
1177
"\n " +
1178
- indent + " static SBE_CONSTEXPR std::uint64_t %1$sLength(void )\n " +
1178
+ indent + " static SBE_CONSTEXPR std::uint64_t %1$sLength()\n " +
1179
1179
indent + " {\n " +
1180
1180
indent + " return %2$d;\n " +
1181
1181
indent + " }\n \n " ,
1182
1182
propertyName ,
1183
1183
constantValue .length ));
1184
1184
1185
1185
sb .append (String .format (
1186
- indent + " const char *%1$s(void ) const\n " +
1186
+ indent + " const char *%1$s() const\n " +
1187
1187
indent + " {\n " +
1188
1188
indent + " static sbe_uint8_t %1$sValues[] = {%2$s};\n \n " +
1189
1189
indent + " return (const char *)%1$sValues;\n " +
@@ -1238,7 +1238,7 @@ private static CharSequence generateFixedFlyweightCode(final String className, f
1238
1238
" m_actingVersion = actingVersion;\n " +
1239
1239
" }\n \n " +
1240
1240
"public:\n " +
1241
- " %1$s(void ) : m_buffer(nullptr), m_offset(0) {}\n \n " +
1241
+ " %1$s() : m_buffer(nullptr), m_offset(0) {}\n \n " +
1242
1242
" %1$s(char *buffer, const std::uint64_t bufferLength, const std::uint64_t actingVersion)\n " +
1243
1243
" {\n " +
1244
1244
" reset(buffer, 0, bufferLength, actingVersion);\n " +
@@ -1249,15 +1249,15 @@ private static CharSequence generateFixedFlyweightCode(final String className, f
1249
1249
" reset(buffer, offset, bufferLength, actingVersion);\n " +
1250
1250
" return *this;\n " +
1251
1251
" }\n \n " +
1252
- " static SBE_CONSTEXPR std::uint64_t encodedLength(void )\n " +
1252
+ " static SBE_CONSTEXPR std::uint64_t encodedLength()\n " +
1253
1253
" {\n " +
1254
1254
" return %2$s;\n " +
1255
1255
" }\n \n " +
1256
- " std::uint64_t offset(void ) const\n " +
1256
+ " std::uint64_t offset() const\n " +
1257
1257
" {\n " +
1258
1258
" return m_offset;\n " +
1259
1259
" }\n \n " +
1260
- " char *buffer(void )\n " +
1260
+ " char *buffer()\n " +
1261
1261
" {\n " +
1262
1262
" return m_buffer;\n " +
1263
1263
" }\n \n " ,
@@ -1268,7 +1268,7 @@ private static CharSequence generateFixedFlyweightCode(final String className, f
1268
1268
private static CharSequence generateConstructorsAndOperators (final String className )
1269
1269
{
1270
1270
return String .format (
1271
- " %1$s(void ) : m_buffer(nullptr), m_bufferLength(0), m_offset(0) {}\n \n " +
1271
+ " %1$s() : m_buffer(nullptr), m_bufferLength(0), m_offset(0) {}\n \n " +
1272
1272
" %1$s(char *buffer, const std::uint64_t bufferLength)\n " +
1273
1273
" {\n " +
1274
1274
" reset(buffer, 0, bufferLength, sbeBlockLength(), sbeSchemaVersion());\n " +
@@ -1312,27 +1312,27 @@ private CharSequence generateMessageFlyweightCode(final String className, final
1312
1312
" }\n \n " +
1313
1313
"public:\n \n " +
1314
1314
"%11$s" +
1315
- " static SBE_CONSTEXPR %1$s sbeBlockLength(void )\n " +
1315
+ " static SBE_CONSTEXPR %1$s sbeBlockLength()\n " +
1316
1316
" {\n " +
1317
1317
" return %2$s;\n " +
1318
1318
" }\n \n " +
1319
- " static SBE_CONSTEXPR %3$s sbeTemplateId(void )\n " +
1319
+ " static SBE_CONSTEXPR %3$s sbeTemplateId()\n " +
1320
1320
" {\n " +
1321
1321
" return %4$s;\n " +
1322
1322
" }\n \n " +
1323
- " static SBE_CONSTEXPR %5$s sbeSchemaId(void )\n " +
1323
+ " static SBE_CONSTEXPR %5$s sbeSchemaId()\n " +
1324
1324
" {\n " +
1325
1325
" return %6$s;\n " +
1326
1326
" }\n \n " +
1327
- " static SBE_CONSTEXPR %7$s sbeSchemaVersion(void )\n " +
1327
+ " static SBE_CONSTEXPR %7$s sbeSchemaVersion()\n " +
1328
1328
" {\n " +
1329
1329
" return %8$s;\n " +
1330
1330
" }\n \n " +
1331
- " static SBE_CONSTEXPR const char * sbeSemanticType(void )\n " +
1331
+ " static SBE_CONSTEXPR const char * sbeSemanticType()\n " +
1332
1332
" {\n " +
1333
1333
" return \" %9$s\" ;\n " +
1334
1334
" }\n \n " +
1335
- " std::uint64_t offset(void ) const\n " +
1335
+ " std::uint64_t offset() const\n " +
1336
1336
" {\n " +
1337
1337
" return m_offset;\n " +
1338
1338
" }\n \n " +
@@ -1348,7 +1348,7 @@ private CharSequence generateMessageFlyweightCode(final String className, final
1348
1348
" reset(buffer, offset, bufferLength, actingBlockLength, actingVersion);\n " +
1349
1349
" return *this;\n " +
1350
1350
" }\n \n " +
1351
- " std::uint64_t position(void ) const\n " +
1351
+ " std::uint64_t position() const\n " +
1352
1352
" {\n " +
1353
1353
" return m_position;\n " +
1354
1354
" }\n \n " +
@@ -1360,15 +1360,15 @@ private CharSequence generateMessageFlyweightCode(final String className, final
1360
1360
" }\n " +
1361
1361
" m_position = position;\n " +
1362
1362
" }\n \n " +
1363
- " std::uint64_t encodedLength(void ) const\n " +
1363
+ " std::uint64_t encodedLength() const\n " +
1364
1364
" {\n " +
1365
1365
" return position() - m_offset;\n " +
1366
1366
" }\n \n " +
1367
- " char *buffer(void )\n " +
1367
+ " char *buffer()\n " +
1368
1368
" {\n " +
1369
1369
" return m_buffer;\n " +
1370
1370
" }\n \n " +
1371
- " std::uint64_t actingVersion(void ) const\n " +
1371
+ " std::uint64_t actingVersion() const\n " +
1372
1372
" {\n " +
1373
1373
" return m_actingVersion;\n " +
1374
1374
" }\n " ,
@@ -1399,30 +1399,30 @@ private CharSequence generateFields(final String containingClassName, final List
1399
1399
1400
1400
sb .append (String .format (
1401
1401
"\n " +
1402
- indent + " static SBE_CONSTEXPR std::uint16_t %1$sId(void )\n " +
1402
+ indent + " static SBE_CONSTEXPR std::uint16_t %1$sId()\n " +
1403
1403
indent + " {\n " +
1404
1404
indent + " return %2$d;\n " +
1405
1405
indent + " }\n \n " ,
1406
1406
propertyName ,
1407
1407
signalToken .id ()));
1408
1408
1409
1409
sb .append (String .format (
1410
- indent + " static SBE_CONSTEXPR std::uint64_t %1$sSinceVersion(void )\n " +
1410
+ indent + " static SBE_CONSTEXPR std::uint64_t %1$sSinceVersion()\n " +
1411
1411
indent + " {\n " +
1412
1412
indent + " return %2$d;\n " +
1413
1413
indent + " }\n \n " +
1414
- indent + " bool %1$sInActingVersion(void )\n " +
1414
+ indent + " bool %1$sInActingVersion()\n " +
1415
1415
indent + " {\n " +
1416
- indent + "#pragma GCC diagnostic push\n " +
1417
- indent + "#pragma GCC diagnostic ignored \" -Wtautological-compare\" \n " +
1416
+ indent + "#pragma clang diagnostic push\n " +
1417
+ indent + "#pragma clang diagnostic ignored \" -Wtautological-compare\" \n " +
1418
1418
indent + " return m_actingVersion >= %1$sSinceVersion();\n " +
1419
- indent + "#pragma GCC diagnostic pop\n " +
1419
+ indent + "#pragma clang diagnostic pop\n " +
1420
1420
indent + " }\n \n " ,
1421
1421
propertyName ,
1422
1422
signalToken .version ()));
1423
1423
1424
1424
sb .append (String .format (
1425
- indent + " static SBE_CONSTEXPR std::size_t %1$sEncodingOffset(void )\n " +
1425
+ indent + " static SBE_CONSTEXPR std::size_t %1$sEncodingOffset()\n " +
1426
1426
indent + " {\n " +
1427
1427
indent + " return %2$d;\n " +
1428
1428
indent + " }\n \n " ,
@@ -1521,7 +1521,7 @@ private CharSequence generateEnumProperty(
1521
1521
1522
1522
sb .append (String .format (
1523
1523
"\n " +
1524
- indent + " %1$s::Value %2$s(void ) const\n " +
1524
+ indent + " %1$s::Value %2$s() const\n " +
1525
1525
indent + " {\n " +
1526
1526
"%3$s" +
1527
1527
indent + " return %1$s::Value::%4$s;\n " +
@@ -1535,7 +1535,7 @@ private CharSequence generateEnumProperty(
1535
1535
{
1536
1536
sb .append (String .format (
1537
1537
"\n " +
1538
- indent + " %1$s::Value %2$s(void ) const\n " +
1538
+ indent + " %1$s::Value %2$s() const\n " +
1539
1539
indent + " {\n " +
1540
1540
"%3$s" +
1541
1541
indent + " return %1$s::get(%4$s(*((%5$s *)(m_buffer + m_offset + %6$d))));\n " +
@@ -1561,7 +1561,7 @@ private CharSequence generateEnumProperty(
1561
1561
formatByteOrderEncoding (token .encoding ().byteOrder (), token .encoding ().primitiveType ())));
1562
1562
1563
1563
sb .append (String .format (
1564
- indent + " static SBE_CONSTEXPR std::size_t %1$sEncodingLength(void )\n " +
1564
+ indent + " static SBE_CONSTEXPR std::size_t %1$sEncodingLength()\n " +
1565
1565
indent + " {\n " +
1566
1566
indent + " return %2$d;\n " +
1567
1567
indent + " }\n " ,
@@ -1600,7 +1600,7 @@ private static Object generateBitsetProperty(final String propertyName, final To
1600
1600
1601
1601
sb .append (String .format (
1602
1602
"\n " +
1603
- indent + " static SBE_CONSTEXPR std::size_t %1$sEncodingLength(void )\n " +
1603
+ indent + " static SBE_CONSTEXPR std::size_t %1$sEncodingLength()\n " +
1604
1604
indent + " {\n " +
1605
1605
indent + " return %2$d;\n " +
1606
1606
indent + " }\n " ,
@@ -1627,7 +1627,7 @@ private static Object generateCompositeProperty(final String propertyName, final
1627
1627
1628
1628
sb .append (String .format (
1629
1629
"\n " +
1630
- indent + " %1$s &%2$s(void )\n " +
1630
+ indent + " %1$s &%2$s()\n " +
1631
1631
indent + " {\n " +
1632
1632
indent + " m_%2$s.wrap(m_buffer, m_offset + %3$d, m_actingVersion, m_bufferLength);\n " +
1633
1633
indent + " return m_%2$s;\n " +
0 commit comments