Просмотр исходного кода

test: no leak here clang, but thanks for caring

Michele Caini 1 год назад
Родитель
Сommit
6936aa951a
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      test/entt/meta/meta_type.cpp

+ 1 - 0
test/entt/meta/meta_type.cpp

@@ -661,6 +661,7 @@ TEST_F(MetaType, FromVoidOwnership) {
     void *instance = std::make_unique<from_void_callback>(check).release();
 
     auto any = type.from_void(instance);
+    // NOLINTNEXTLINE(clang-analyzer-cplusplus.NewDeleteLeaks)
     auto other = type.from_void(instance, true);
 
     ASSERT_TRUE(any);