Skip to content

Commit 54fac32

Browse files
committed
Re-add clang-format suppression.
1 parent 907b2bb commit 54fac32

File tree

1 file changed

+26
-13
lines changed

1 file changed

+26
-13
lines changed

autotest/cpp/test_viewshed.cpp

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ TEST(Viewshed, min_max_mask)
122122
xOutLen, yOutLen, GDT_Int8, 0, 0, nullptr);
123123
EXPECT_EQ(err, CE_None);
124124

125+
//clang-format off
125126
std::array<int8_t, 13 * 13> expected{
126127
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
127128
0, 0, 0, 0, 0, 0, 127, 0, 0, 0, 0, 0, 0,
@@ -136,6 +137,7 @@ TEST(Viewshed, min_max_mask)
136137
0, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 0,
137138
0, 0, 127, 127, 127, 127, 127, 127, 127, 127, 127, 0, 0,
138139
0, 0, 0, 127, 127, 127, 127, 127, 127, 127, 0, 0, 0};
140+
//clang-format on
139141

140142
int8_t *o = out.data();
141143
int8_t *e = expected.data();
@@ -189,11 +191,18 @@ TEST(Viewshed, angle)
189191
xOutLen, yOutLen, GDT_Int8, 0, 0, nullptr);
190192
EXPECT_EQ(err, CE_None);
191193

194+
// clang-format off
192195
std::array<int8_t, 6 * 9> expected{
193-
127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 0, 127, 127,
194-
127, 127, 0, 0, 127, 127, 127, 127, 0, 0, 127, 127, 127, 0,
195-
0, 0, 127, 127, 127, 0, 0, 0, 127, 127, 0, 0, 0, 0,
196-
127, 127, 0, 0, 0, 0, 127, 0, 0, 0, 0, 0};
196+
127, 127, 127, 127, 127, 127,
197+
127, 127, 127, 127, 127, 0,
198+
127, 127, 127, 127, 0, 0,
199+
127, 127, 127, 127, 0, 0,
200+
127, 127, 127, 0, 0, 0,
201+
127, 127, 127, 0, 0, 0,
202+
127, 127, 0, 0, 0, 0,
203+
127, 127, 0, 0, 0, 0,
204+
127, 0, 0, 0, 0, 0};
205+
// clang-format on
197206

198207
int8_t *o = out.data();
199208
int8_t *e = expected.data();
@@ -247,17 +256,21 @@ TEST(Viewshed, angle2)
247256
xOutLen, yOutLen, GDT_Int8, 0, 0, nullptr);
248257
EXPECT_EQ(err, CE_None);
249258

259+
// clang-format off
250260
std::array<int8_t, 11 * 11> expected{
251-
0, 0, 0, 0, 0, 127, 127, 127, 127, 127, 127, 0, 0, 0,
252-
0, 0, 127, 127, 127, 127, 127, 127, 127, 0, 0, 0, 0, 127,
253-
127, 127, 127, 127, 127, 127, 127, 127, 0, 0, 127, 127, 127, 127,
254-
127, 127, 127, 127, 127, 127, 0, 127, 127, 127, 127, 127, 127, 127,
255-
127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127,
256-
127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127,
257-
127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127,
258-
127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127,
259-
127, 127, 127, 127, 127, 127, 127, 127, 127,
261+
0, 0, 0, 0, 0, 127, 127, 127, 127, 127, 127,
262+
0, 0, 0, 0, 0, 127, 127, 127, 127, 127, 127,
263+
127, 0, 0, 0, 0, 127, 127, 127, 127, 127, 127,
264+
127, 127, 127, 0, 0, 127, 127, 127, 127, 127, 127,
265+
127, 127, 127, 127, 0, 127, 127, 127, 127, 127, 127,
266+
127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127,
267+
127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127,
268+
127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127,
269+
127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127,
270+
127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127,
271+
127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127
260272
};
273+
// clang-format on
261274

262275
int8_t *o = out.data();
263276
int8_t *e = expected.data();

0 commit comments

Comments
 (0)