Skip to content

Commit fb2662d

Browse files
committed
🚨 suppress invalid misc-const-correctness warnings
Signed-off-by: Niels Lohmann <[email protected]>
1 parent 66aa6d0 commit fb2662d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/src/unit-udt_macro.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ class person_without_private_data_2
181181
{}
182182
};
183183

184-
// NOLINT(misc-use-internal-linkage)
184+
// NOLINTNEXTLINE(misc-use-internal-linkage)
185185
NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(person_without_private_data_2, age, name, metadata)
186186

187187
class derived_person_without_private_data_2 : public person_without_private_data_2
@@ -202,7 +202,7 @@ class derived_person_without_private_data_2 : public person_without_private_data
202202
{}
203203
};
204204

205-
// NOLINT(misc-use-internal-linkage)
205+
// NOLINTNEXTLINE(misc-use-internal-linkage)
206206
NLOHMANN_DEFINE_DERIVED_TYPE_NON_INTRUSIVE(derived_person_without_private_data_2, person_without_private_data_2, hair_color)
207207

208208
class person_without_private_data_3
@@ -238,7 +238,7 @@ class person_without_private_data_3
238238
}
239239
};
240240

241-
// NOLINT(misc-use-internal-linkage)
241+
// NOLINTNEXTLINE(misc-use-internal-linkage)
242242
NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE_WITH_DEFAULT(person_without_private_data_3, age, name, metadata)
243243

244244
class derived_person_without_private_data_3 : public person_without_private_data_3
@@ -264,7 +264,7 @@ class derived_person_without_private_data_3 : public person_without_private_data
264264
}
265265
};
266266

267-
// NOLINT(misc-use-internal-linkage)
267+
// NOLINTNEXTLINE(misc-use-internal-linkage)
268268
NLOHMANN_DEFINE_DERIVED_TYPE_NON_INTRUSIVE_WITH_DEFAULT(derived_person_without_private_data_3, person_without_private_data_3, hair_color)
269269

270270
class person_with_private_alphabet
@@ -391,7 +391,7 @@ class person_with_public_alphabet
391391
int z = 0;
392392
};
393393

394-
// NOLINT(misc-use-internal-linkage)
394+
// NOLINTNEXTLINE(misc-use-internal-linkage)
395395
NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(person_with_public_alphabet, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z)
396396

397397
class person_without_default_constructor_1
@@ -430,7 +430,7 @@ class person_without_default_constructor_2
430430
{}
431431
};
432432

433-
// NOLINT(misc-use-internal-linkage)
433+
// NOLINTNEXTLINE(misc-use-internal-linkage)
434434
NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE_ONLY_SERIALIZE(person_without_default_constructor_2, name, age)
435435

436436
class derived_person_only_serialize_public : public person_without_default_constructor_1
@@ -444,7 +444,7 @@ class derived_person_only_serialize_public : public person_without_default_const
444444
{}
445445
};
446446

447-
// NOLINT(misc-use-internal-linkage)
447+
// NOLINTNEXTLINE(misc-use-internal-linkage)
448448
NLOHMANN_DEFINE_DERIVED_TYPE_NON_INTRUSIVE_ONLY_SERIALIZE(derived_person_only_serialize_public, person_without_default_constructor_1, hair_color)
449449

450450
class derived_person_only_serialize_private : person_without_default_constructor_1

0 commit comments

Comments
 (0)