Explorar o código

Merge pull request #8048 from ameerj/include-purge

general: Reduce unused includes across the project
bunnei %!s(int64=4) %!d(string=hai) anos
pai
achega
82ac66f8a4
Modificáronse 100 ficheiros con 18 adicións e 136 borrados
  1. 2 3
      src/common/atomic_ops.h
  2. 0 1
      src/common/bit_field.h
  3. 0 1
      src/common/dynamic_library.cpp
  4. 0 1
      src/common/fs/file.cpp
  5. 0 2
      src/common/fs/file.h
  6. 0 1
      src/common/fs/fs_types.h
  7. 0 1
      src/common/fs/fs_util.h
  8. 0 1
      src/common/hex_util.h
  9. 1 1
      src/common/host_memory.cpp
  10. 0 1
      src/common/intrusive_red_black_tree.h
  11. 0 2
      src/common/logging/backend.cpp
  12. 0 1
      src/common/logging/backend.h
  13. 0 1
      src/common/logging/filter.h
  14. 0 2
      src/common/logging/text_formatter.cpp
  15. 0 1
      src/common/logging/text_formatter.h
  16. 1 1
      src/common/memory_detect.cpp
  17. 0 1
      src/common/nvidia_flags.cpp
  18. 0 1
      src/common/page_table.h
  19. 0 1
      src/common/parent_of_member.h
  20. 0 1
      src/common/ring_buffer.h
  21. 0 2
      src/common/string_util.cpp
  22. 0 1
      src/common/telemetry.cpp
  23. 0 1
      src/common/telemetry.h
  24. 1 1
      src/common/uint128.h
  25. 0 1
      src/common/uuid.h
  26. 0 1
      src/common/virtual_buffer.h
  27. 0 2
      src/common/wall_clock.cpp
  28. 0 1
      src/common/x64/cpu_detect.cpp
  29. 0 2
      src/common/x64/native_clock.cpp
  30. 0 2
      src/common/x64/native_clock.h
  31. 0 2
      src/core/arm/dynarmic/arm_exclusive_monitor.h
  32. 0 1
      src/core/core.cpp
  33. 0 1
      src/core/file_sys/directory.h
  34. 3 0
      src/core/file_sys/patch_manager.cpp
  35. 2 0
      src/core/file_sys/program_metadata.h
  36. 0 1
      src/core/frontend/applets/mii.h
  37. 0 1
      src/core/hle/kernel/hle_ipc.cpp
  38. 0 2
      src/core/hle/kernel/k_class_token.h
  39. 0 1
      src/core/hle/kernel/k_code_memory.cpp
  40. 0 1
      src/core/hle/kernel/k_condition_variable.cpp
  41. 0 1
      src/core/hle/kernel/k_memory_manager.cpp
  42. 0 1
      src/core/hle/kernel/k_page_buffer.h
  43. 0 2
      src/core/hle/kernel/k_process.cpp
  44. 0 1
      src/core/hle/kernel/k_process.h
  45. 0 1
      src/core/hle/kernel/k_scheduler.cpp
  46. 0 3
      src/core/hle/kernel/k_thread.cpp
  47. 2 0
      src/core/hle/kernel/k_thread_local_page.cpp
  48. 0 1
      src/core/hle/kernel/k_thread_local_page.h
  49. 0 3
      src/core/hle/kernel/kernel.cpp
  50. 0 1
      src/core/hle/kernel/kernel.h
  51. 0 1
      src/core/hle/service/acc/acc.cpp
  52. 1 0
      src/core/hle/service/acc/profile_manager.h
  53. 0 1
      src/core/hle/service/am/applets/applet_mii.cpp
  54. 0 1
      src/core/hle/service/hid/controllers/console_sixaxis.cpp
  55. 0 1
      src/core/hle/service/hid/controllers/console_sixaxis.h
  56. 0 1
      src/core/hle/service/hid/controllers/controller_base.h
  57. 0 3
      src/core/hle/service/hid/controllers/debug_pad.h
  58. 0 4
      src/core/hle/service/hid/controllers/keyboard.h
  59. 0 3
      src/core/hle/service/hid/controllers/mouse.h
  60. 2 1
      src/core/hle/service/hid/controllers/npad.h
  61. 0 1
      src/core/hle/service/hid/controllers/touchscreen.cpp
  62. 0 3
      src/core/hle/service/hid/controllers/touchscreen.h
  63. 0 2
      src/core/hle/service/hid/controllers/xpad.h
  64. 0 1
      src/core/hle/service/ldr/ldr.cpp
  65. 0 1
      src/core/hle/service/nifm/nifm.cpp
  66. 0 1
      src/core/hle/service/ns/pdm_qry.cpp
  67. 2 0
      src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.h
  68. 1 0
      src/core/hle/service/nvdrv/devices/nvhost_gpu.h
  69. 0 1
      src/core/hle/service/sockets/bsd.cpp
  70. 0 1
      src/core/network/sockets.h
  71. 0 1
      src/core/reporter.cpp
  72. 0 1
      src/input_common/drivers/gc_adapter.h
  73. 0 1
      src/input_common/helpers/udp_protocol.h
  74. 0 1
      src/input_common/input_engine.cpp
  75. 0 1
      src/input_common/main.cpp
  76. 0 2
      src/shader_recompiler/backend/glasm/emit_glasm_convert.cpp
  77. 0 2
      src/shader_recompiler/backend/glasm/emit_glasm_floating_point.cpp
  78. 0 2
      src/shader_recompiler/backend/glasm/emit_glasm_memory.cpp
  79. 0 3
      src/shader_recompiler/backend/glasm/emit_glasm_not_implemented.cpp
  80. 0 2
      src/shader_recompiler/backend/glasm/glasm_emit_context.cpp
  81. 0 3
      src/shader_recompiler/backend/glasm/reg_alloc.cpp
  82. 0 1
      src/shader_recompiler/backend/glsl/emit_glsl_barriers.cpp
  83. 0 2
      src/shader_recompiler/backend/glsl/emit_glsl_control_flow.cpp
  84. 0 2
      src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp
  85. 0 2
      src/shader_recompiler/backend/glsl/emit_glsl_logical.cpp
  86. 0 2
      src/shader_recompiler/backend/glsl/emit_glsl_shared_memory.cpp
  87. 0 2
      src/shader_recompiler/backend/glsl/emit_glsl_special.cpp
  88. 0 2
      src/shader_recompiler/backend/glsl/emit_glsl_undefined.cpp
  89. 0 2
      src/shader_recompiler/backend/spirv/emit_spirv_barriers.cpp
  90. 0 1
      src/shader_recompiler/backend/spirv/emit_spirv_bitwise_conversion.cpp
  91. 0 2
      src/shader_recompiler/backend/spirv/emit_spirv_composite.cpp
  92. 0 1
      src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp
  93. 0 1
      src/shader_recompiler/backend/spirv/emit_spirv_control_flow.cpp
  94. 0 1
      src/shader_recompiler/backend/spirv/emit_spirv_convert.cpp
  95. 0 1
      src/shader_recompiler/backend/spirv/emit_spirv_floating_point.cpp
  96. 0 1
      src/shader_recompiler/backend/spirv/emit_spirv_image_atomic.cpp
  97. 0 1
      src/shader_recompiler/backend/spirv/emit_spirv_integer.cpp
  98. 0 1
      src/shader_recompiler/backend/spirv/emit_spirv_logical.cpp
  99. 0 1
      src/shader_recompiler/backend/spirv/emit_spirv_select.cpp
  100. 0 1
      src/shader_recompiler/backend/spirv/emit_spirv_shared_memory.cpp

+ 2 - 3
src/common/atomic_ops.h

@@ -4,13 +4,12 @@
 
 #pragma once
 
-#include <cstring>
-#include <memory>
-
 #include "common/common_types.h"
 
 #if _MSC_VER
 #include <intrin.h>
+#else
+#include <cstring>
 #endif
 
 namespace Common {

+ 0 - 1
src/common/bit_field.h

@@ -33,7 +33,6 @@
 #include <cstddef>
 #include <limits>
 #include <type_traits>
-#include "common/common_funcs.h"
 #include "common/swap.h"
 
 /*

+ 0 - 1
src/common/dynamic_library.cpp

@@ -2,7 +2,6 @@
 // Licensed under GPLv2+
 // Refer to the license.txt file included.
 
-#include <cstring>
 #include <string>
 #include <utility>
 

+ 0 - 1
src/common/fs/file.cpp

@@ -4,7 +4,6 @@
 
 #include "common/fs/file.h"
 #include "common/fs/fs.h"
-#include "common/fs/path_util.h"
 #include "common/logging/log.h"
 
 #ifdef _WIN32

+ 0 - 2
src/common/fs/file.h

@@ -6,10 +6,8 @@
 
 #include <cstdio>
 #include <filesystem>
-#include <fstream>
 #include <span>
 #include <type_traits>
-#include <vector>
 
 #include "common/concepts.h"
 #include "common/fs/fs_types.h"

+ 0 - 1
src/common/fs/fs_types.h

@@ -7,7 +7,6 @@
 #include <functional>
 
 #include "common/common_funcs.h"
-#include "common/common_types.h"
 
 namespace Common::FS {
 

+ 0 - 1
src/common/fs/fs_util.h

@@ -8,7 +8,6 @@
 #include <filesystem>
 #include <span>
 #include <string>
-#include <string_view>
 
 #include "common/common_types.h"
 

+ 0 - 1
src/common/hex_util.h

@@ -7,7 +7,6 @@
 #include <array>
 #include <cstddef>
 #include <string>
-#include <type_traits>
 #include <vector>
 #include <fmt/format.h>
 #include "common/common_types.h"

+ 1 - 1
src/common/host_memory.cpp

@@ -18,6 +18,7 @@
 #include <fcntl.h>
 #include <sys/mman.h>
 #include <unistd.h>
+#include "common/scope_exit.h"
 
 #endif // ^^^ Linux ^^^
 
@@ -27,7 +28,6 @@
 #include "common/assert.h"
 #include "common/host_memory.h"
 #include "common/logging/log.h"
-#include "common/scope_exit.h"
 
 namespace Common {
 

+ 0 - 1
src/common/intrusive_red_black_tree.h

@@ -4,7 +4,6 @@
 
 #pragma once
 
-#include "common/alignment.h"
 #include "common/common_funcs.h"
 #include "common/parent_of_member.h"
 #include "common/tree.h"

+ 0 - 2
src/common/logging/backend.cpp

@@ -5,10 +5,8 @@
 #include <atomic>
 #include <chrono>
 #include <climits>
-#include <exception>
 #include <stop_token>
 #include <thread>
-#include <vector>
 
 #include <fmt/format.h>
 

+ 0 - 1
src/common/logging/backend.h

@@ -4,7 +4,6 @@
 
 #pragma once
 
-#include <filesystem>
 #include "common/logging/filter.h"
 
 namespace Common::Log {

+ 0 - 1
src/common/logging/filter.h

@@ -7,7 +7,6 @@
 #include <array>
 #include <chrono>
 #include <cstddef>
-#include <string_view>
 #include "common/logging/log.h"
 
 namespace Common::Log {

+ 0 - 2
src/common/logging/text_formatter.cpp

@@ -10,12 +10,10 @@
 #endif
 
 #include "common/assert.h"
-#include "common/common_funcs.h"
 #include "common/logging/filter.h"
 #include "common/logging/log.h"
 #include "common/logging/log_entry.h"
 #include "common/logging/text_formatter.h"
-#include "common/string_util.h"
 
 namespace Common::Log {
 

+ 0 - 1
src/common/logging/text_formatter.h

@@ -4,7 +4,6 @@
 
 #pragma once
 
-#include <cstddef>
 #include <string>
 
 namespace Common::Log {

+ 1 - 1
src/common/memory_detect.cpp

@@ -70,4 +70,4 @@ const MemoryInfo& GetMemInfo() {
     return mem_info;
 }
 
-} // namespace Common
+} // namespace Common

+ 0 - 1
src/common/nvidia_flags.cpp

@@ -6,7 +6,6 @@
 
 #include <fmt/format.h>
 
-#include "common/fs/file.h"
 #include "common/fs/fs.h"
 #include "common/fs/path_util.h"
 #include "common/nvidia_flags.h"

+ 0 - 1
src/common/page_table.h

@@ -5,7 +5,6 @@
 #pragma once
 
 #include <atomic>
-#include <tuple>
 
 #include "common/common_types.h"
 #include "common/virtual_buffer.h"

+ 0 - 1
src/common/parent_of_member.h

@@ -7,7 +7,6 @@
 #include <type_traits>
 
 #include "common/assert.h"
-#include "common/common_types.h"
 
 namespace Common {
 namespace detail {

+ 0 - 1
src/common/ring_buffer.h

@@ -12,7 +12,6 @@
 #include <new>
 #include <type_traits>
 #include <vector>
-#include "common/common_types.h"
 
 namespace Common {
 

+ 0 - 2
src/common/string_util.cpp

@@ -5,11 +5,9 @@
 #include <algorithm>
 #include <cctype>
 #include <codecvt>
-#include <cstdlib>
 #include <locale>
 #include <sstream>
 
-#include "common/logging/log.h"
 #include "common/string_util.h"
 
 #ifdef _WIN32

+ 0 - 1
src/common/telemetry.cpp

@@ -4,7 +4,6 @@
 
 #include <algorithm>
 #include <cstring>
-#include "common/assert.h"
 #include "common/scm_rev.h"
 #include "common/telemetry.h"
 

+ 0 - 1
src/common/telemetry.h

@@ -8,7 +8,6 @@
 #include <map>
 #include <memory>
 #include <string>
-#include <string_view>
 #include "common/common_funcs.h"
 #include "common/common_types.h"
 

+ 1 - 1
src/common/uint128.h

@@ -4,7 +4,6 @@
 
 #pragma once
 
-#include <cstring>
 #include <utility>
 
 #ifdef _MSC_VER
@@ -13,6 +12,7 @@
 #pragma intrinsic(_umul128)
 #pragma intrinsic(_udiv128)
 #else
+#include <cstring>
 #include <x86intrin.h>
 #endif
 

+ 0 - 1
src/common/uuid.h

@@ -7,7 +7,6 @@
 #include <array>
 #include <functional>
 #include <string>
-#include <string_view>
 
 #include "common/common_types.h"
 

+ 0 - 1
src/common/virtual_buffer.h

@@ -4,7 +4,6 @@
 
 #pragma once
 
-#include <type_traits>
 #include <utility>
 
 namespace Common {

+ 0 - 2
src/common/wall_clock.cpp

@@ -2,8 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include <cstdint>
-
 #include "common/uint128.h"
 #include "common/wall_clock.h"
 

+ 0 - 1
src/common/x64/cpu_detect.cpp

@@ -4,7 +4,6 @@
 #include <array>
 #include <cstring>
 #include <iterator>
-#include <span>
 #include <string_view>
 #include "common/bit_util.h"
 #include "common/common_types.h"

+ 0 - 2
src/common/x64/native_clock.cpp

@@ -4,8 +4,6 @@
 
 #include <array>
 #include <chrono>
-#include <limits>
-#include <mutex>
 #include <thread>
 
 #include "common/atomic_ops.h"

+ 0 - 2
src/common/x64/native_clock.h

@@ -4,8 +4,6 @@
 
 #pragma once
 
-#include <optional>
-
 #include "common/wall_clock.h"
 
 namespace Common {

+ 0 - 2
src/core/arm/dynarmic/arm_exclusive_monitor.h

@@ -4,8 +4,6 @@
 
 #pragma once
 
-#include <unordered_map>
-
 #include <dynarmic/interface/exclusive_monitor.h>
 
 #include "common/common_types.h"

+ 0 - 1
src/core/core.cpp

@@ -38,7 +38,6 @@
 #include "core/hle/service/apm/apm_controller.h"
 #include "core/hle/service/filesystem/filesystem.h"
 #include "core/hle/service/glue/glue_manager.h"
-#include "core/hle/service/hid/hid.h"
 #include "core/hle/service/service.h"
 #include "core/hle/service/sm/sm.h"
 #include "core/hle/service/time/time_manager.h"

+ 0 - 1
src/core/file_sys/directory.h

@@ -5,7 +5,6 @@
 #pragma once
 
 #include <cstddef>
-#include <iterator>
 #include "common/common_funcs.h"
 #include "common/common_types.h"
 

+ 3 - 0
src/core/file_sys/patch_manager.cpp

@@ -10,7 +10,10 @@
 #include "common/hex_util.h"
 #include "common/logging/log.h"
 #include "common/settings.h"
+#ifndef _WIN32
 #include "common/string_util.h"
+#endif
+
 #include "core/core.h"
 #include "core/file_sys/common_funcs.h"
 #include "core/file_sys/content_archive.h"

+ 2 - 0
src/core/file_sys/program_metadata.h

@@ -6,7 +6,9 @@
 
 #include <array>
 #include <vector>
+
 #include "common/bit_field.h"
+#include "common/common_funcs.h"
 #include "common/common_types.h"
 #include "common/swap.h"
 #include "core/file_sys/vfs_types.h"

+ 0 - 1
src/core/frontend/applets/mii.h

@@ -6,7 +6,6 @@
 
 #include <functional>
 
-#include "core/hle/result.h"
 #include "core/hle/service/mii/mii_manager.h"
 
 namespace Core::Frontend {

+ 0 - 1
src/core/hle/kernel/hle_ipc.cpp

@@ -17,7 +17,6 @@
 #include "core/hle/kernel/k_auto_object.h"
 #include "core/hle/kernel/k_handle_table.h"
 #include "core/hle/kernel/k_process.h"
-#include "core/hle/kernel/k_readable_event.h"
 #include "core/hle/kernel/k_server_session.h"
 #include "core/hle/kernel/k_thread.h"
 #include "core/hle/kernel/kernel.h"

+ 0 - 2
src/core/hle/kernel/k_class_token.h

@@ -4,8 +4,6 @@
 
 #pragma once
 
-#include <atomic>
-
 #include "common/bit_util.h"
 #include "common/common_types.h"
 

+ 0 - 1
src/core/hle/kernel/k_code_memory.cpp

@@ -5,7 +5,6 @@
 #include "common/alignment.h"
 #include "common/common_types.h"
 #include "core/device_memory.h"
-#include "core/hle/kernel/k_auto_object.h"
 #include "core/hle/kernel/k_code_memory.h"
 #include "core/hle/kernel/k_light_lock.h"
 #include "core/hle/kernel/k_memory_block.h"

+ 0 - 1
src/core/hle/kernel/k_condition_variable.cpp

@@ -9,7 +9,6 @@
 #include "core/hle/kernel/k_process.h"
 #include "core/hle/kernel/k_scheduler.h"
 #include "core/hle/kernel/k_scoped_scheduler_lock_and_sleep.h"
-#include "core/hle/kernel/k_synchronization_object.h"
 #include "core/hle/kernel/k_thread.h"
 #include "core/hle/kernel/k_thread_queue.h"
 #include "core/hle/kernel/kernel.h"

+ 0 - 1
src/core/hle/kernel/k_memory_manager.cpp

@@ -15,7 +15,6 @@
 #include "core/hle/kernel/k_page_linked_list.h"
 #include "core/hle/kernel/kernel.h"
 #include "core/hle/kernel/svc_results.h"
-#include "core/memory.h"
 
 namespace Kernel {
 

+ 0 - 1
src/core/hle/kernel/k_page_buffer.h

@@ -7,7 +7,6 @@
 #include <array>
 
 #include "common/common_types.h"
-#include "core/device_memory.h"
 #include "core/hle/kernel/memory_types.h"
 #include "core/hle/kernel/slab_helpers.h"
 

+ 0 - 2
src/core/hle/kernel/k_process.cpp

@@ -13,7 +13,6 @@
 #include "common/scope_exit.h"
 #include "common/settings.h"
 #include "core/core.h"
-#include "core/device_memory.h"
 #include "core/file_sys/program_metadata.h"
 #include "core/hle/kernel/code_set.h"
 #include "core/hle/kernel/k_memory_block_manager.h"
@@ -24,7 +23,6 @@
 #include "core/hle/kernel/k_scoped_resource_reservation.h"
 #include "core/hle/kernel/k_shared_memory.h"
 #include "core/hle/kernel/k_shared_memory_info.h"
-#include "core/hle/kernel/k_slab_heap.h"
 #include "core/hle/kernel/k_thread.h"
 #include "core/hle/kernel/kernel.h"
 #include "core/hle/kernel/svc_results.h"

+ 0 - 1
src/core/hle/kernel/k_process.h

@@ -8,7 +8,6 @@
 #include <cstddef>
 #include <list>
 #include <string>
-#include <vector>
 #include "common/common_types.h"
 #include "core/hle/kernel/k_address_arbiter.h"
 #include "core/hle/kernel/k_auto_object.h"

+ 0 - 1
src/core/hle/kernel/k_scheduler.cpp

@@ -22,7 +22,6 @@
 #include "core/hle/kernel/k_thread.h"
 #include "core/hle/kernel/kernel.h"
 #include "core/hle/kernel/physical_core.h"
-#include "core/hle/kernel/time_manager.h"
 
 namespace Kernel {
 

+ 0 - 3
src/core/hle/kernel/k_thread.cpp

@@ -14,9 +14,7 @@
 #include "common/common_types.h"
 #include "common/fiber.h"
 #include "common/logging/log.h"
-#include "common/scope_exit.h"
 #include "common/settings.h"
-#include "common/thread_queue_list.h"
 #include "core/core.h"
 #include "core/cpu_manager.h"
 #include "core/hardware_properties.h"
@@ -33,7 +31,6 @@
 #include "core/hle/kernel/k_worker_task_manager.h"
 #include "core/hle/kernel/kernel.h"
 #include "core/hle/kernel/svc_results.h"
-#include "core/hle/kernel/time_manager.h"
 #include "core/hle/result.h"
 #include "core/memory.h"
 

+ 2 - 0
src/core/hle/kernel/k_thread_local_page.cpp

@@ -4,7 +4,9 @@
 
 #include "common/scope_exit.h"
 #include "core/core.h"
+
 #include "core/hle/kernel/k_memory_block.h"
+#include "core/hle/kernel/k_page_buffer.h"
 #include "core/hle/kernel/k_page_table.h"
 #include "core/hle/kernel/k_process.h"
 #include "core/hle/kernel/k_thread_local_page.h"

+ 0 - 1
src/core/hle/kernel/k_thread_local_page.h

@@ -11,7 +11,6 @@
 #include "common/assert.h"
 #include "common/common_types.h"
 #include "common/intrusive_red_black_tree.h"
-#include "core/hle/kernel/k_page_buffer.h"
 #include "core/hle/kernel/memory_types.h"
 #include "core/hle/kernel/slab_helpers.h"
 #include "core/hle/result.h"

+ 0 - 3
src/core/hle/kernel/kernel.cpp

@@ -22,9 +22,7 @@
 #include "core/arm/exclusive_monitor.h"
 #include "core/core.h"
 #include "core/core_timing.h"
-#include "core/core_timing_util.h"
 #include "core/cpu_manager.h"
-#include "core/device_memory.h"
 #include "core/hardware_properties.h"
 #include "core/hle/kernel/init/init_slab_setup.h"
 #include "core/hle/kernel/k_client_port.h"
@@ -35,7 +33,6 @@
 #include "core/hle/kernel/k_resource_limit.h"
 #include "core/hle/kernel/k_scheduler.h"
 #include "core/hle/kernel/k_shared_memory.h"
-#include "core/hle/kernel/k_slab_heap.h"
 #include "core/hle/kernel/k_thread.h"
 #include "core/hle/kernel/k_worker_task_manager.h"
 #include "core/hle/kernel/kernel.h"

+ 0 - 1
src/core/hle/kernel/kernel.h

@@ -14,7 +14,6 @@
 #include "core/hardware_properties.h"
 #include "core/hle/kernel/k_auto_object.h"
 #include "core/hle/kernel/k_slab_heap.h"
-#include "core/hle/kernel/memory_types.h"
 #include "core/hle/kernel/svc_common.h"
 
 namespace Core {

+ 0 - 1
src/core/hle/service/acc/acc.cpp

@@ -16,7 +16,6 @@
 #include "core/file_sys/control_metadata.h"
 #include "core/file_sys/patch_manager.h"
 #include "core/hle/ipc_helpers.h"
-#include "core/hle/kernel/kernel.h"
 #include "core/hle/service/acc/acc.h"
 #include "core/hle/service/acc/acc_aa.h"
 #include "core/hle/service/acc/acc_su.h"

+ 1 - 0
src/core/hle/service/acc/profile_manager.h

@@ -7,6 +7,7 @@
 #include <array>
 #include <optional>
 
+#include "common/common_funcs.h"
 #include "common/common_types.h"
 #include "common/swap.h"
 #include "common/uuid.h"

+ 0 - 1
src/core/hle/service/am/applets/applet_mii.cpp

@@ -8,7 +8,6 @@
 #include "core/frontend/applets/mii.h"
 #include "core/hle/service/am/am.h"
 #include "core/hle/service/am/applets/applet_mii.h"
-#include "core/reporter.h"
 
 namespace Service::AM::Applets {
 

+ 0 - 1
src/core/hle/service/hid/controllers/console_sixaxis.cpp

@@ -2,7 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include "common/settings.h"
 #include "core/core_timing.h"
 #include "core/hid/emulated_console.h"
 #include "core/hid/hid_core.h"

+ 0 - 1
src/core/hle/service/hid/controllers/console_sixaxis.h

@@ -8,7 +8,6 @@
 
 #include "common/common_types.h"
 #include "common/quaternion.h"
-#include "core/hid/hid_types.h"
 #include "core/hle/service/hid/controllers/controller_base.h"
 #include "core/hle/service/hid/ring_lifo.h"
 

+ 0 - 1
src/core/hle/service/hid/controllers/controller_base.h

@@ -5,7 +5,6 @@
 #pragma once
 
 #include "common/common_types.h"
-#include "common/swap.h"
 
 namespace Core::Timing {
 class CoreTiming;

+ 0 - 3
src/core/hle/service/hid/controllers/debug_pad.h

@@ -4,11 +4,8 @@
 
 #pragma once
 
-#include <array>
 #include "common/bit_field.h"
-#include "common/common_funcs.h"
 #include "common/common_types.h"
-#include "common/swap.h"
 #include "core/hle/service/hid/controllers/controller_base.h"
 #include "core/hle/service/hid/ring_lifo.h"
 

+ 0 - 4
src/core/hle/service/hid/controllers/keyboard.h

@@ -4,11 +4,7 @@
 
 #pragma once
 
-#include <array>
-#include "common/bit_field.h"
-#include "common/common_funcs.h"
 #include "common/common_types.h"
-#include "common/swap.h"
 #include "core/hle/service/hid/controllers/controller_base.h"
 #include "core/hle/service/hid/ring_lifo.h"
 

+ 0 - 3
src/core/hle/service/hid/controllers/mouse.h

@@ -4,10 +4,7 @@
 
 #pragma once
 
-#include <array>
-#include "common/bit_field.h"
 #include "common/common_types.h"
-#include "common/swap.h"
 #include "core/hle/service/hid/controllers/controller_base.h"
 #include "core/hle/service/hid/ring_lifo.h"
 

+ 2 - 1
src/core/hle/service/hid/controllers/npad.h

@@ -10,7 +10,8 @@
 
 #include "common/bit_field.h"
 #include "common/common_types.h"
-#include "common/quaternion.h"
+#include "common/vector_math.h"
+
 #include "core/hid/hid_types.h"
 #include "core/hle/service/hid/controllers/controller_base.h"
 #include "core/hle/service/hid/ring_lifo.h"

+ 0 - 1
src/core/hle/service/hid/controllers/touchscreen.cpp

@@ -5,7 +5,6 @@
 #include <algorithm>
 #include <cstring>
 #include "common/common_types.h"
-#include "common/logging/log.h"
 #include "common/settings.h"
 #include "core/core.h"
 #include "core/core_timing.h"

+ 0 - 3
src/core/hle/service/hid/controllers/touchscreen.h

@@ -4,11 +4,8 @@
 
 #pragma once
 
-#include "common/bit_field.h"
 #include "common/common_funcs.h"
 #include "common/common_types.h"
-#include "common/point.h"
-#include "common/swap.h"
 #include "core/hid/hid_types.h"
 #include "core/hle/service/hid/controllers/controller_base.h"
 #include "core/hle/service/hid/ring_lifo.h"

+ 0 - 2
src/core/hle/service/hid/controllers/xpad.h

@@ -5,9 +5,7 @@
 #pragma once
 
 #include "common/bit_field.h"
-#include "common/common_funcs.h"
 #include "common/common_types.h"
-#include "common/swap.h"
 #include "core/hid/hid_types.h"
 #include "core/hle/service/hid/controllers/controller_base.h"
 #include "core/hle/service/hid/ring_lifo.h"

+ 0 - 1
src/core/hle/service/ldr/ldr.cpp

@@ -12,7 +12,6 @@
 #include "core/core.h"
 #include "core/hle/ipc_helpers.h"
 #include "core/hle/kernel/k_page_table.h"
-#include "core/hle/kernel/k_system_control.h"
 #include "core/hle/kernel/svc_results.h"
 #include "core/hle/kernel/svc_types.h"
 #include "core/hle/service/ldr/ldr.h"

+ 0 - 1
src/core/hle/service/nifm/nifm.cpp

@@ -5,7 +5,6 @@
 #include "core/core.h"
 #include "core/hle/ipc_helpers.h"
 #include "core/hle/kernel/k_event.h"
-#include "core/hle/kernel/kernel.h"
 #include "core/hle/service/kernel_helpers.h"
 #include "core/hle/service/nifm/nifm.h"
 #include "core/hle/service/service.h"

+ 0 - 1
src/core/hle/service/ns/pdm_qry.cpp

@@ -9,7 +9,6 @@
 #include "core/hle/ipc_helpers.h"
 #include "core/hle/service/ns/pdm_qry.h"
 #include "core/hle/service/service.h"
-#include "core/hle/service/sm/sm.h"
 
 namespace Service::NS {
 

+ 2 - 0
src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.h

@@ -5,6 +5,8 @@
 #pragma once
 
 #include <vector>
+
+#include "common/common_funcs.h"
 #include "common/common_types.h"
 #include "common/swap.h"
 #include "core/hle/service/nvdrv/devices/nvdevice.h"

+ 1 - 0
src/core/hle/service/nvdrv/devices/nvhost_gpu.h

@@ -7,6 +7,7 @@
 #include <memory>
 #include <vector>
 #include "common/bit_field.h"
+#include "common/common_funcs.h"
 #include "common/common_types.h"
 #include "common/swap.h"
 #include "core/hle/service/nvdrv/devices/nvdevice.h"

+ 0 - 1
src/core/hle/service/sockets/bsd.cpp

@@ -10,7 +10,6 @@
 #include <fmt/format.h>
 
 #include "common/microprofile.h"
-#include "common/thread.h"
 #include "core/hle/ipc_helpers.h"
 #include "core/hle/kernel/k_thread.h"
 #include "core/hle/service/sockets/bsd.h"

+ 0 - 1
src/core/network/sockets.h

@@ -8,7 +8,6 @@
 #include <utility>
 
 #if defined(_WIN32)
-#include <winsock.h>
 #elif !YUZU_UNIX
 #error "Platform not implemented"
 #endif

+ 0 - 1
src/core/reporter.cpp

@@ -8,7 +8,6 @@
 
 #include <fmt/chrono.h>
 #include <fmt/format.h>
-#include <fmt/ostream.h>
 #include <nlohmann/json.hpp>
 
 #include "common/fs/file.h"

+ 0 - 1
src/input_common/drivers/gc_adapter.h

@@ -6,7 +6,6 @@
 
 #include <array>
 #include <memory>
-#include <mutex>
 #include <stop_token>
 #include <string>
 #include <thread>

+ 0 - 1
src/input_common/helpers/udp_protocol.h

@@ -10,7 +10,6 @@
 
 #include <boost/crc.hpp>
 
-#include "common/bit_field.h"
 #include "common/swap.h"
 
 namespace InputCommon::CemuhookUDP {

+ 0 - 1
src/input_common/input_engine.cpp

@@ -3,7 +3,6 @@
 // Refer to the license.txt file included
 
 #include "common/logging/log.h"
-#include "common/param_package.h"
 #include "input_common/input_engine.h"
 
 namespace InputCommon {

+ 0 - 1
src/input_common/main.cpp

@@ -3,7 +3,6 @@
 // Refer to the license.txt file included.
 
 #include <memory>
-#include <thread>
 #include "common/input.h"
 #include "common/param_package.h"
 #include "input_common/drivers/gc_adapter.h"

+ 0 - 2
src/shader_recompiler/backend/glasm/emit_glasm_convert.cpp

@@ -2,8 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include <string_view>
-
 #include "shader_recompiler/backend/glasm/emit_glasm_instructions.h"
 #include "shader_recompiler/backend/glasm/glasm_emit_context.h"
 #include "shader_recompiler/frontend/ir/modifiers.h"

+ 0 - 2
src/shader_recompiler/backend/glasm/emit_glasm_floating_point.cpp

@@ -2,8 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include <string_view>
-
 #include "shader_recompiler/backend/glasm/emit_glasm_instructions.h"
 #include "shader_recompiler/backend/glasm/glasm_emit_context.h"
 #include "shader_recompiler/frontend/ir/modifiers.h"

+ 0 - 2
src/shader_recompiler/backend/glasm/emit_glasm_memory.cpp

@@ -2,8 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include <string_view>
-
 #include "shader_recompiler/backend/glasm/emit_glasm_instructions.h"
 #include "shader_recompiler/backend/glasm/glasm_emit_context.h"
 #include "shader_recompiler/frontend/ir/program.h"

+ 0 - 3
src/shader_recompiler/backend/glasm/emit_glasm_not_implemented.cpp

@@ -2,11 +2,8 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include <string_view>
-
 #include "shader_recompiler/backend/glasm/emit_glasm_instructions.h"
 #include "shader_recompiler/backend/glasm/glasm_emit_context.h"
-#include "shader_recompiler/frontend/ir/program.h"
 #include "shader_recompiler/frontend/ir/value.h"
 
 #ifdef _MSC_VER

+ 0 - 2
src/shader_recompiler/backend/glasm/glasm_emit_context.cpp

@@ -2,8 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include <string_view>
-
 #include "shader_recompiler/backend/bindings.h"
 #include "shader_recompiler/backend/glasm/emit_glasm.h"
 #include "shader_recompiler/backend/glasm/glasm_emit_context.h"

+ 0 - 3
src/shader_recompiler/backend/glasm/reg_alloc.cpp

@@ -2,11 +2,8 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include <string>
-
 #include <fmt/format.h>
 
-#include "shader_recompiler/backend/glasm/glasm_emit_context.h"
 #include "shader_recompiler/backend/glasm/reg_alloc.h"
 #include "shader_recompiler/exception.h"
 #include "shader_recompiler/frontend/ir/value.h"

+ 0 - 1
src/shader_recompiler/backend/glsl/emit_glsl_barriers.cpp

@@ -4,7 +4,6 @@
 
 #include "shader_recompiler/backend/glsl/emit_glsl_instructions.h"
 #include "shader_recompiler/backend/glsl/glsl_emit_context.h"
-#include "shader_recompiler/frontend/ir/value.h"
 
 namespace Shader::Backend::GLSL {
 void EmitBarrier(EmitContext& ctx) {

+ 0 - 2
src/shader_recompiler/backend/glsl/emit_glsl_control_flow.cpp

@@ -2,8 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include <string_view>
-
 #include "shader_recompiler/backend/glsl/emit_glsl_instructions.h"
 #include "shader_recompiler/backend/glsl/glsl_emit_context.h"
 #include "shader_recompiler/exception.h"

+ 0 - 2
src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp

@@ -2,8 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include <string_view>
-
 #include "shader_recompiler/backend/glsl/emit_glsl_instructions.h"
 #include "shader_recompiler/backend/glsl/glsl_emit_context.h"
 #include "shader_recompiler/frontend/ir/value.h"

+ 0 - 2
src/shader_recompiler/backend/glsl/emit_glsl_logical.cpp

@@ -2,8 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include <string_view>
-
 #include "shader_recompiler/backend/glsl/emit_glsl_instructions.h"
 #include "shader_recompiler/backend/glsl/glsl_emit_context.h"
 #include "shader_recompiler/frontend/ir/value.h"

+ 0 - 2
src/shader_recompiler/backend/glsl/emit_glsl_shared_memory.cpp

@@ -2,8 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include <string_view>
-
 #include "shader_recompiler/backend/glsl/emit_glsl_instructions.h"
 #include "shader_recompiler/backend/glsl/glsl_emit_context.h"
 #include "shader_recompiler/frontend/ir/value.h"

+ 0 - 2
src/shader_recompiler/backend/glsl/emit_glsl_special.cpp

@@ -2,8 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include <string_view>
-
 #include "shader_recompiler/backend/glsl/emit_glsl_instructions.h"
 #include "shader_recompiler/backend/glsl/glsl_emit_context.h"
 #include "shader_recompiler/frontend/ir/program.h"

+ 0 - 2
src/shader_recompiler/backend/glsl/emit_glsl_undefined.cpp

@@ -2,8 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include <string_view>
-
 #include "shader_recompiler/backend/glsl/emit_glsl_instructions.h"
 #include "shader_recompiler/backend/glsl/glsl_emit_context.h"
 

+ 0 - 2
src/shader_recompiler/backend/spirv/emit_spirv_barriers.cpp

@@ -2,10 +2,8 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include "shader_recompiler/backend/spirv/emit_spirv.h"
 #include "shader_recompiler/backend/spirv/emit_spirv_instructions.h"
 #include "shader_recompiler/backend/spirv/spirv_emit_context.h"
-#include "shader_recompiler/frontend/ir/modifiers.h"
 
 namespace Shader::Backend::SPIRV {
 namespace {

+ 0 - 1
src/shader_recompiler/backend/spirv/emit_spirv_bitwise_conversion.cpp

@@ -2,7 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include "shader_recompiler/backend/spirv/emit_spirv.h"
 #include "shader_recompiler/backend/spirv/emit_spirv_instructions.h"
 #include "shader_recompiler/backend/spirv/spirv_emit_context.h"
 

+ 0 - 2
src/shader_recompiler/backend/spirv/emit_spirv_composite.cpp

@@ -2,10 +2,8 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include "shader_recompiler/backend/spirv/emit_spirv.h"
 #include "shader_recompiler/backend/spirv/emit_spirv_instructions.h"
 #include "shader_recompiler/backend/spirv/spirv_emit_context.h"
-#include "shader_recompiler/frontend/ir/modifiers.h"
 
 namespace Shader::Backend::SPIRV {
 

+ 0 - 1
src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp

@@ -5,7 +5,6 @@
 #include <tuple>
 #include <utility>
 
-#include "shader_recompiler/backend/spirv/emit_spirv.h"
 #include "shader_recompiler/backend/spirv/emit_spirv_instructions.h"
 #include "shader_recompiler/backend/spirv/spirv_emit_context.h"
 

+ 0 - 1
src/shader_recompiler/backend/spirv/emit_spirv_control_flow.cpp

@@ -2,7 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include "shader_recompiler/backend/spirv/emit_spirv.h"
 #include "shader_recompiler/backend/spirv/emit_spirv_instructions.h"
 #include "shader_recompiler/backend/spirv/spirv_emit_context.h"
 

+ 0 - 1
src/shader_recompiler/backend/spirv/emit_spirv_convert.cpp

@@ -2,7 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include "shader_recompiler/backend/spirv/emit_spirv.h"
 #include "shader_recompiler/backend/spirv/emit_spirv_instructions.h"
 #include "shader_recompiler/backend/spirv/spirv_emit_context.h"
 

+ 0 - 1
src/shader_recompiler/backend/spirv/emit_spirv_floating_point.cpp

@@ -2,7 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include "shader_recompiler/backend/spirv/emit_spirv.h"
 #include "shader_recompiler/backend/spirv/emit_spirv_instructions.h"
 #include "shader_recompiler/backend/spirv/spirv_emit_context.h"
 #include "shader_recompiler/frontend/ir/modifiers.h"

+ 0 - 1
src/shader_recompiler/backend/spirv/emit_spirv_image_atomic.cpp

@@ -2,7 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include "shader_recompiler/backend/spirv/emit_spirv.h"
 #include "shader_recompiler/backend/spirv/emit_spirv_instructions.h"
 #include "shader_recompiler/backend/spirv/spirv_emit_context.h"
 #include "shader_recompiler/frontend/ir/modifiers.h"

+ 0 - 1
src/shader_recompiler/backend/spirv/emit_spirv_integer.cpp

@@ -2,7 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include "shader_recompiler/backend/spirv/emit_spirv.h"
 #include "shader_recompiler/backend/spirv/emit_spirv_instructions.h"
 #include "shader_recompiler/backend/spirv/spirv_emit_context.h"
 

+ 0 - 1
src/shader_recompiler/backend/spirv/emit_spirv_logical.cpp

@@ -2,7 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include "shader_recompiler/backend/spirv/emit_spirv.h"
 #include "shader_recompiler/backend/spirv/emit_spirv_instructions.h"
 #include "shader_recompiler/backend/spirv/spirv_emit_context.h"
 

+ 0 - 1
src/shader_recompiler/backend/spirv/emit_spirv_select.cpp

@@ -2,7 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include "shader_recompiler/backend/spirv/emit_spirv.h"
 #include "shader_recompiler/backend/spirv/emit_spirv_instructions.h"
 #include "shader_recompiler/backend/spirv/spirv_emit_context.h"
 

+ 0 - 1
src/shader_recompiler/backend/spirv/emit_spirv_shared_memory.cpp

@@ -2,7 +2,6 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
-#include "shader_recompiler/backend/spirv/emit_spirv.h"
 #include "shader_recompiler/backend/spirv/emit_spirv_instructions.h"
 #include "shader_recompiler/backend/spirv/spirv_emit_context.h"
 

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio