1
0
Эх сурвалжийг харах

test: let the linter know that things are done on purpose sometimes

Michele Caini 1 жил өмнө
parent
commit
95f84d1488

+ 1 - 0
test/entt/core/compressed_pair.cpp

@@ -130,6 +130,7 @@ TEST(CompressedPair, Get) {
     ASSERT_EQ(pair.first(), 3);
     ASSERT_EQ(pair.first(), 3);
     ASSERT_EQ(pair.second(), 4);
     ASSERT_EQ(pair.second(), 4);
 
 
+    // NOLINTNEXTLINE((readability-qualified-auto)
     auto &[cfirst, csecond] = std::as_const(pair);
     auto &[cfirst, csecond] = std::as_const(pair);
 
 
     ASSERT_EQ(cfirst, 3);
     ASSERT_EQ(cfirst, 3);