mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-20 21:43:06 +01:00
Improve array formatting
For most of these cases, adding a trailing comma to the array block makes clang-format put each item on a new line, and clang-format exception blocks could be reduced where clang-format does not handle them properly.
This commit is contained in:
@@ -503,20 +503,35 @@ const uint8_t SawyerCodingTest::rotatedata[] = {
|
||||
0x40, 0x7d, 0xf4, 0xfa, 0x2f, 0x6b, 0x93, 0x44, 0x5e,
|
||||
};
|
||||
|
||||
const uint8_t SawyerCodingTest::invalid1[] = { 0x02, 0x04, 0x00, 0x00, 0x00, 0xd4, 0xff, 0xce, 0xcf, 0x2e, 0x00 };
|
||||
const uint8_t SawyerCodingTest::invalid1[] = {
|
||||
0x02, 0x04, 0x00, 0x00, 0x00, 0xd4, 0xff, 0xce, 0xcf, 0x2e, 0x00,
|
||||
};
|
||||
|
||||
const uint8_t SawyerCodingTest::invalid2[] = { 0x02, 0x03, 0x00, 0x00, 0x00, 0x01, 0x00, 0x27, 0x3f, 0x01, 0x00 };
|
||||
const uint8_t SawyerCodingTest::invalid2[] = {
|
||||
0x02, 0x03, 0x00, 0x00, 0x00, 0x01, 0x00, 0x27, 0x3f, 0x01, 0x00,
|
||||
};
|
||||
|
||||
const uint8_t SawyerCodingTest::invalid3[] = { 0x02, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x73 };
|
||||
const uint8_t SawyerCodingTest::invalid3[] = {
|
||||
0x02, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x73,
|
||||
};
|
||||
|
||||
const uint8_t SawyerCodingTest::invalid4[] = { 0x02, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00 };
|
||||
const uint8_t SawyerCodingTest::invalid4[] = {
|
||||
0x02, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
};
|
||||
|
||||
const uint8_t SawyerCodingTest::invalid5[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0xdf, 0x00, 0x00 };
|
||||
const uint8_t SawyerCodingTest::invalid5[] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0xdf, 0x00, 0x00,
|
||||
};
|
||||
|
||||
const uint8_t SawyerCodingTest::invalid6[] = { 0x02, 0x02, 0x00, 0x00, 0x00, 0x28, 0x7f };
|
||||
const uint8_t SawyerCodingTest::invalid6[] = {
|
||||
0x02, 0x02, 0x00, 0x00, 0x00, 0x28, 0x7f,
|
||||
};
|
||||
|
||||
const uint8_t SawyerCodingTest::invalid7[] = { 0x01, 0x01, 0x00, 0x00, 0x00, 0x00 };
|
||||
const uint8_t SawyerCodingTest::invalid7[] = {
|
||||
0x01, 0x01, 0x00, 0x00, 0x00, 0x00,
|
||||
};
|
||||
|
||||
// This needs to be non-empty to satisfy MSVC. We still pass zero as length.
|
||||
const uint8_t SawyerCodingTest::empty[] = { 0x00 };
|
||||
const uint8_t SawyerCodingTest::empty[] = {
|
||||
0x00,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user