Reconcile -Weffc++ and readability-redundant-member-init in unit-bson.cpp (#5953)

This commit is contained in:
Niels Lohmann
2026-10-28 07:11:04 +01:00
committed by GitHub
parent 84c5421644
commit da83aa92c8
+2
View File
@@ -1311,6 +1311,8 @@ TEST_CASE("BSON declared document size bounds the content")
// records the events that a SAX parser receives
struct recorder : nlohmann::json_sax<json>
{
// GCC's -Weffc++ wants the member initialized in the member initialization list
// NOLINTNEXTLINE(readability-redundant-member-init)
std::string events {};
bool null() override