diff --git a/src/common/config.h b/src/common/config.h index 82d65d30e..7dc0bc5c3 100644 --- a/src/common/config.h +++ b/src/common/config.h @@ -175,4 +175,4 @@ std::filesystem::path GetFoolproofKbmConfigFile(const std::string& game_id = "") // settings u32 GetLanguage(); -}; // namespace Config +} // namespace Config diff --git a/src/common/error.cpp b/src/common/error.cpp index 972a3428b..0debcb141 100644 --- a/src/common/error.cpp +++ b/src/common/error.cpp @@ -4,7 +4,7 @@ #include #ifdef _WIN32 -#include +#include #else #include #include diff --git a/src/common/hash.h b/src/common/hash.h index d5cacedd7..bf6f1a002 100644 --- a/src/common/hash.h +++ b/src/common/hash.h @@ -11,4 +11,4 @@ [[nodiscard]] inline u32 HashCombine(const u32 seed, const u32 hash) { return seed ^ (hash + 0x9e3779b9 + (seed << 6) + (seed >> 2)); -} \ No newline at end of file +} diff --git a/src/common/io_file.cpp b/src/common/io_file.cpp index 067010a26..45d281836 100644 --- a/src/common/io_file.cpp +++ b/src/common/io_file.cpp @@ -13,9 +13,9 @@ #ifdef _WIN32 #include "common/ntapi.h" +#include #include #include -#include #else #include #endif diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cpp index c16a5399a..5407c43a1 100644 --- a/src/common/logging/backend.cpp +++ b/src/common/logging/backend.cpp @@ -8,7 +8,7 @@ #include #ifdef _WIN32 -#include // For OutputDebugStringW +#include // For OutputDebugStringW #endif #include "common/bounded_threadsafe_queue.h" diff --git a/src/common/logging/formatter.h b/src/common/logging/formatter.h index fad8451e9..629a8f6ab 100644 --- a/src/common/logging/formatter.h +++ b/src/common/logging/formatter.h @@ -39,4 +39,4 @@ struct fmt::formatter, char> : formatter& wrapper, FormatContext& ctx) const { return formatter::format(wrapper.data, ctx); } -}; \ No newline at end of file +}; diff --git a/src/common/logging/text_formatter.cpp b/src/common/logging/text_formatter.cpp index b4fa204bc..f7944285d 100644 --- a/src/common/logging/text_formatter.cpp +++ b/src/common/logging/text_formatter.cpp @@ -5,7 +5,7 @@ #include #ifdef _WIN32 -#include +#include #endif #include "common/assert.h" diff --git a/src/common/memory_patcher.h b/src/common/memory_patcher.h index 29045a6a2..0dcf0e735 100644 --- a/src/common/memory_patcher.h +++ b/src/common/memory_patcher.h @@ -45,4 +45,4 @@ void PatchMemory(std::string modNameStr, std::string offsetStr, std::string valu static std::vector PatternToByte(const std::string& pattern); uintptr_t PatternScan(const std::string& signature); -} // namespace MemoryPatcher \ No newline at end of file +} // namespace MemoryPatcher diff --git a/src/common/ntapi.h b/src/common/ntapi.h index c876af58f..d5a2db19f 100644 --- a/src/common/ntapi.h +++ b/src/common/ntapi.h @@ -5,7 +5,7 @@ #ifdef _WIN32 -#include +#include #include "common/types.h" typedef enum _FILE_INFORMATION_CLASS { diff --git a/src/common/number_utils.cpp b/src/common/number_utils.cpp index af29e5cd3..660f539f9 100644 --- a/src/common/number_utils.cpp +++ b/src/common/number_utils.cpp @@ -158,4 +158,4 @@ float S16ToSnorm(s16 val) { return float(val * c); } -} // namespace NumberUtils \ No newline at end of file +} // namespace NumberUtils diff --git a/src/common/path_util.cpp b/src/common/path_util.cpp index 702d0fabc..b96d0c660 100644 --- a/src/common/path_util.cpp +++ b/src/common/path_util.cpp @@ -17,8 +17,8 @@ #ifdef _WIN32 // This is the maximum number of UTF-16 code units permissible in Windows file paths #define MAX_PATH 260 -#include -#include +#include +#include #else // This is the maximum number of UTF-8 code units permissible in all other OSes' file paths #define MAX_PATH 1024 diff --git a/src/common/rdtsc.cpp b/src/common/rdtsc.cpp index 48d1b7a40..754710dd9 100644 --- a/src/common/rdtsc.cpp +++ b/src/common/rdtsc.cpp @@ -6,7 +6,7 @@ #include "common/uint128.h" #ifdef _WIN64 -#include +#include #endif namespace Common { diff --git a/src/common/signal_context.cpp b/src/common/signal_context.cpp index 112160bc8..4b2213279 100644 --- a/src/common/signal_context.cpp +++ b/src/common/signal_context.cpp @@ -6,7 +6,7 @@ #include "common/signal_context.h" #ifdef _WIN32 -#include +#include #else #include #endif @@ -89,4 +89,4 @@ bool IsWriteError(void* ctx) { #endif #endif } -} // namespace Common \ No newline at end of file +} // namespace Common diff --git a/src/common/signal_context.h b/src/common/signal_context.h index b09da64f2..8ee3162e7 100644 --- a/src/common/signal_context.h +++ b/src/common/signal_context.h @@ -15,4 +15,4 @@ void IncrementRip(void* ctx, u64 length); bool IsWriteError(void* ctx); -} // namespace Common \ No newline at end of file +} // namespace Common diff --git a/src/common/string_util.cpp b/src/common/string_util.cpp index 4658d0ef4..e537e3524 100644 --- a/src/common/string_util.cpp +++ b/src/common/string_util.cpp @@ -9,7 +9,7 @@ #include "common/types.h" #ifdef _WIN32 -#include +#include #endif namespace Common { diff --git a/src/common/thread.cpp b/src/common/thread.cpp index 9ef1e86d8..f3a6cb9a9 100644 --- a/src/common/thread.cpp +++ b/src/common/thread.cpp @@ -14,7 +14,7 @@ #include #include #elif defined(_WIN32) -#include +#include #include "common/string_util.h" #else #if defined(__Bitrig__) || defined(__DragonFly__) || defined(__FreeBSD__) || defined(__OpenBSD__) diff --git a/src/core/address_space.cpp b/src/core/address_space.cpp index 2e66bdf83..71e03d4b7 100644 --- a/src/core/address_space.cpp +++ b/src/core/address_space.cpp @@ -13,7 +13,7 @@ #include "libraries/error_codes.h" #ifdef _WIN32 -#include +#include #else #include #include diff --git a/src/core/cpu_patches.cpp b/src/core/cpu_patches.cpp index a9f6c67a8..2a56ff4bc 100644 --- a/src/core/cpu_patches.cpp +++ b/src/core/cpu_patches.cpp @@ -19,7 +19,7 @@ #include "cpu_patches.h" #ifdef _WIN32 -#include +#include #else #include #ifdef __APPLE__ diff --git a/src/core/crypto/keys.h b/src/core/crypto/keys.h index 441082481..ac82baf62 100644 --- a/src/core/crypto/keys.h +++ b/src/core/crypto/keys.h @@ -302,4 +302,4 @@ public: 0xC7, 0x42, 0x82, 0x4B, 0x2E, 0xDC, 0x8E, 0x8D, 0x73, 0xCE, 0xB1, 0xCC, 0x01, 0xD9, 0x08, 0x70, 0x87, 0x3C, 0x44, 0x08, 0xEC, 0x49, 0x8F, 0x81, 0x5A, 0xE2, 0x40, 0xFF, 0x77, 0xFC, 0x0D}; -}; \ No newline at end of file +}; diff --git a/src/core/file_format/trp.h b/src/core/file_format/trp.h index aec129f0e..2aeffa9e6 100644 --- a/src/core/file_format/trp.h +++ b/src/core/file_format/trp.h @@ -43,4 +43,4 @@ private: std::array esfmIv{}; std::filesystem::path trpFilesPath; static constexpr int iv_len = 16; -}; \ No newline at end of file +}; diff --git a/src/core/file_sys/file.cpp b/src/core/file_sys/file.cpp index be6bc76bb..74b04d053 100644 --- a/src/core/file_sys/file.cpp +++ b/src/core/file_sys/file.cpp @@ -6,9 +6,9 @@ #include "core/file_sys/file.h" #ifdef _WIN64 +#include #include #include -#include #include "common/ntapi.h" #endif diff --git a/src/core/libraries/disc_map/disc_map.h b/src/core/libraries/disc_map/disc_map.h index 08abee632..06d2859d2 100644 --- a/src/core/libraries/disc_map/disc_map.h +++ b/src/core/libraries/disc_map/disc_map.h @@ -17,4 +17,4 @@ int PS4_SYSV_ABI Func_8A828CAEE7EDD5E9(); int PS4_SYSV_ABI Func_E7EBCE96E92F91F8(); void RegisterlibSceDiscMap(Core::Loader::SymbolsResolver* sym); -} // namespace Libraries::DiscMap \ No newline at end of file +} // namespace Libraries::DiscMap diff --git a/src/core/libraries/kernel/sync/mutex.h b/src/core/libraries/kernel/sync/mutex.h index d26c984ef..62d3c2ff6 100644 --- a/src/core/libraries/kernel/sync/mutex.h +++ b/src/core/libraries/kernel/sync/mutex.h @@ -8,7 +8,7 @@ #include "common/types.h" #ifdef _WIN64 -#include +#include #else #include #endif @@ -77,4 +77,4 @@ private: #endif }; -} // namespace Libraries::Kernel \ No newline at end of file +} // namespace Libraries::Kernel diff --git a/src/core/libraries/kernel/sync/semaphore.h b/src/core/libraries/kernel/sync/semaphore.h index 738df37d8..a2bf23fe7 100644 --- a/src/core/libraries/kernel/sync/semaphore.h +++ b/src/core/libraries/kernel/sync/semaphore.h @@ -10,7 +10,7 @@ #include "common/types.h" #ifdef _WIN64 -#include +#include #elif defined(__APPLE__) #include #else @@ -161,4 +161,4 @@ private: using BinarySemaphore = Semaphore<1>; using CountingSemaphore = Semaphore<0x7FFFFFFF /*ORBIS_KERNEL_SEM_VALUE_MAX*/>; -} // namespace Libraries::Kernel \ No newline at end of file +} // namespace Libraries::Kernel diff --git a/src/core/libraries/kernel/time.cpp b/src/core/libraries/kernel/time.cpp index 508e54089..7b51cb555 100644 --- a/src/core/libraries/kernel/time.cpp +++ b/src/core/libraries/kernel/time.cpp @@ -10,8 +10,8 @@ #include "core/libraries/libs.h" #ifdef _WIN64 +#include #include -#include #include "common/ntapi.h" diff --git a/src/core/libraries/libc_internal/libc_internal.h b/src/core/libraries/libc_internal/libc_internal.h index 4f77ab79a..abc003fe7 100644 --- a/src/core/libraries/libc_internal/libc_internal.h +++ b/src/core/libraries/libc_internal/libc_internal.h @@ -15,4 +15,4 @@ namespace Libraries::LibcInternal { // so everything is just in the .cpp file void RegisterlibSceLibcInternal(Core::Loader::SymbolsResolver* sym); -} // namespace Libraries::LibcInternal \ No newline at end of file +} // namespace Libraries::LibcInternal diff --git a/src/core/libraries/np_trophy/np_trophy.h b/src/core/libraries/np_trophy/np_trophy.h index 9abc795bc..697ff672e 100644 --- a/src/core/libraries/np_trophy/np_trophy.h +++ b/src/core/libraries/np_trophy/np_trophy.h @@ -226,4 +226,4 @@ int PS4_SYSV_ABI Func_F8EF6F5350A91990(); int PS4_SYSV_ABI Func_FA7A2DD770447552(); void RegisterlibSceNpTrophy(Core::Loader::SymbolsResolver* sym); -} // namespace Libraries::NpTrophy \ No newline at end of file +} // namespace Libraries::NpTrophy diff --git a/src/core/signals.cpp b/src/core/signals.cpp index e47a78cd2..5f72e7479 100644 --- a/src/core/signals.cpp +++ b/src/core/signals.cpp @@ -8,7 +8,7 @@ #include "core/signals.h" #ifdef _WIN32 -#include +#include #else #include #ifdef ARCH_X86_64 @@ -161,4 +161,4 @@ bool SignalDispatch::DispatchIllegalInstruction(void* context) const { return false; } -} // namespace Core \ No newline at end of file +} // namespace Core diff --git a/src/core/signals.h b/src/core/signals.h index 6ee525e10..f3cd6853f 100644 --- a/src/core/signals.h +++ b/src/core/signals.h @@ -53,4 +53,4 @@ private: using Signals = Common::Singleton; -} // namespace Core \ No newline at end of file +} // namespace Core diff --git a/src/core/thread.cpp b/src/core/thread.cpp index e154530d5..c2a74c628 100644 --- a/src/core/thread.cpp +++ b/src/core/thread.cpp @@ -6,7 +6,7 @@ #include "thread.h" #ifdef _WIN64 -#include +#include #include "common/ntapi.h" #else #include diff --git a/src/core/thread.h b/src/core/thread.h index 6ea7dfad4..5222e107f 100644 --- a/src/core/thread.h +++ b/src/core/thread.h @@ -42,4 +42,4 @@ private: u64 tid; }; -} // namespace Core \ No newline at end of file +} // namespace Core diff --git a/src/core/tls.cpp b/src/core/tls.cpp index 9b3178171..3e8919bf5 100644 --- a/src/core/tls.cpp +++ b/src/core/tls.cpp @@ -10,7 +10,7 @@ #include "core/tls.h" #ifdef _WIN32 -#include +#include #elif defined(__APPLE__) && defined(ARCH_X86_64) #include #include diff --git a/src/emulator.cpp b/src/emulator.cpp index 758720325..227bafa0e 100644 --- a/src/emulator.cpp +++ b/src/emulator.cpp @@ -103,7 +103,7 @@ void Emulator::Run(const std::filesystem::path& file, const std::vectorGetHostPath("/app0/sce_sys/param.sfo"); diff --git a/src/imgui/imgui_config.h b/src/imgui/imgui_config.h index 7b03a4bab..800f7b045 100644 --- a/src/imgui/imgui_config.h +++ b/src/imgui/imgui_config.h @@ -38,4 +38,4 @@ using ImTextureID = ::ImGui::Texture*; #ifdef IMGUI_USE_WCHAR32 #error "This project uses 16 bits wchar standard like Orbis" -#endif \ No newline at end of file +#endif diff --git a/src/imgui/imgui_layer.h b/src/imgui/imgui_layer.h index a6c7e2a4a..0a1076a33 100644 --- a/src/imgui/imgui_layer.h +++ b/src/imgui/imgui_layer.h @@ -14,4 +14,4 @@ public: virtual void Draw() = 0; }; -} // namespace ImGui \ No newline at end of file +} // namespace ImGui diff --git a/src/imgui/imgui_texture.h b/src/imgui/imgui_texture.h index 1a38066d0..0ee60f667 100644 --- a/src/imgui/imgui_texture.h +++ b/src/imgui/imgui_texture.h @@ -42,4 +42,4 @@ public: explicit(false) operator bool() const; }; -}; // namespace ImGui \ No newline at end of file +} // namespace ImGui diff --git a/src/imgui/renderer/imgui_impl_sdl3.cpp b/src/imgui/renderer/imgui_impl_sdl3.cpp index ccd31d03a..d42e05092 100644 --- a/src/imgui/renderer/imgui_impl_sdl3.cpp +++ b/src/imgui/renderer/imgui_impl_sdl3.cpp @@ -632,9 +632,9 @@ static void UpdateMouseData() { io.AddMousePosEvent(mouse_x_global, mouse_y_global); // SDL_EVENT_MOUSE_MOTION isn't triggered before the first frame is rendered // force update the prev_cursor coords - if (mouse_x_global != bd->prev_mouse_pos.x || mouse_y_global != bd->prev_mouse_pos.y && - bd->prev_mouse_pos.y == 0 && - bd->prev_mouse_pos.x == 0) { + if (mouse_x_global != bd->prev_mouse_pos.x || + (mouse_y_global != bd->prev_mouse_pos.y && bd->prev_mouse_pos.y == 0 && + bd->prev_mouse_pos.x == 0)) { bd->prev_mouse_pos.x = mouse_x_global; bd->prev_mouse_pos.y = mouse_y_global; bd->lastCursorMoveTime = bd->time; diff --git a/src/imgui/renderer/imgui_impl_sdl3.h b/src/imgui/renderer/imgui_impl_sdl3.h index fe626a962..8ae361b65 100644 --- a/src/imgui/renderer/imgui_impl_sdl3.h +++ b/src/imgui/renderer/imgui_impl_sdl3.h @@ -28,4 +28,4 @@ enum GamepadMode { void SetGamepadMode(GamepadMode mode, SDL_Gamepad** manual_gamepads_array = NULL, int manual_gamepads_count = -1); -}; // namespace ImGui::Sdl +} // namespace ImGui::Sdl diff --git a/src/imgui/renderer/texture_manager.cpp b/src/imgui/renderer/texture_manager.cpp index e217cd130..4b3afea00 100644 --- a/src/imgui/renderer/texture_manager.cpp +++ b/src/imgui/renderer/texture_manager.cpp @@ -250,4 +250,4 @@ void Submit() { } } // namespace Core::TextureManager -} // namespace ImGui \ No newline at end of file +} // namespace ImGui diff --git a/src/imgui/renderer/texture_manager.h b/src/imgui/renderer/texture_manager.h index 4fa7b9924..c1a2c7a4e 100644 --- a/src/imgui/renderer/texture_manager.h +++ b/src/imgui/renderer/texture_manager.h @@ -27,4 +27,4 @@ void DecodePngFile(std::filesystem::path path, Inner* core); void Submit(); -}; // namespace ImGui::Core::TextureManager \ No newline at end of file +} // namespace ImGui::Core::TextureManager diff --git a/src/main.cpp b/src/main.cpp index 6b334e446..8d9400328 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -15,7 +15,7 @@ #include "emulator.h" #ifdef _WIN32 -#include +#include #endif int main(int argc, char* argv[]) { diff --git a/src/qt_gui/cheats_patches.h b/src/qt_gui/cheats_patches.h index 0f793b774..785ef1e01 100644 --- a/src/qt_gui/cheats_patches.h +++ b/src/qt_gui/cheats_patches.h @@ -1,8 +1,7 @@ // SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later -#ifndef CHEATS_PATCHES_H -#define CHEATS_PATCHES_H +#pragma once #include #include @@ -116,5 +115,3 @@ private: QString CheatsDownloadedSuccessfully_MSG; QString DownloadComplete_MSG; }; - -#endif // CHEATS_PATCHES_H \ No newline at end of file diff --git a/src/qt_gui/compatibility_info.cpp b/src/qt_gui/compatibility_info.cpp index da32f24ae..cb3d9356d 100644 --- a/src/qt_gui/compatibility_info.cpp +++ b/src/qt_gui/compatibility_info.cpp @@ -15,7 +15,7 @@ CompatibilityInfoClass::CompatibilityInfoClass() std::filesystem::path compatibility_file_path = Common::FS::GetUserPath(Common::FS::PathType::MetaDataDir) / "compatibility_data.json"; Common::FS::PathToQString(m_compatibility_filename, compatibility_file_path); -}; +} CompatibilityInfoClass::~CompatibilityInfoClass() = default; void CompatibilityInfoClass::UpdateCompatibilityDatabase(QWidget* parent, bool forced) { diff --git a/src/qt_gui/compatibility_info.h b/src/qt_gui/compatibility_info.h index 7e70e998b..d89590825 100644 --- a/src/qt_gui/compatibility_info.h +++ b/src/qt_gui/compatibility_info.h @@ -85,4 +85,4 @@ private: QNetworkAccessManager* m_network_manager; QString m_compatibility_filename; QJsonObject m_compatibility_database; -}; \ No newline at end of file +}; diff --git a/src/qt_gui/elf_viewer.cpp b/src/qt_gui/elf_viewer.cpp index e80fa25c1..31c0c5be5 100644 --- a/src/qt_gui/elf_viewer.cpp +++ b/src/qt_gui/elf_viewer.cpp @@ -93,4 +93,4 @@ void ElfViewer::OpenElfFiles() { i++; } this->resizeColumnsToContents(); -} \ No newline at end of file +} diff --git a/src/qt_gui/game_install_dialog.h b/src/qt_gui/game_install_dialog.h index 938f0e1f3..c48eef9bd 100644 --- a/src/qt_gui/game_install_dialog.h +++ b/src/qt_gui/game_install_dialog.h @@ -29,4 +29,4 @@ private: private: QLineEdit* m_gamesDirectory; QLineEdit* m_addonsDirectory; -}; \ No newline at end of file +}; diff --git a/src/qt_gui/game_list_frame.cpp b/src/qt_gui/game_list_frame.cpp index 4c0607571..b05a6b1e6 100644 --- a/src/qt_gui/game_list_frame.cpp +++ b/src/qt_gui/game_list_frame.cpp @@ -418,4 +418,4 @@ QString GameListFrame::GetPlayTime(const std::string& serial) { QTableWidgetItem* GameListFrame::GetCurrentItem() { return m_current_item; -} \ No newline at end of file +} diff --git a/src/qt_gui/kbm_help_dialog.h b/src/qt_gui/kbm_help_dialog.h index 3e39d4397..9ee6131b5 100644 --- a/src/qt_gui/kbm_help_dialog.h +++ b/src/qt_gui/kbm_help_dialog.h @@ -173,4 +173,4 @@ You can find these here, with detailed comments, examples and suggestions for mo Devices: leftjoystick, rightjoystick, l2, r2 )"; } -}; \ No newline at end of file +}; diff --git a/src/qt_gui/main.cpp b/src/qt_gui/main.cpp index 36dc226ae..9dcb10123 100644 --- a/src/qt_gui/main.cpp +++ b/src/qt_gui/main.cpp @@ -13,7 +13,7 @@ #include "main_window.h" #ifdef _WIN32 -#include +#include #endif // Custom message handler to ignore Qt logs diff --git a/src/qt_gui/main_window.cpp b/src/qt_gui/main_window.cpp index bde32a52d..bf1a9fd4b 100644 --- a/src/qt_gui/main_window.cpp +++ b/src/qt_gui/main_window.cpp @@ -730,7 +730,7 @@ void MainWindow::ShowGameList() { m_game_grid_frame->clearContents(); m_game_list_frame->clearContents(); } -}; +} void MainWindow::RefreshGameTable() { // m_game_info->m_games.clear(); diff --git a/src/qt_gui/main_window_ui.h b/src/qt_gui/main_window_ui.h index 3ebfcee9e..baa82d84b 100644 --- a/src/qt_gui/main_window_ui.h +++ b/src/qt_gui/main_window_ui.h @@ -405,4 +405,4 @@ public: namespace Ui { class MainWindow : public Ui_MainWindow {}; -} // namespace Ui \ No newline at end of file +} // namespace Ui diff --git a/src/qt_gui/pkg_viewer.cpp b/src/qt_gui/pkg_viewer.cpp index ecbc6312d..3726d4e9b 100644 --- a/src/qt_gui/pkg_viewer.cpp +++ b/src/qt_gui/pkg_viewer.cpp @@ -214,4 +214,4 @@ void PKGViewer::ProcessPKGInfo() { int numPkgs = m_pkg_list.size(); QString statusMessage = QString::number(numPkgs) + " " + tr("Package"); statusBar->showMessage(statusMessage); -} \ No newline at end of file +} diff --git a/src/qt_gui/pkg_viewer.h b/src/qt_gui/pkg_viewer.h index 265a03b92..0e2ac725e 100644 --- a/src/qt_gui/pkg_viewer.h +++ b/src/qt_gui/pkg_viewer.h @@ -59,4 +59,4 @@ private: QStringList dir_list; std::vector dir_list_std; QTreeWidget* treeWidget = nullptr; -}; \ No newline at end of file +}; diff --git a/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp b/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp index e20cfeae2..dee1c56e7 100644 --- a/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp +++ b/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp @@ -702,7 +702,7 @@ EmitContext::BufferSpv EmitContext::DefineBuffer(bool is_storage, bool is_writte } interfaces.push_back(id); return {id, pointer_type}; -}; +} void EmitContext::DefineBuffers() { if (!profile.supports_robust_buffer_access && !info.has_readconst) { diff --git a/src/shader_recompiler/frontend/control_flow_graph.h b/src/shader_recompiler/frontend/control_flow_graph.h index d98d4b05d..9f2699b11 100644 --- a/src/shader_recompiler/frontend/control_flow_graph.h +++ b/src/shader_recompiler/frontend/control_flow_graph.h @@ -66,7 +66,7 @@ private: if (it == labels.end()) { labels.push_back(address); } - }; + } size_t GetIndex(Label label) { if (label == 0) { @@ -75,7 +75,7 @@ private: const auto it_index = std::ranges::lower_bound(index_to_pc, label); ASSERT(it_index != index_to_pc.end() || label > index_to_pc.back()); return std::distance(index_to_pc.begin(), it_index); - }; + } public: Common::ObjectPool& block_pool; diff --git a/src/shader_recompiler/frontend/tessellation.h b/src/shader_recompiler/frontend/tessellation.h index bfcaa4fdc..bd855dbfa 100644 --- a/src/shader_recompiler/frontend/tessellation.h +++ b/src/shader_recompiler/frontend/tessellation.h @@ -35,4 +35,4 @@ enum class TessConstantAttribute : u32 { FirstEdgeTessFactorIndex, }; -} // namespace Shader \ No newline at end of file +} // namespace Shader diff --git a/src/shader_recompiler/frontend/translate/translate.cpp b/src/shader_recompiler/frontend/translate/translate.cpp index 230f3917f..ed3bb2a90 100644 --- a/src/shader_recompiler/frontend/translate/translate.cpp +++ b/src/shader_recompiler/frontend/translate/translate.cpp @@ -197,7 +197,7 @@ IR::VectorReg Translator::GetScratchVgpr(u32 offset) { it->second = new_vgpr; } return it->second; -}; +} template T Translator::GetSrc(const InstOperand& operand) { diff --git a/src/shader_recompiler/ir/debug_print.h b/src/shader_recompiler/ir/debug_print.h index 1ab1575de..c443acbce 100644 --- a/src/shader_recompiler/ir/debug_print.h +++ b/src/shader_recompiler/ir/debug_print.h @@ -18,4 +18,4 @@ union DebugPrintFlags { BitField<0, 32, u32> num_args; }; -} // namespace Shader::IR \ No newline at end of file +} // namespace Shader::IR diff --git a/src/shader_recompiler/ir/passes/flatten_extended_userdata_pass.cpp b/src/shader_recompiler/ir/passes/flatten_extended_userdata_pass.cpp index bbf3fe8fb..f43fc8ed3 100644 --- a/src/shader_recompiler/ir/passes/flatten_extended_userdata_pass.cpp +++ b/src/shader_recompiler/ir/passes/flatten_extended_userdata_pass.cpp @@ -103,7 +103,7 @@ static inline void PushPtr(Xbyak::CodeGenerator& c, u32 off_dw) { static inline void PopPtr(Xbyak::CodeGenerator& c) { c.pop(rdi); -}; +} static void VisitPointer(u32 off_dw, IR::Inst* subtree, PassInfo& pass_info, Xbyak::CodeGenerator& c) { @@ -182,7 +182,7 @@ static void GenerateSrtProgram(Info& info, PassInfo& pass_info) { info.srt_info.flattened_bufsize_dw = pass_info.dst_off_dw; } -}; // namespace +} // namespace void FlattenExtendedUserdataPass(IR::Program& program) { Shader::Info& info = program.info; diff --git a/src/shader_recompiler/ir/passes/srt.h b/src/shader_recompiler/ir/passes/srt.h index 0ddc15ea6..1f7079567 100644 --- a/src/shader_recompiler/ir/passes/srt.h +++ b/src/shader_recompiler/ir/passes/srt.h @@ -34,4 +34,4 @@ struct PersistentSrtInfo { } }; -} // namespace Shader \ No newline at end of file +} // namespace Shader diff --git a/src/shader_recompiler/ir/pattern_matching.h b/src/shader_recompiler/ir/pattern_matching.h index 1279f14c3..13b7c2eaf 100644 --- a/src/shader_recompiler/ir/pattern_matching.h +++ b/src/shader_recompiler/ir/pattern_matching.h @@ -124,4 +124,4 @@ inline auto MakeInstPattern(Args&&... args) { #define M_COMPOSITECONSTRUCTU32X4(...) \ MakeInstPattern(__VA_ARGS__) -} // namespace Shader::Optimiation::PatternMatching \ No newline at end of file +} // namespace Shader::Optimiation::PatternMatching diff --git a/src/shader_recompiler/ir/srt_gvn_table.h b/src/shader_recompiler/ir/srt_gvn_table.h index 3baa1c7da..db3b94652 100644 --- a/src/shader_recompiler/ir/srt_gvn_table.h +++ b/src/shader_recompiler/ir/srt_gvn_table.h @@ -122,4 +122,4 @@ private: std::unordered_map iv_to_vn; }; -} // namespace Shader::Optimization \ No newline at end of file +} // namespace Shader::Optimization diff --git a/src/shader_recompiler/runtime_info.h b/src/shader_recompiler/runtime_info.h index 517392b98..2e222a42c 100644 --- a/src/shader_recompiler/runtime_info.h +++ b/src/shader_recompiler/runtime_info.h @@ -123,7 +123,7 @@ struct HullRuntimeInfo { // output control points and attributes that shouldnt be read by the TES anyways bool IsPassthrough() const { return hs_output_base == 0 && ls_stride == hs_output_cp_stride && num_threads == 1; - }; + } // regs.ls_hs_config.hs_output_control_points contains the number of threads, which // isn't exactly the number of output control points. diff --git a/src/video_core/page_manager.cpp b/src/video_core/page_manager.cpp index 47ed9e543..f5a4a6b6f 100644 --- a/src/video_core/page_manager.cpp +++ b/src/video_core/page_manager.cpp @@ -21,7 +21,7 @@ #include #endif #else -#include +#include #endif namespace VideoCore { diff --git a/src/video_core/renderdoc.cpp b/src/video_core/renderdoc.cpp index b082fd1ca..45d84aa1b 100644 --- a/src/video_core/renderdoc.cpp +++ b/src/video_core/renderdoc.cpp @@ -8,7 +8,7 @@ #include #ifdef _WIN32 -#include +#include #else #include #endif