Ver Fonte

test: some hints by iwyu

Michele Caini há 1 ano atrás
pai
commit
82b5bcc282

+ 4 - 0
test/benchmark/benchmark.cpp

@@ -4,8 +4,12 @@
 #include <utility>
 #include <vector>
 #include <gtest/gtest.h>
+#include <entt/core/algorithm.hpp>
+#include <entt/entity/mixin.hpp>
 #include <entt/entity/registry.hpp>
 #include <entt/entity/runtime_view.hpp>
+#include <entt/entity/storage.hpp>
+#include <entt/entity/view.hpp>
 
 struct position {
     std::uint64_t x;

+ 1 - 0
test/entt/entity/component.cpp

@@ -1,3 +1,4 @@
+#include <type_traits>
 #include <gtest/gtest.h>
 #include <entt/config/config.h>
 #include <entt/entity/component.hpp>

+ 3 - 0
test/entt/entity/group.cpp

@@ -5,9 +5,12 @@
 #include <tuple>
 #include <utility>
 #include <gtest/gtest.h>
+#include <entt/entity/entity.hpp>
 #include <entt/entity/group.hpp>
+#include <entt/entity/mixin.hpp>
 #include <entt/entity/registry.hpp>
 #include <entt/entity/view.hpp>
+#include <entt/signal/sigh.hpp>
 #include "../../common/boxed_type.h"
 #include "../../common/config.h"
 #include "../../common/empty.h"

+ 2 - 0
test/entt/entity/handle.cpp

@@ -7,7 +7,9 @@
 #include <entt/core/type_traits.hpp>
 #include <entt/entity/entity.hpp>
 #include <entt/entity/handle.hpp>
+#include <entt/entity/mixin.hpp>
 #include <entt/entity/registry.hpp>
+#include <entt/entity/storage.hpp>
 #include "../../common/config.h"
 
 template<typename Type>

+ 4 - 0
test/entt/entity/helper.cpp

@@ -3,7 +3,11 @@
 #include <entt/entity/component.hpp>
 #include <entt/entity/entity.hpp>
 #include <entt/entity/helper.hpp>
+#include <entt/entity/mixin.hpp>
 #include <entt/entity/registry.hpp>
+#include <entt/entity/storage.hpp>
+#include <entt/entity/view.hpp>
+#include <entt/signal/sigh.hpp>
 #include "../../common/pointer_stable.h"
 
 struct clazz {

+ 3 - 0
test/entt/entity/organizer.cpp

@@ -3,8 +3,11 @@
 #include <utility>
 #include <gtest/gtest.h>
 #include <entt/core/type_info.hpp>
+#include <entt/entity/group.hpp>
+#include <entt/entity/mixin.hpp>
 #include <entt/entity/organizer.hpp>
 #include <entt/entity/registry.hpp>
+#include <entt/entity/view.hpp>
 
 void ro_int_rw_char_double(entt::view<entt::get_t<const int, char>>, double &) {}
 void ro_char_rw_int(entt::group<entt::owned_t<int>, entt::get_t<const char>>) {}

+ 1 - 0
test/entt/entity/reactive_mixin.cpp

@@ -10,6 +10,7 @@
 #include <entt/entity/mixin.hpp>
 #include <entt/entity/registry.hpp>
 #include <entt/entity/storage.hpp>
+#include <entt/signal/sigh.hpp>
 #include "../../common/config.h"
 #include "../../common/empty.h"
 #include "../../common/entity.h"

+ 4 - 0
test/entt/entity/registry.cpp

@@ -13,8 +13,12 @@
 #include <entt/core/hashed_string.hpp>
 #include <entt/core/type_info.hpp>
 #include <entt/entity/entity.hpp>
+#include <entt/entity/group.hpp>
+#include <entt/entity/mixin.hpp>
 #include <entt/entity/registry.hpp>
+#include <entt/entity/storage.hpp>
 #include <entt/entity/view.hpp>
+#include <entt/signal/sigh.hpp>
 #include "../../common/aggregate.h"
 #include "../../common/config.h"
 #include "../../common/empty.h"

+ 1 - 0
test/entt/entity/sigh_mixin.cpp

@@ -10,6 +10,7 @@
 #include <entt/entity/mixin.hpp>
 #include <entt/entity/registry.hpp>
 #include <entt/entity/storage.hpp>
+#include <entt/signal/sigh.hpp>
 #include "../../common/config.h"
 #include "../../common/entity.h"
 #include "../../common/linter.hpp"

+ 1 - 0
test/entt/entity/snapshot.cpp

@@ -7,6 +7,7 @@
 #include <entt/core/any.hpp>
 #include <entt/core/hashed_string.hpp>
 #include <entt/entity/entity.hpp>
+#include <entt/entity/mixin.hpp>
 #include <entt/entity/registry.hpp>
 #include <entt/entity/snapshot.hpp>
 #include <entt/signal/sigh.hpp>

+ 1 - 0
test/example/reserved_bits.cpp

@@ -6,6 +6,7 @@
 #include <entt/core/enum.hpp>
 #include <entt/core/fwd.hpp>
 #include <entt/entity/entity.hpp>
+#include <entt/entity/mixin.hpp>
 #include <entt/entity/registry.hpp>
 #include <entt/entity/view.hpp>
 

+ 1 - 0
test/lib/dispatcher/plugin/main.cpp

@@ -3,6 +3,7 @@
 #include <gtest/gtest.h>
 #include <cr.h>
 #include <entt/signal/dispatcher.hpp>
+#include <entt/signal/sigh.hpp>
 #include "../../../common/boxed_type.h"
 #include "../../../common/listener.h"
 

+ 1 - 0
test/lib/dispatcher/shared/main.cpp

@@ -2,6 +2,7 @@
 #include <entt/core/attribute.h>
 #include <entt/core/utility.hpp>
 #include <entt/signal/dispatcher.hpp>
+#include <entt/signal/sigh.hpp>
 #include "../../../common/boxed_type.h"
 #include "../../../common/listener.h"
 

+ 1 - 0
test/lib/registry/plugin/main.cpp

@@ -3,6 +3,7 @@
 #include <gtest/gtest.h>
 #include <cr.h>
 #include <entt/entity/entity.hpp>
+#include <entt/entity/mixin.hpp>
 #include <entt/entity/registry.hpp>
 #include <entt/entity/view.hpp>
 #include "../../../common/boxed_type.h"

+ 1 - 0
test/lib/registry/plugin/plugin.cpp

@@ -1,4 +1,5 @@
 #include <cr.h>
+#include <entt/entity/mixin.hpp>
 #include <entt/entity/registry.hpp>
 #include <entt/entity/view.hpp>
 #include "../../../common/boxed_type.h"

+ 1 - 0
test/lib/registry/shared/lib.cpp

@@ -1,4 +1,5 @@
 #include <entt/core/attribute.h>
+#include <entt/entity/mixin.hpp>
 #include <entt/entity/registry.hpp>
 #include <entt/entity/view.hpp>
 #include "../../../common/boxed_type.h"

+ 1 - 0
test/lib/registry/shared/main.cpp

@@ -1,6 +1,7 @@
 #include <gtest/gtest.h>
 #include <entt/core/attribute.h>
 #include <entt/entity/entity.hpp>
+#include <entt/entity/mixin.hpp>
 #include <entt/entity/registry.hpp>
 #include <entt/entity/view.hpp>
 #include "../../../common/boxed_type.h"