Forráskód Böngészése

test: address some feedback by iwyu

Michele Caini 4 éve
szülő
commit
200425114c

+ 0 - 1
test/benchmark/benchmark.cpp

@@ -4,7 +4,6 @@
 #include <utility>
 #include <vector>
 #include <gtest/gtest.h>
-#include <entt/core/type_info.hpp>
 #include <entt/entity/registry.hpp>
 
 struct position {

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

@@ -1,5 +1,4 @@
 #include <gtest/gtest.h>
-#include <entt/core/type_traits.hpp>
 #include <entt/entity/entity.hpp>
 #include <entt/entity/helper.hpp>
 #include <entt/entity/registry.hpp>

+ 1 - 2
test/entt/entity/registry.cpp

@@ -8,8 +8,7 @@
 #include <utility>
 #include <gtest/gtest.h>
 #include <entt/core/hashed_string.hpp>
-#include <entt/core/type_traits.hpp>
-#include <entt/entity/component.hpp>
+#include <entt/core/type_info.hpp>
 #include <entt/entity/entity.hpp>
 #include <entt/entity/registry.hpp>
 

+ 1 - 1
test/entt/entity/runtime_view.cpp

@@ -2,7 +2,7 @@
 #include <type_traits>
 #include <utility>
 #include <gtest/gtest.h>
-#include <entt/entity/component.hpp>
+#include <entt/entity/entity.hpp>
 #include <entt/entity/registry.hpp>
 #include <entt/entity/runtime_view.hpp>
 

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

@@ -1,6 +1,5 @@
 #include <iterator>
 #include <gtest/gtest.h>
-#include <entt/entity/component.hpp>
 #include <entt/entity/registry.hpp>
 #include <entt/entity/storage.hpp>
 

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

@@ -4,7 +4,6 @@
 #include <type_traits>
 #include <utility>
 #include <gtest/gtest.h>
-#include <entt/entity/component.hpp>
 #include <entt/entity/registry.hpp>
 #include <entt/entity/view.hpp>
 

+ 1 - 1
test/entt/locator/locator.cpp

@@ -1,6 +1,6 @@
+#include <memory>
 #include <gtest/gtest.h>
 #include <entt/locator/locator.hpp>
-#include "../common/throwing_allocator.hpp"
 
 struct base_service {
     virtual ~base_service() = default;

+ 0 - 1
test/entt/signal/dispatcher.cpp

@@ -1,7 +1,6 @@
 #include <utility>
 #include <gtest/gtest.h>
 #include <entt/core/hashed_string.hpp>
-#include <entt/core/type_traits.hpp>
 #include <entt/signal/dispatcher.hpp>
 
 struct an_event {};

+ 0 - 1
test/entt/signal/emitter.cpp

@@ -1,5 +1,4 @@
 #include <gtest/gtest.h>
-#include <entt/core/type_traits.hpp>
 #include <entt/signal/emitter.hpp>
 
 struct test_emitter: entt::emitter<test_emitter> {};

+ 0 - 1
test/entt/signal/sigh.cpp

@@ -1,6 +1,5 @@
 #include <memory>
 #include <utility>
-#include <vector>
 #include <gtest/gtest.h>
 #include <entt/signal/sigh.hpp>
 

+ 0 - 1
test/snapshot/snapshot.cpp

@@ -3,7 +3,6 @@
 #include <gtest/gtest.h>
 #include <cereal/archives/json.hpp>
 #include <entt/core/hashed_string.hpp>
-#include <entt/entity/helper.hpp>
 #include <entt/entity/registry.hpp>
 #include <entt/entity/snapshot.hpp>