summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZephyron <zephyron@citron-emu.orgq>2025-02-16 13:38:05 +1000
committerZephyron <zephyron@citron-emu.orgq>2025-02-16 13:38:05 +1000
commit7730d14b4a267c9579636a18af73d4252385e15f (patch)
treee7deef63da5ae4605a1c5098d26253953b73d067 /src
parent677b8f476a94ec1b42d9ba1b0eeb17a3a5859133 (diff)
build: upgrade fmt and SDL2
Update fmt library to version 11.0.2 and make necessary adjustments: - Replace fmt/format.h includes with fmt/ranges.h - Add const qualifiers to formatter::format functions - Update CMake to require fmt version 11 Additional dependency updates: - Update SDL2 bundled version from 2.28.2 to 2.32.0 - Update catch2 to version 3.8.0 - Update vcpkg baseline to c82f74667287d3dc386bce81e44964370c91a289
Diffstat (limited to 'src')
-rw-r--r--src/citron/about_dialog.cpp2
-rw-r--r--src/citron/applets/qt_amiibo_settings.cpp2
-rw-r--r--src/citron/compatibility_list.cpp2
-rw-r--r--src/citron/configuration/configure_per_game.cpp2
-rw-r--r--src/citron/configuration/configure_ringcon.cpp2
-rw-r--r--src/citron/configuration/input_profiles.cpp2
-rw-r--r--src/citron/debugger/wait_tree.cpp2
-rw-r--r--src/citron/discord_impl.cpp2
-rw-r--r--src/citron/game_list.cpp2
-rw-r--r--src/citron/main.cpp2
-rw-r--r--src/citron_cmd/emu_window/emu_window_sdl2_gl.cpp2
-rw-r--r--src/citron_cmd/emu_window/emu_window_sdl2_null.cpp2
-rw-r--r--src/citron_cmd/emu_window/emu_window_sdl2_vk.cpp2
-rw-r--r--src/common/common_precompiled_headers.h2
-rw-r--r--src/common/dynamic_library.cpp2
-rw-r--r--src/common/hex_util.h2
-rw-r--r--src/common/logging/backend.cpp2
-rw-r--r--src/common/logging/formatter.h4
-rw-r--r--src/common/logging/log.h2
-rw-r--r--src/common/nvidia_flags.cpp2
-rw-r--r--src/common/typed_address.h8
-rw-r--r--src/common/uuid.cpp2
-rw-r--r--src/core/arm/dynarmic/dynarmic_cp15.cpp4
-rw-r--r--src/core/crypto/key_manager.h2
-rw-r--r--src/core/debugger/gdbstub.cpp1
-rw-r--r--src/core/file_sys/bis_factory.cpp2
-rw-r--r--src/core/file_sys/fs_save_data_types.h2
-rw-r--r--src/core/file_sys/system_archive/ng_word.cpp2
-rw-r--r--src/core/hle/service/acc/profile_manager.cpp2
-rw-r--r--src/core/hle/service/ldn/ldn_types.h2
-rw-r--r--src/core/hle/service/nfc/common/device.cpp2
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp2
-rw-r--r--src/core/hle/service/nvdrv/nvdrv.cpp2
-rw-r--r--src/core/hle/service/psc/time/common.h10
-rw-r--r--src/core/hle/service/service.cpp2
-rw-r--r--src/core/hle/service/sockets/bsd.cpp2
-rw-r--r--src/core/perf_stats.cpp2
-rw-r--r--src/core/reporter.cpp2
-rw-r--r--src/hid_core/frontend/emulated_devices.cpp2
-rw-r--r--src/input_common/drivers/camera.cpp2
-rw-r--r--src/input_common/drivers/gc_adapter.cpp2
-rw-r--r--src/input_common/drivers/joycon.cpp2
-rw-r--r--src/input_common/drivers/mouse.cpp2
-rw-r--r--src/input_common/drivers/tas_input.cpp2
-rw-r--r--src/input_common/drivers/udp_client.cpp2
-rw-r--r--src/input_common/drivers/virtual_amiibo.cpp2
-rw-r--r--src/shader_recompiler/backend/glasm/glasm_emit_context.h2
-rw-r--r--src/shader_recompiler/backend/glasm/reg_alloc.cpp2
-rw-r--r--src/shader_recompiler/backend/glasm/reg_alloc.h16
-rw-r--r--src/shader_recompiler/backend/glsl/glsl_emit_context.h2
-rw-r--r--src/shader_recompiler/backend/glsl/var_alloc.cpp2
-rw-r--r--src/shader_recompiler/backend/spirv/spirv_emit_context.cpp2
-rw-r--r--src/shader_recompiler/frontend/ir/attribute.cpp2
-rw-r--r--src/shader_recompiler/frontend/ir/attribute.h4
-rw-r--r--src/shader_recompiler/frontend/ir/condition.cpp2
-rw-r--r--src/shader_recompiler/frontend/ir/condition.h4
-rw-r--r--src/shader_recompiler/frontend/ir/flow_test.cpp2
-rw-r--r--src/shader_recompiler/frontend/ir/flow_test.h4
-rw-r--r--src/shader_recompiler/frontend/ir/opcodes.h6
-rw-r--r--src/shader_recompiler/frontend/ir/pred.h4
-rw-r--r--src/shader_recompiler/frontend/ir/program.cpp2
-rw-r--r--src/shader_recompiler/frontend/ir/reg.h4
-rw-r--r--src/shader_recompiler/frontend/ir/type.h4
-rw-r--r--src/shader_recompiler/frontend/maxwell/control_flow.cpp2
-rw-r--r--src/shader_recompiler/frontend/maxwell/location.h4
-rw-r--r--src/shader_recompiler/frontend/maxwell/opcodes.h4
-rw-r--r--src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp2
-rw-r--r--src/video_core/renderer_vulkan/pipeline_statistics.cpp2
-rw-r--r--src/video_core/renderer_vulkan/renderer_vulkan.cpp2
-rw-r--r--src/video_core/renderer_vulkan/vk_staging_buffer_pool.cpp2
-rw-r--r--src/video_core/texture_cache/formatter.h12
-rw-r--r--src/video_core/texture_cache/image_info.cpp2
-rw-r--r--src/video_core/vulkan_common/nsight_aftermath_tracker.cpp2
-rw-r--r--src/web_service/verify_user_jwt.h2
-rw-r--r--src/web_service/web_backend.cpp2
75 files changed, 106 insertions, 105 deletions
diff --git a/src/citron/about_dialog.cpp b/src/citron/about_dialog.cpp
index 0855776f2..7aa384323 100644
--- a/src/citron/about_dialog.cpp
+++ b/src/citron/about_dialog.cpp
@@ -2,7 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <QIcon>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/scm_rev.h"
#include "ui_aboutdialog.h"
#include "citron/about_dialog.h"
diff --git a/src/citron/applets/qt_amiibo_settings.cpp b/src/citron/applets/qt_amiibo_settings.cpp
index f21e602cd..90f5dae99 100644
--- a/src/citron/applets/qt_amiibo_settings.cpp
+++ b/src/citron/applets/qt_amiibo_settings.cpp
@@ -3,7 +3,7 @@
#include <algorithm>
#include <thread>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include <nlohmann/json.hpp>
#include "common/assert.h"
diff --git a/src/citron/compatibility_list.cpp b/src/citron/compatibility_list.cpp
index f7cb308ab..32192c777 100644
--- a/src/citron/compatibility_list.cpp
+++ b/src/citron/compatibility_list.cpp
@@ -3,7 +3,7 @@
#include <algorithm>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "citron/compatibility_list.h"
diff --git a/src/citron/configuration/configure_per_game.cpp b/src/citron/configuration/configure_per_game.cpp
index 92a623c40..6fa188df8 100644
--- a/src/citron/configuration/configure_per_game.cpp
+++ b/src/citron/configuration/configure_per_game.cpp
@@ -8,7 +8,7 @@
#include <utility>
#include <vector>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include <QAbstractButton>
#include <QCheckBox>
diff --git a/src/citron/configuration/configure_ringcon.cpp b/src/citron/configuration/configure_ringcon.cpp
index ae2e47219..c418468bd 100644
--- a/src/citron/configuration/configure_ringcon.cpp
+++ b/src/citron/configuration/configure_ringcon.cpp
@@ -6,7 +6,7 @@
#include <QMenu>
#include <QMessageBox>
#include <QTimer>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "configuration/qt_config.h"
#include "hid_core/frontend/emulated_controller.h"
diff --git a/src/citron/configuration/input_profiles.cpp b/src/citron/configuration/input_profiles.cpp
index d9617e9f5..23ea472f5 100644
--- a/src/citron/configuration/input_profiles.cpp
+++ b/src/citron/configuration/input_profiles.cpp
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/fs/fs.h"
#include "common/fs/path_util.h"
diff --git a/src/citron/debugger/wait_tree.cpp b/src/citron/debugger/wait_tree.cpp
index fd26745f3..64d760eb4 100644
--- a/src/citron/debugger/wait_tree.cpp
+++ b/src/citron/debugger/wait_tree.cpp
@@ -2,7 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <array>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "citron/debugger/wait_tree.h"
#include "citron/uisettings.h"
diff --git a/src/citron/discord_impl.cpp b/src/citron/discord_impl.cpp
index 35a4d03f0..acf803ffb 100644
--- a/src/citron/discord_impl.cpp
+++ b/src/citron/discord_impl.cpp
@@ -14,7 +14,7 @@
#include <discord_rpc.h>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "citron/discord_impl.h"
diff --git a/src/citron/game_list.cpp b/src/citron/game_list.cpp
index 144ba058b..ab61e513f 100644
--- a/src/citron/game_list.cpp
+++ b/src/citron/game_list.cpp
@@ -13,7 +13,7 @@
#include <QMenu>
#include <QThreadPool>
#include <QToolButton>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/common_types.h"
#include "common/logging/log.h"
#include "core/core.h"
diff --git a/src/citron/main.cpp b/src/citron/main.cpp
index 29fd143b2..c30395310 100644
--- a/src/citron/main.cpp
+++ b/src/citron/main.cpp
@@ -92,7 +92,7 @@ static FileSys::VirtualFile VfsDirectoryCreateFileWrapper(const FileSys::Virtual
#include <SDL.h> // For SDL ScreenSaver functions
#endif
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/detached_tasks.h"
#include "common/fs/fs.h"
#include "common/fs/path_util.h"
diff --git a/src/citron_cmd/emu_window/emu_window_sdl2_gl.cpp b/src/citron_cmd/emu_window/emu_window_sdl2_gl.cpp
index 2ba82aee0..48b164732 100644
--- a/src/citron_cmd/emu_window/emu_window_sdl2_gl.cpp
+++ b/src/citron_cmd/emu_window/emu_window_sdl2_gl.cpp
@@ -8,7 +8,7 @@
#define SDL_MAIN_HANDLED
#include <SDL.h>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include <glad/glad.h>
#include "common/logging/log.h"
#include "common/scm_rev.h"
diff --git a/src/citron_cmd/emu_window/emu_window_sdl2_null.cpp b/src/citron_cmd/emu_window/emu_window_sdl2_null.cpp
index b70369009..7dae8396d 100644
--- a/src/citron_cmd/emu_window/emu_window_sdl2_null.cpp
+++ b/src/citron_cmd/emu_window/emu_window_sdl2_null.cpp
@@ -5,7 +5,7 @@
#include <memory>
#include <string>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/logging/log.h"
#include "common/scm_rev.h"
diff --git a/src/citron_cmd/emu_window/emu_window_sdl2_vk.cpp b/src/citron_cmd/emu_window/emu_window_sdl2_vk.cpp
index a9ec816ab..aedf16fb1 100644
--- a/src/citron_cmd/emu_window/emu_window_sdl2_vk.cpp
+++ b/src/citron_cmd/emu_window/emu_window_sdl2_vk.cpp
@@ -5,7 +5,7 @@
#include <memory>
#include <string>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/logging/log.h"
#include "common/scm_rev.h"
diff --git a/src/common/common_precompiled_headers.h b/src/common/common_precompiled_headers.h
index be7e5b5f9..b7e719dfd 100644
--- a/src/common/common_precompiled_headers.h
+++ b/src/common/common_precompiled_headers.h
@@ -8,7 +8,7 @@
#include <chrono>
#include <memory>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/assert.h"
#include "common/common_types.h"
diff --git a/src/common/dynamic_library.cpp b/src/common/dynamic_library.cpp
index 4fabe7e52..566fbed63 100644
--- a/src/common/dynamic_library.cpp
+++ b/src/common/dynamic_library.cpp
@@ -4,7 +4,7 @@
#include <string>
#include <utility>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/dynamic_library.h"
diff --git a/src/common/hex_util.h b/src/common/hex_util.h
index 618f53152..2f5417143 100644
--- a/src/common/hex_util.h
+++ b/src/common/hex_util.h
@@ -8,7 +8,7 @@
#include <cstddef>
#include <string>
#include <vector>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/assert.h"
#include "common/common_types.h"
diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cpp
index 13aa4a5d2..fd26d1d47 100644
--- a/src/common/logging/backend.cpp
+++ b/src/common/logging/backend.cpp
@@ -6,7 +6,7 @@
#include <climits>
#include <thread>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#ifdef _WIN32
#include <windows.h> // For OutputDebugStringW
diff --git a/src/common/logging/formatter.h b/src/common/logging/formatter.h
index 88e55505d..07efba9c2 100644
--- a/src/common/logging/formatter.h
+++ b/src/common/logging/formatter.h
@@ -5,7 +5,7 @@
#include <type_traits>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
// adapted from https://github.com/fmtlib/fmt/issues/2704
// a generic formatter for enum classes
@@ -14,7 +14,7 @@ template <typename T>
struct fmt::formatter<T, std::enable_if_t<std::is_enum_v<T>, char>>
: formatter<std::underlying_type_t<T>> {
template <typename FormatContext>
- auto format(const T& value, FormatContext& ctx) -> decltype(ctx.out()) {
+ auto format(const T& value, FormatContext& ctx) const -> decltype(ctx.out()) {
return fmt::formatter<std::underlying_type_t<T>>::format(
static_cast<std::underlying_type_t<T>>(value), ctx);
}
diff --git a/src/common/logging/log.h b/src/common/logging/log.h
index c00c01a9e..99e6f988a 100644
--- a/src/common/logging/log.h
+++ b/src/common/logging/log.h
@@ -6,7 +6,7 @@
#include <algorithm>
#include <string_view>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/logging/formatter.h"
#include "common/logging/types.h"
diff --git a/src/common/nvidia_flags.cpp b/src/common/nvidia_flags.cpp
index 97c989b64..112960447 100644
--- a/src/common/nvidia_flags.cpp
+++ b/src/common/nvidia_flags.cpp
@@ -3,7 +3,7 @@
#include <cstdlib>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/fs/fs.h"
#include "common/fs/path_util.h"
diff --git a/src/common/typed_address.h b/src/common/typed_address.h
index d5e743583..4df48a99f 100644
--- a/src/common/typed_address.h
+++ b/src/common/typed_address.h
@@ -5,7 +5,7 @@
#include <compare>
#include <type_traits>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/common_types.h"
@@ -262,7 +262,7 @@ struct fmt::formatter<Common::PhysicalAddress> {
return ctx.begin();
}
template <typename FormatContext>
- auto format(const Common::PhysicalAddress& addr, FormatContext& ctx) {
+ auto format(const Common::PhysicalAddress& addr, FormatContext& ctx) const {
return fmt::format_to(ctx.out(), "{:#x}", static_cast<u64>(addr.GetValue()));
}
};
@@ -273,7 +273,7 @@ struct fmt::formatter<Common::ProcessAddress> {
return ctx.begin();
}
template <typename FormatContext>
- auto format(const Common::ProcessAddress& addr, FormatContext& ctx) {
+ auto format(const Common::ProcessAddress& addr, FormatContext& ctx) const {
return fmt::format_to(ctx.out(), "{:#x}", static_cast<u64>(addr.GetValue()));
}
};
@@ -284,7 +284,7 @@ struct fmt::formatter<Common::VirtualAddress> {
return ctx.begin();
}
template <typename FormatContext>
- auto format(const Common::VirtualAddress& addr, FormatContext& ctx) {
+ auto format(const Common::VirtualAddress& addr, FormatContext& ctx) const {
return fmt::format_to(ctx.out(), "{:#x}", static_cast<u64>(addr.GetValue()));
}
};
diff --git a/src/common/uuid.cpp b/src/common/uuid.cpp
index 035df7fe0..8f0dba452 100644
--- a/src/common/uuid.cpp
+++ b/src/common/uuid.cpp
@@ -5,7 +5,7 @@
#include <optional>
#include <random>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/assert.h"
#include "common/tiny_mt.h"
diff --git a/src/core/arm/dynarmic/dynarmic_cp15.cpp b/src/core/arm/dynarmic/dynarmic_cp15.cpp
index f3eee0d42..c663adda1 100644
--- a/src/core/arm/dynarmic/dynarmic_cp15.cpp
+++ b/src/core/arm/dynarmic/dynarmic_cp15.cpp
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: 2017 Citra Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/logging/log.h"
#include "core/arm/dynarmic/arm_dynarmic_32.h"
#include "core/arm/dynarmic/dynarmic_cp15.h"
@@ -22,7 +22,7 @@ struct fmt::formatter<Dynarmic::A32::CoprocReg> {
return ctx.begin();
}
template <typename FormatContext>
- auto format(const Dynarmic::A32::CoprocReg& reg, FormatContext& ctx) {
+ auto format(const Dynarmic::A32::CoprocReg& reg, FormatContext& ctx) const {
return fmt::format_to(ctx.out(), "cp{}", static_cast<size_t>(reg));
}
};
diff --git a/src/core/crypto/key_manager.h b/src/core/crypto/key_manager.h
index 2250eccec..7de21f8a4 100644
--- a/src/core/crypto/key_manager.h
+++ b/src/core/crypto/key_manager.h
@@ -11,7 +11,7 @@
#include <string>
#include <variant>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/common_funcs.h"
#include "common/common_types.h"
#include "core/crypto/partition_data_manager.h"
diff --git a/src/core/debugger/gdbstub.cpp b/src/core/debugger/gdbstub.cpp
index 80091cc7e..34b0b7d2b 100644
--- a/src/core/debugger/gdbstub.cpp
+++ b/src/core/debugger/gdbstub.cpp
@@ -9,6 +9,7 @@
#include <thread>
#include <boost/algorithm/string.hpp>
+#include <fmt/ranges.h>
#include "common/hex_util.h"
#include "common/logging/log.h"
diff --git a/src/core/file_sys/bis_factory.cpp b/src/core/file_sys/bis_factory.cpp
index 350d0ce29..353171974 100644
--- a/src/core/file_sys/bis_factory.cpp
+++ b/src/core/file_sys/bis_factory.cpp
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/fs/path_util.h"
#include "core/file_sys/bis_factory.h"
#include "core/file_sys/registered_cache.h"
diff --git a/src/core/file_sys/fs_save_data_types.h b/src/core/file_sys/fs_save_data_types.h
index 493dba34f..fbb1b5421 100644
--- a/src/core/file_sys/fs_save_data_types.h
+++ b/src/core/file_sys/fs_save_data_types.h
@@ -4,7 +4,7 @@
#pragma once
#include <array>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/common_funcs.h"
#include "common/common_types.h"
diff --git a/src/core/file_sys/system_archive/ng_word.cpp b/src/core/file_sys/system_archive/ng_word.cpp
index 1fa67877d..a647e19ea 100644
--- a/src/core/file_sys/system_archive/ng_word.cpp
+++ b/src/core/file_sys/system_archive/ng_word.cpp
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/common_types.h"
#include "core/file_sys/system_archive/ng_word.h"
#include "core/file_sys/vfs/vfs_vector.h"
diff --git a/src/core/hle/service/acc/profile_manager.cpp b/src/core/hle/service/acc/profile_manager.cpp
index 292414f96..539f71c88 100644
--- a/src/core/hle/service/acc/profile_manager.cpp
+++ b/src/core/hle/service/acc/profile_manager.cpp
@@ -4,7 +4,7 @@
#include <cstring>
#include <random>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/fs/file.h"
#include "common/fs/fs.h"
diff --git a/src/core/hle/service/ldn/ldn_types.h b/src/core/hle/service/ldn/ldn_types.h
index 6198aa07b..fa0cdcbfa 100644
--- a/src/core/hle/service/ldn/ldn_types.h
+++ b/src/core/hle/service/ldn/ldn_types.h
@@ -3,7 +3,7 @@
#pragma once
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/common_funcs.h"
#include "common/common_types.h"
diff --git a/src/core/hle/service/nfc/common/device.cpp b/src/core/hle/service/nfc/common/device.cpp
index 1b898672e..0af613e2a 100644
--- a/src/core/hle/service/nfc/common/device.cpp
+++ b/src/core/hle/service/nfc/common/device.cpp
@@ -14,7 +14,7 @@
#pragma warning(pop)
#endif
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/fs/file.h"
#include "common/fs/fs.h"
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp b/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp
index 0265d55f2..7a035cd2c 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp
+++ b/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp
@@ -6,7 +6,7 @@
#include <cstdlib>
#include <cstring>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/assert.h"
#include "common/logging/log.h"
#include "common/scope_exit.h"
diff --git a/src/core/hle/service/nvdrv/nvdrv.cpp b/src/core/hle/service/nvdrv/nvdrv.cpp
index 03eb507b9..8c618ca25 100644
--- a/src/core/hle/service/nvdrv/nvdrv.cpp
+++ b/src/core/hle/service/nvdrv/nvdrv.cpp
@@ -4,7 +4,7 @@
#include <utility>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "core/core.h"
#include "core/hle/kernel/k_event.h"
#include "core/hle/service/ipc_helpers.h"
diff --git a/src/core/hle/service/psc/time/common.h b/src/core/hle/service/psc/time/common.h
index 3e13144a0..d6e3e27ea 100644
--- a/src/core/hle/service/psc/time/common.h
+++ b/src/core/hle/service/psc/time/common.h
@@ -5,7 +5,7 @@
#include <array>
#include <chrono>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/common_types.h"
#include "common/intrusive_list.h"
@@ -167,7 +167,7 @@ constexpr inline Result GetSpanBetweenTimePoints(s64* out_seconds, const SteadyC
template <>
struct fmt::formatter<Service::PSC::Time::TimeType> : fmt::formatter<fmt::string_view> {
template <typename FormatContext>
- auto format(Service::PSC::Time::TimeType type, FormatContext& ctx) {
+ auto format(Service::PSC::Time::TimeType type, FormatContext& ctx) const {
const string_view name = [type] {
using Service::PSC::Time::TimeType;
switch (type) {
@@ -180,7 +180,7 @@ struct fmt::formatter<Service::PSC::Time::TimeType> : fmt::formatter<fmt::string
}
return "Invalid";
}();
- return formatter<string_view>::format(name, ctx);
+ return fmt::formatter<string_view>::format(name, ctx);
}
};
@@ -228,7 +228,7 @@ template <>
struct fmt::formatter<Service::PSC::Time::LocationName> : fmt::formatter<fmt::string_view> {
template <typename FormatContext>
auto format(const Service::PSC::Time::LocationName& name, FormatContext& ctx) const {
- return formatter<string_view>::format(name.data(), ctx);
+ return fmt::formatter<string_view>::format(name.data(), ctx);
}
};
@@ -236,7 +236,7 @@ template <>
struct fmt::formatter<Service::PSC::Time::RuleVersion> : fmt::formatter<fmt::string_view> {
template <typename FormatContext>
auto format(const Service::PSC::Time::RuleVersion& version, FormatContext& ctx) const {
- return formatter<string_view>::format(version.data(), ctx);
+ return fmt::formatter<string_view>::format(version.data(), ctx);
}
};
diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp
index ce5e3b5b4..deeea16ae 100644
--- a/src/core/hle/service/service.cpp
+++ b/src/core/hle/service/service.cpp
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/assert.h"
#include "common/logging/log.h"
#include "common/settings.h"
diff --git a/src/core/hle/service/sockets/bsd.cpp b/src/core/hle/service/sockets/bsd.cpp
index dd652ca42..ef0320334 100644
--- a/src/core/hle/service/sockets/bsd.cpp
+++ b/src/core/hle/service/sockets/bsd.cpp
@@ -6,7 +6,7 @@
#include <utility>
#include <vector>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/microprofile.h"
#include "common/socket_types.h"
diff --git a/src/core/perf_stats.cpp b/src/core/perf_stats.cpp
index 957be9614..770dffecb 100644
--- a/src/core/perf_stats.cpp
+++ b/src/core/perf_stats.cpp
@@ -9,7 +9,7 @@
#include <sstream>
#include <thread>
#include <fmt/chrono.h>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/fs/file.h"
#include "common/fs/fs.h"
#include "common/fs/path_util.h"
diff --git a/src/core/reporter.cpp b/src/core/reporter.cpp
index 424bb63c7..a2627b5e2 100644
--- a/src/core/reporter.cpp
+++ b/src/core/reporter.cpp
@@ -6,7 +6,7 @@
#include <iomanip>
#include <fmt/chrono.h>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include <nlohmann/json.hpp>
#include "common/fs/file.h"
diff --git a/src/hid_core/frontend/emulated_devices.cpp b/src/hid_core/frontend/emulated_devices.cpp
index a827aa9b7..f0b543c54 100644
--- a/src/hid_core/frontend/emulated_devices.cpp
+++ b/src/hid_core/frontend/emulated_devices.cpp
@@ -2,7 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <algorithm>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "hid_core/frontend/emulated_devices.h"
#include "hid_core/frontend/input_converter.h"
diff --git a/src/input_common/drivers/camera.cpp b/src/input_common/drivers/camera.cpp
index 04970f635..11ca75640 100644
--- a/src/input_common/drivers/camera.cpp
+++ b/src/input_common/drivers/camera.cpp
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/param_package.h"
#include "input_common/drivers/camera.h"
diff --git a/src/input_common/drivers/gc_adapter.cpp b/src/input_common/drivers/gc_adapter.cpp
index f1184a5fa..690779c6a 100644
--- a/src/input_common/drivers/gc_adapter.cpp
+++ b/src/input_common/drivers/gc_adapter.cpp
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: 2014 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include <libusb.h>
#include "common/logging/log.h"
diff --git a/src/input_common/drivers/joycon.cpp b/src/input_common/drivers/joycon.cpp
index 72d2951f3..43f3d6078 100644
--- a/src/input_common/drivers/joycon.cpp
+++ b/src/input_common/drivers/joycon.cpp
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/param_package.h"
#include "common/polyfill_ranges.h"
diff --git a/src/input_common/drivers/mouse.cpp b/src/input_common/drivers/mouse.cpp
index 9fb824baf..4af2dd36f 100644
--- a/src/input_common/drivers/mouse.cpp
+++ b/src/input_common/drivers/mouse.cpp
@@ -2,7 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <thread>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include <math.h>
#include "common/param_package.h"
diff --git a/src/input_common/drivers/tas_input.cpp b/src/input_common/drivers/tas_input.cpp
index f418714c1..ecd82af18 100644
--- a/src/input_common/drivers/tas_input.cpp
+++ b/src/input_common/drivers/tas_input.cpp
@@ -3,7 +3,7 @@
#include <cstring>
#include <sstream>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/fs/file.h"
#include "common/fs/fs_types.h"
diff --git a/src/input_common/drivers/udp_client.cpp b/src/input_common/drivers/udp_client.cpp
index 60821b31a..553fee1aa 100644
--- a/src/input_common/drivers/udp_client.cpp
+++ b/src/input_common/drivers/udp_client.cpp
@@ -3,7 +3,7 @@
#include <random>
#include <boost/asio.hpp>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/logging/log.h"
#include "common/param_package.h"
diff --git a/src/input_common/drivers/virtual_amiibo.cpp b/src/input_common/drivers/virtual_amiibo.cpp
index 180eb53ef..a30b10b7b 100644
--- a/src/input_common/drivers/virtual_amiibo.cpp
+++ b/src/input_common/drivers/virtual_amiibo.cpp
@@ -2,7 +2,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later
#include <cstring>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/fs/file.h"
#include "common/fs/fs.h"
diff --git a/src/shader_recompiler/backend/glasm/glasm_emit_context.h b/src/shader_recompiler/backend/glasm/glasm_emit_context.h
index a81d64a9e..4b8951ddb 100644
--- a/src/shader_recompiler/backend/glasm/glasm_emit_context.h
+++ b/src/shader_recompiler/backend/glasm/glasm_emit_context.h
@@ -7,7 +7,7 @@
#include <utility>
#include <vector>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "shader_recompiler/backend/glasm/reg_alloc.h"
#include "shader_recompiler/stage.h"
diff --git a/src/shader_recompiler/backend/glasm/reg_alloc.cpp b/src/shader_recompiler/backend/glasm/reg_alloc.cpp
index 781803e55..3919d6326 100644
--- a/src/shader_recompiler/backend/glasm/reg_alloc.cpp
+++ b/src/shader_recompiler/backend/glasm/reg_alloc.cpp
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "shader_recompiler/backend/glasm/reg_alloc.h"
#include "shader_recompiler/exception.h"
diff --git a/src/shader_recompiler/backend/glasm/reg_alloc.h b/src/shader_recompiler/backend/glasm/reg_alloc.h
index bd6e2d929..9cd009132 100644
--- a/src/shader_recompiler/backend/glasm/reg_alloc.h
+++ b/src/shader_recompiler/backend/glasm/reg_alloc.h
@@ -5,7 +5,7 @@
#include <bitset>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/bit_cast.h"
#include "common/bit_field.h"
@@ -184,7 +184,7 @@ struct fmt::formatter<Shader::Backend::GLASM::Id> {
return ctx.begin();
}
template <typename FormatContext>
- auto format(Shader::Backend::GLASM::Id id, FormatContext& ctx) {
+ auto format(Shader::Backend::GLASM::Id id, FormatContext& ctx) const {
return Shader::Backend::GLASM::FormatTo<true>(ctx, id);
}
};
@@ -195,7 +195,7 @@ struct fmt::formatter<Shader::Backend::GLASM::Register> {
return ctx.begin();
}
template <typename FormatContext>
- auto format(const Shader::Backend::GLASM::Register& value, FormatContext& ctx) {
+ auto format(const Shader::Backend::GLASM::Register& value, FormatContext& ctx) const {
if (value.type != Shader::Backend::GLASM::Type::Register) {
throw Shader::InvalidArgument("Register value type is not register");
}
@@ -209,7 +209,7 @@ struct fmt::formatter<Shader::Backend::GLASM::ScalarRegister> {
return ctx.begin();
}
template <typename FormatContext>
- auto format(const Shader::Backend::GLASM::ScalarRegister& value, FormatContext& ctx) {
+ auto format(const Shader::Backend::GLASM::ScalarRegister& value, FormatContext& ctx) const {
if (value.type != Shader::Backend::GLASM::Type::Register) {
throw Shader::InvalidArgument("Register value type is not register");
}
@@ -223,7 +223,7 @@ struct fmt::formatter<Shader::Backend::GLASM::ScalarU32> {
return ctx.begin();
}
template <typename FormatContext>
- auto format(const Shader::Backend::GLASM::ScalarU32& value, FormatContext& ctx) {
+ auto format(const Shader::Backend::GLASM::ScalarU32& value, FormatContext& ctx) const {
switch (value.type) {
case Shader::Backend::GLASM::Type::Void:
break;
@@ -244,7 +244,7 @@ struct fmt::formatter<Shader::Backend::GLASM::ScalarS32> {
return ctx.begin();
}
template <typename FormatContext>
- auto format(const Shader::Backend::GLASM::ScalarS32& value, FormatContext& ctx) {
+ auto format(const Shader::Backend::GLASM::ScalarS32& value, FormatContext& ctx) const {
switch (value.type) {
case Shader::Backend::GLASM::Type::Void:
break;
@@ -265,7 +265,7 @@ struct fmt::formatter<Shader::Backend::GLASM::ScalarF32> {
return ctx.begin();
}
template <typename FormatContext>
- auto format(const Shader::Backend::GLASM::ScalarF32& value, FormatContext& ctx) {
+ auto format(const Shader::Backend::GLASM::ScalarF32& value, FormatContext& ctx) const {
switch (value.type) {
case Shader::Backend::GLASM::Type::Void:
break;
@@ -286,7 +286,7 @@ struct fmt::formatter<Shader::Backend::GLASM::ScalarF64> {
return ctx.begin();
}
template <typename FormatContext>
- auto format(const Shader::Backend::GLASM::ScalarF64& value, FormatContext& ctx) {
+ auto format(const Shader::Backend::GLASM::ScalarF64& value, FormatContext& ctx) const {
switch (value.type) {
case Shader::Backend::GLASM::Type::Void:
break;
diff --git a/src/shader_recompiler/backend/glsl/glsl_emit_context.h b/src/shader_recompiler/backend/glsl/glsl_emit_context.h
index 7587f7bab..331c0588e 100644
--- a/src/shader_recompiler/backend/glsl/glsl_emit_context.h
+++ b/src/shader_recompiler/backend/glsl/glsl_emit_context.h
@@ -7,7 +7,7 @@
#include <utility>
#include <vector>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "shader_recompiler/backend/glsl/var_alloc.h"
#include "shader_recompiler/stage.h"
diff --git a/src/shader_recompiler/backend/glsl/var_alloc.cpp b/src/shader_recompiler/backend/glsl/var_alloc.cpp
index 8b7da539a..ff6e2d5d5 100644
--- a/src/shader_recompiler/backend/glsl/var_alloc.cpp
+++ b/src/shader_recompiler/backend/glsl/var_alloc.cpp
@@ -4,7 +4,7 @@
#include <string>
#include <string_view>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "shader_recompiler/backend/glsl/var_alloc.h"
#include "shader_recompiler/exception.h"
diff --git a/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp b/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp
index a27f2f73a..388ddce2c 100644
--- a/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp
+++ b/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp
@@ -8,7 +8,7 @@
#include <boost/container/static_vector.hpp>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/common_types.h"
#include "common/div_ceil.h"
diff --git a/src/shader_recompiler/frontend/ir/attribute.cpp b/src/shader_recompiler/frontend/ir/attribute.cpp
index 1bf9db935..97f253602 100644
--- a/src/shader_recompiler/frontend/ir/attribute.cpp
+++ b/src/shader_recompiler/frontend/ir/attribute.cpp
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "shader_recompiler/exception.h"
#include "shader_recompiler/frontend/ir/attribute.h"
diff --git a/src/shader_recompiler/frontend/ir/attribute.h b/src/shader_recompiler/frontend/ir/attribute.h
index 5f039b6f6..7a0671380 100644
--- a/src/shader_recompiler/frontend/ir/attribute.h
+++ b/src/shader_recompiler/frontend/ir/attribute.h
@@ -3,7 +3,7 @@
#pragma once
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/common_types.h"
@@ -250,7 +250,7 @@ struct fmt::formatter<Shader::IR::Attribute> {
return ctx.begin();
}
template <typename FormatContext>
- auto format(const Shader::IR::Attribute& attribute, FormatContext& ctx) {
+ auto format(const Shader::IR::Attribute& attribute, FormatContext& ctx) const {
return fmt::format_to(ctx.out(), "{}", Shader::IR::NameOf(attribute));
}
};
diff --git a/src/shader_recompiler/frontend/ir/condition.cpp b/src/shader_recompiler/frontend/ir/condition.cpp
index fb6b141d3..4db0c164f 100644
--- a/src/shader_recompiler/frontend/ir/condition.cpp
+++ b/src/shader_recompiler/frontend/ir/condition.cpp
@@ -3,7 +3,7 @@
#include <string>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "shader_recompiler/frontend/ir/condition.h"
diff --git a/src/shader_recompiler/frontend/ir/condition.h b/src/shader_recompiler/frontend/ir/condition.h
index 1cad46b9b..89ac42dbe 100644
--- a/src/shader_recompiler/frontend/ir/condition.h
+++ b/src/shader_recompiler/frontend/ir/condition.h
@@ -5,7 +5,7 @@
#include <string>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/common_types.h"
#include "shader_recompiler/frontend/ir/flow_test.h"
@@ -52,7 +52,7 @@ struct fmt::formatter<Shader::IR::Condition> {
return ctx.begin();
}
template <typename FormatContext>
- auto format(const Shader::IR::Condition& cond, FormatContext& ctx) {
+ auto format(const Shader::IR::Condition& cond, FormatContext& ctx) const {
return fmt::format_to(ctx.out(), "{}", Shader::IR::NameOf(cond));
}
};
diff --git a/src/shader_recompiler/frontend/ir/flow_test.cpp b/src/shader_recompiler/frontend/ir/flow_test.cpp
index a859efdde..c2dbe2690 100644
--- a/src/shader_recompiler/frontend/ir/flow_test.cpp
+++ b/src/shader_recompiler/frontend/ir/flow_test.cpp
@@ -3,7 +3,7 @@
#include <string>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "shader_recompiler/frontend/ir/flow_test.h"
diff --git a/src/shader_recompiler/frontend/ir/flow_test.h b/src/shader_recompiler/frontend/ir/flow_test.h
index 88f7c9e82..014ae6b65 100644
--- a/src/shader_recompiler/frontend/ir/flow_test.h
+++ b/src/shader_recompiler/frontend/ir/flow_test.h
@@ -4,7 +4,7 @@
#pragma once
#include <string>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/common_types.h"
@@ -55,7 +55,7 @@ struct fmt::formatter<Shader::IR::FlowTest> {
return ctx.begin();
}
template <typename FormatContext>
- auto format(const Shader::IR::FlowTest& flow_test, FormatContext& ctx) {
+ auto format(const Shader::IR::FlowTest& flow_test, FormatContext& ctx) const {
return fmt::format_to(ctx.out(), "{}", Shader::IR::NameOf(flow_test));
}
};
diff --git a/src/shader_recompiler/frontend/ir/opcodes.h b/src/shader_recompiler/frontend/ir/opcodes.h
index e300714f3..6caf12af4 100644
--- a/src/shader_recompiler/frontend/ir/opcodes.h
+++ b/src/shader_recompiler/frontend/ir/opcodes.h
@@ -6,7 +6,7 @@
#include <algorithm>
#include <array>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/polyfill_ranges.h"
#include "shader_recompiler/frontend/ir/type.h"
@@ -54,7 +54,7 @@ constexpr Type F64x2{Type::F64x2};
constexpr Type F64x3{Type::F64x3};
constexpr Type F64x4{Type::F64x4};
-constexpr OpcodeMeta META_TABLE[]{
+constexpr OpcodeMeta META_TABLE[] {
#define OPCODE(name_token, type_token, ...) \
{ \
.name{#name_token}, \
@@ -103,7 +103,7 @@ struct fmt::formatter<Shader::IR::Opcode> {
return ctx.begin();
}
template <typename FormatContext>
- auto format(const Shader::IR::Opcode& op, FormatContext& ctx) {
+ auto format(const Shader::IR::Opcode& op, FormatContext& ctx) const {
return fmt::format_to(ctx.out(), "{}", Shader::IR::NameOf(op));
}
};
diff --git a/src/shader_recompiler/frontend/ir/pred.h b/src/shader_recompiler/frontend/ir/pred.h
index a77c1e2a7..4c9e8b6bd 100644
--- a/src/shader_recompiler/frontend/ir/pred.h
+++ b/src/shader_recompiler/frontend/ir/pred.h
@@ -3,7 +3,7 @@
#pragma once
-#include <fmt/format.h>
+#include <fmt/ranges.h>
namespace Shader::IR {
@@ -33,7 +33,7 @@ struct fmt::formatter<Shader::IR::Pred> {
return ctx.begin();
}
template <typename FormatContext>
- auto format(const Shader::IR::Pred& pred, FormatContext& ctx) {
+ auto format(const Shader::IR::Pred& pred, FormatContext& ctx) const {
if (pred == Shader::IR::Pred::PT) {
return fmt::format_to(ctx.out(), "PT");
} else {
diff --git a/src/shader_recompiler/frontend/ir/program.cpp b/src/shader_recompiler/frontend/ir/program.cpp
index bda56ff46..39ff92ce7 100644
--- a/src/shader_recompiler/frontend/ir/program.cpp
+++ b/src/shader_recompiler/frontend/ir/program.cpp
@@ -4,7 +4,7 @@
#include <map>
#include <string>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "shader_recompiler/frontend/ir/basic_block.h"
#include "shader_recompiler/frontend/ir/program.h"
diff --git a/src/shader_recompiler/frontend/ir/reg.h b/src/shader_recompiler/frontend/ir/reg.h
index f7cb716a9..97c97420b 100644
--- a/src/shader_recompiler/frontend/ir/reg.h
+++ b/src/shader_recompiler/frontend/ir/reg.h
@@ -3,7 +3,7 @@
#pragma once
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/common_types.h"
#include "shader_recompiler/exception.h"
@@ -319,7 +319,7 @@ struct fmt::formatter<Shader::IR::Reg> {
return ctx.begin();
}
template <typename FormatContext>
- auto format(const Shader::IR::Reg& reg, FormatContext& ctx) {
+ auto format(const Shader::IR::Reg& reg, FormatContext& ctx) const {
if (reg == Shader::IR::Reg::RZ) {
return fmt::format_to(ctx.out(), "RZ");
} else if (static_cast<int>(reg) >= 0 && static_cast<int>(reg) < 255) {
diff --git a/src/shader_recompiler/frontend/ir/type.h b/src/shader_recompiler/frontend/ir/type.h
index 04c8c4ddb..91fabdcf3 100644
--- a/src/shader_recompiler/frontend/ir/type.h
+++ b/src/shader_recompiler/frontend/ir/type.h
@@ -5,7 +5,7 @@
#include <string>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/common_funcs.h"
#include "shader_recompiler/exception.h"
@@ -54,7 +54,7 @@ struct fmt::formatter<Shader::IR::Type> {
return ctx.begin();
}
template <typename FormatContext>
- auto format(const Shader::IR::Type& type, FormatContext& ctx) {
+ auto format(const Shader::IR::Type& type, FormatContext& ctx) const {
return fmt::format_to(ctx.out(), "{}", NameOf(type));
}
};
diff --git a/src/shader_recompiler/frontend/maxwell/control_flow.cpp b/src/shader_recompiler/frontend/maxwell/control_flow.cpp
index dce414cb4..a2ad56cc4 100644
--- a/src/shader_recompiler/frontend/maxwell/control_flow.cpp
+++ b/src/shader_recompiler/frontend/maxwell/control_flow.cpp
@@ -7,7 +7,7 @@
#include <string>
#include <utility>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/polyfill_ranges.h"
#include "shader_recompiler/exception.h"
diff --git a/src/shader_recompiler/frontend/maxwell/location.h b/src/shader_recompiler/frontend/maxwell/location.h
index 0c0477e2d..3093c7a8e 100644
--- a/src/shader_recompiler/frontend/maxwell/location.h
+++ b/src/shader_recompiler/frontend/maxwell/location.h
@@ -3,7 +3,7 @@
#pragma once
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/common_types.h"
#include "shader_recompiler/exception.h"
@@ -102,7 +102,7 @@ struct fmt::formatter<Shader::Maxwell::Location> {
return ctx.begin();
}
template <typename FormatContext>
- auto format(const Shader::Maxwell::Location& location, FormatContext& ctx) {
+ auto format(const Shader::Maxwell::Location& location, FormatContext& ctx) const {
return fmt::format_to(ctx.out(), "{:04x}", location.Offset());
}
};
diff --git a/src/shader_recompiler/frontend/maxwell/opcodes.h b/src/shader_recompiler/frontend/maxwell/opcodes.h
index 72dd143c2..18ed4f6e1 100644
--- a/src/shader_recompiler/frontend/maxwell/opcodes.h
+++ b/src/shader_recompiler/frontend/maxwell/opcodes.h
@@ -3,7 +3,7 @@
#pragma once
-#include <fmt/format.h>
+#include <fmt/ranges.h>
namespace Shader::Maxwell {
@@ -23,7 +23,7 @@ struct fmt::formatter<Shader::Maxwell::Opcode> {
return ctx.begin();
}
template <typename FormatContext>
- auto format(const Shader::Maxwell::Opcode& opcode, FormatContext& ctx) {
+ auto format(const Shader::Maxwell::Opcode& opcode, FormatContext& ctx) const {
return fmt::format_to(ctx.out(), "{}", NameOf(opcode));
}
};
diff --git a/src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp b/src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp
index 80c90fe6a..3c18f4998 100644
--- a/src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp
+++ b/src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp
@@ -8,7 +8,7 @@
#include <utility>
#include <vector>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include <boost/intrusive/list.hpp>
diff --git a/src/video_core/renderer_vulkan/pipeline_statistics.cpp b/src/video_core/renderer_vulkan/pipeline_statistics.cpp
index fcd160a32..545971bd8 100644
--- a/src/video_core/renderer_vulkan/pipeline_statistics.cpp
+++ b/src/video_core/renderer_vulkan/pipeline_statistics.cpp
@@ -3,7 +3,7 @@
#include <string_view>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/common_types.h"
#include "common/logging/log.h"
diff --git a/src/video_core/renderer_vulkan/renderer_vulkan.cpp b/src/video_core/renderer_vulkan/renderer_vulkan.cpp
index c553f5b3d..96fb8fba6 100644
--- a/src/video_core/renderer_vulkan/renderer_vulkan.cpp
+++ b/src/video_core/renderer_vulkan/renderer_vulkan.cpp
@@ -9,7 +9,7 @@
#include <string>
#include <vector>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/logging/log.h"
#include "common/polyfill_ranges.h"
diff --git a/src/video_core/renderer_vulkan/vk_staging_buffer_pool.cpp b/src/video_core/renderer_vulkan/vk_staging_buffer_pool.cpp
index 03a0b7280..72d5ec35f 100644
--- a/src/video_core/renderer_vulkan/vk_staging_buffer_pool.cpp
+++ b/src/video_core/renderer_vulkan/vk_staging_buffer_pool.cpp
@@ -5,7 +5,7 @@
#include <utility>
#include <vector>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/alignment.h"
#include "common/assert.h"
diff --git a/src/video_core/texture_cache/formatter.h b/src/video_core/texture_cache/formatter.h
index cabbfcb2d..fab4bc979 100644
--- a/src/video_core/texture_cache/formatter.h
+++ b/src/video_core/texture_cache/formatter.h
@@ -5,7 +5,7 @@
#include <string>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "video_core/surface.h"
#include "video_core/texture_cache/types.h"
@@ -13,7 +13,7 @@
template <>
struct fmt::formatter<VideoCore::Surface::PixelFormat> : fmt::formatter<fmt::string_view> {
template <typename FormatContext>
- auto format(VideoCore::Surface::PixelFormat format, FormatContext& ctx) {
+ auto format(VideoCore::Surface::PixelFormat format, FormatContext& ctx) const {
using VideoCore::Surface::PixelFormat;
const string_view name = [format] {
switch (format) {
@@ -227,14 +227,14 @@ struct fmt::formatter<VideoCore::Surface::PixelFormat> : fmt::formatter<fmt::str
}
return "Invalid";
}();
- return formatter<string_view>::format(name, ctx);
+ return fmt::formatter<string_view>::format(name, ctx);
}
};
template <>
struct fmt::formatter<VideoCommon::ImageType> : fmt::formatter<fmt::string_view> {
template <typename FormatContext>
- auto format(VideoCommon::ImageType type, FormatContext& ctx) {
+ auto format(VideoCommon::ImageType type, FormatContext& ctx) const {
const string_view name = [type] {
using VideoCommon::ImageType;
switch (type) {
@@ -251,7 +251,7 @@ struct fmt::formatter<VideoCommon::ImageType> : fmt::formatter<fmt::string_view>
}
return "Invalid";
}();
- return formatter<string_view>::format(name, ctx);
+ return fmt::formatter<string_view>::format(name, ctx);
}
};
@@ -262,7 +262,7 @@ struct fmt::formatter<VideoCommon::Extent3D> {
}
template <typename FormatContext>
- auto format(const VideoCommon::Extent3D& extent, FormatContext& ctx) {
+ auto format(const VideoCommon::Extent3D& extent, FormatContext& ctx) const {
return fmt::format_to(ctx.out(), "{{{}, {}, {}}}", extent.width, extent.height,
extent.depth);
}
diff --git a/src/video_core/texture_cache/image_info.cpp b/src/video_core/texture_cache/image_info.cpp
index 9444becce..135dd64de 100644
--- a/src/video_core/texture_cache/image_info.cpp
+++ b/src/video_core/texture_cache/image_info.cpp
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/assert.h"
#include "common/settings.h"
diff --git a/src/video_core/vulkan_common/nsight_aftermath_tracker.cpp b/src/video_core/vulkan_common/nsight_aftermath_tracker.cpp
index 60f62fb6f..aacc561b5 100644
--- a/src/video_core/vulkan_common/nsight_aftermath_tracker.cpp
+++ b/src/video_core/vulkan_common/nsight_aftermath_tracker.cpp
@@ -10,7 +10,7 @@
#include <utility>
#include <vector>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "common/common_types.h"
#include "common/fs/file.h"
diff --git a/src/web_service/verify_user_jwt.h b/src/web_service/verify_user_jwt.h
index 27b0a100c..5be7c87eb 100644
--- a/src/web_service/verify_user_jwt.h
+++ b/src/web_service/verify_user_jwt.h
@@ -3,7 +3,7 @@
#pragma once
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#include "network/verify_user.h"
#include "web_service/web_backend.h"
diff --git a/src/web_service/web_backend.cpp b/src/web_service/web_backend.cpp
index fdf3ac846..c04cdd970 100644
--- a/src/web_service/web_backend.cpp
+++ b/src/web_service/web_backend.cpp
@@ -5,7 +5,7 @@
#include <mutex>
#include <string>
-#include <fmt/format.h>
+#include <fmt/ranges.h>
#ifdef __GNUC__
#pragma GCC diagnostic push