summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorTilka <tilkax@gmail.com>2024-08-21 01:52:16 +0100
committerGitHub <noreply@github.com>2024-08-21 01:52:16 +0100
commit7b8b733b11b18875cb702615dfabb852db024d52 (patch)
treeaac1bcc5de72be1637b5f64e3d39a73df8d9d450 /Source
parent44f1a7586565307155b329d911a57fbf65785a57 (diff)
parent9602f36248edec803275128a0a327e3355f9472d (diff)
Merge pull request #13022 from tygyh/Remove-redundant-semicolons
Remove redundant semicolons
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/Common/BitField.h4
-rw-r--r--Source/Core/Common/CompatPatches.cpp2
-rw-r--r--Source/Core/Common/Debug/Threads.h2
-rw-r--r--Source/Core/Common/LdrWatcher.cpp2
-rw-r--r--Source/Core/Common/Profiler.h2
-rw-r--r--Source/Core/Common/StringUtil.h2
-rw-r--r--Source/Core/Common/WindowsRegistry.cpp2
-rw-r--r--Source/Core/Common/WindowsRegistry.h2
-rw-r--r--Source/Core/Core/AchievementManager.h2
-rw-r--r--Source/Core/Core/ActionReplay.h2
-rw-r--r--Source/Core/Core/Boot/DolReader.h2
-rw-r--r--Source/Core/Core/CPUThreadConfigCallback.cpp4
-rw-r--r--Source/Core/Core/CPUThreadConfigCallback.h2
-rw-r--r--Source/Core/Core/CheatSearch.h2
-rw-r--r--Source/Core/Core/Debugger/BranchWatch.h2
-rw-r--r--Source/Core/Core/Debugger/OSThread.h2
-rw-r--r--Source/Core/Core/Debugger/RSO.h2
-rw-r--r--Source/Core/Core/GeckoCode.h2
-rw-r--r--Source/Core/Core/HLE/HLE_Misc.h2
-rw-r--r--Source/Core/Core/HLE/HLE_OS.h2
-rw-r--r--Source/Core/Core/HW/AddressSpace.cpp2
-rw-r--r--Source/Core/Core/HW/Sram.h2
-rw-r--r--Source/Core/Core/HW/WiimoteEmu/Extension/Classic.h4
-rw-r--r--Source/Core/Core/HW/WiimoteEmu/MotionPlus.cpp2
-rw-r--r--Source/Core/Core/IOS/USB/Bluetooth/BTEmu.cpp4
-rw-r--r--Source/Core/Core/PowerPC/CachedInterpreter/CachedInterpreterBlockCache.h2
-rw-r--r--Source/Core/Core/PowerPC/CachedInterpreter/CachedInterpreterEmitter.h6
-rw-r--r--Source/Core/Core/PowerPC/MMU.h4
-rw-r--r--Source/Core/Core/System.h16
-rw-r--r--Source/Core/DiscIO/CompressedBlob.cpp2
-rw-r--r--Source/Core/DiscIO/RiivolutionParser.cpp2
-rw-r--r--Source/Core/DiscIO/WIABlob.cpp10
-rw-r--r--Source/Core/DiscIO/WIACompression.h2
-rw-r--r--Source/Core/DolphinQt/Debugger/WatchWidget.h2
-rw-r--r--Source/Core/DolphinQt/GCMemcardManager.cpp2
-rw-r--r--Source/Core/DolphinQt/InfinityBase/InfinityBaseWindow.cpp2
-rw-r--r--Source/Core/DolphinQt/MenuBar.h2
-rw-r--r--Source/Core/DolphinQt/SkylanderPortal/SkylanderPortalWindow.cpp2
-rw-r--r--Source/Core/InputCommon/ControlReference/ExpressionParser.cpp2
-rw-r--r--Source/Core/InputCommon/ControllerEmu/StickGate.h2
-rw-r--r--Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp8
-rw-r--r--Source/Core/VideoBackends/D3D/D3DBoundingBox.cpp2
-rw-r--r--Source/Core/VideoBackends/D3D12/D3D12BoundingBox.cpp2
-rw-r--r--Source/Core/VideoCommon/BPFunctions.cpp2
-rw-r--r--Source/Core/VideoCommon/OnScreenDisplay.h4
-rw-r--r--Source/Core/VideoCommon/VertexLoaderManager.h2
-rw-r--r--Source/Core/VideoCommon/VertexManagerBase.h2
-rw-r--r--Source/Core/WinUpdater/WinUI.cpp4
48 files changed, 72 insertions, 70 deletions
diff --git a/Source/Core/Common/BitField.h b/Source/Core/Common/BitField.h
index 68c0577fb2..bbd40f5414 100644
--- a/Source/Core/Common/BitField.h
+++ b/Source/Core/Common/BitField.h
@@ -312,7 +312,7 @@ class BitFieldArrayConstRef
friend class BitFieldArrayConstIterator<position, bits, size, T, S>;
public:
- constexpr T Value() const { return m_array->Value(m_index); };
+ constexpr T Value() const { return m_array->Value(m_index); }
constexpr operator T() const { return Value(); }
private:
@@ -333,7 +333,7 @@ class BitFieldArrayRef
friend class BitFieldArrayIterator<position, bits, size, T, S>;
public:
- constexpr T Value() const { return m_array->Value(m_index); };
+ constexpr T Value() const { return m_array->Value(m_index); }
constexpr operator T() const { return Value(); }
T operator=(const BitFieldArrayRef<position, bits, size, T, S>& value) const
{
diff --git a/Source/Core/Common/CompatPatches.cpp b/Source/Core/Common/CompatPatches.cpp
index 5b99658665..aeb509f4ab 100644
--- a/Source/Core/Common/CompatPatches.cpp
+++ b/Source/Core/Common/CompatPatches.cpp
@@ -261,4 +261,4 @@ int __cdecl EnableCompatPatches()
extern "C" {
__declspec(allocate(".CRT$XCZ")) decltype(&EnableCompatPatches)
enableCompatPatches = EnableCompatPatches;
-};
+}
diff --git a/Source/Core/Common/Debug/Threads.h b/Source/Core/Common/Debug/Threads.h
index e9aef96d26..ce50e945c1 100644
--- a/Source/Core/Common/Debug/Threads.h
+++ b/Source/Core/Common/Debug/Threads.h
@@ -14,7 +14,7 @@
namespace Core
{
class CPUThreadGuard;
-};
+}
namespace Common::Debug
{
diff --git a/Source/Core/Common/LdrWatcher.cpp b/Source/Core/Common/LdrWatcher.cpp
index 4e3fb88ba5..a0db0b61c6 100644
--- a/Source/Core/Common/LdrWatcher.cpp
+++ b/Source/Core/Common/LdrWatcher.cpp
@@ -78,7 +78,7 @@ public:
{
static LdrDllNotifier notifier;
return notifier;
- };
+ }
void Install(LdrObserver* observer);
void Uninstall(LdrObserver* observer);
diff --git a/Source/Core/Common/Profiler.h b/Source/Core/Common/Profiler.h
index 753c06fd38..b0255b1ce7 100644
--- a/Source/Core/Common/Profiler.h
+++ b/Source/Core/Common/Profiler.h
@@ -54,7 +54,7 @@ public:
private:
Profiler* m_p;
};
-}; // namespace Common
+} // namespace Common
// Warning: This profiler isn't thread safe. Only profile functions which doesn't run simultaneously
#define PROFILE(name) \
diff --git a/Source/Core/Common/StringUtil.h b/Source/Core/Common/StringUtil.h
index 1699d9fa2f..c1eaf94ad4 100644
--- a/Source/Core/Common/StringUtil.h
+++ b/Source/Core/Common/StringUtil.h
@@ -195,7 +195,7 @@ std::from_chars_result FromChars(std::string_view sv, T& value,
const char* const last = first + sv.size();
return std::from_chars(first, last, value, fmt);
}
-}; // namespace Common
+} // namespace Common
std::string TabsToSpaces(int tab_size, std::string str);
diff --git a/Source/Core/Common/WindowsRegistry.cpp b/Source/Core/Common/WindowsRegistry.cpp
index 4b6f1f2c24..2eb1ae9b9c 100644
--- a/Source/Core/Common/WindowsRegistry.cpp
+++ b/Source/Core/Common/WindowsRegistry.cpp
@@ -69,4 +69,4 @@ OSVERSIONINFOW GetOSVersion()
}
return info;
}
-}; // namespace WindowsRegistry
+} // namespace WindowsRegistry
diff --git a/Source/Core/Common/WindowsRegistry.h b/Source/Core/Common/WindowsRegistry.h
index 8a4705e7fe..ef789a98ca 100644
--- a/Source/Core/Common/WindowsRegistry.h
+++ b/Source/Core/Common/WindowsRegistry.h
@@ -15,4 +15,4 @@ template <>
bool ReadValue(std::string* value, const std::string& subkey, const std::string& name);
OSVERSIONINFOW GetOSVersion();
-}; // namespace WindowsRegistry
+} // namespace WindowsRegistry
diff --git a/Source/Core/Core/AchievementManager.h b/Source/Core/Core/AchievementManager.h
index 13f2a9a14e..2ec4a6dea7 100644
--- a/Source/Core/Core/AchievementManager.h
+++ b/Source/Core/Core/AchievementManager.h
@@ -170,7 +170,7 @@ private:
void FetchBoardInfo(AchievementId leaderboard_id);
- std::unique_ptr<DiscIO::Volume>& GetLoadingVolume() { return m_loading_volume; };
+ std::unique_ptr<DiscIO::Volume>& GetLoadingVolume() { return m_loading_volume; }
static void LoadGameCallback(int result, const char* error_message, rc_client_t* client,
void* userdata);
diff --git a/Source/Core/Core/ActionReplay.h b/Source/Core/Core/ActionReplay.h
index 3b05c1117c..ee2cb8b485 100644
--- a/Source/Core/Core/ActionReplay.h
+++ b/Source/Core/Core/ActionReplay.h
@@ -18,7 +18,7 @@ class IniFile;
namespace Core
{
class CPUThreadGuard;
-};
+}
namespace ActionReplay
{
diff --git a/Source/Core/Core/Boot/DolReader.h b/Source/Core/Core/Boot/DolReader.h
index 807f13432b..0c04d67b5d 100644
--- a/Source/Core/Core/Boot/DolReader.h
+++ b/Source/Core/Core/Boot/DolReader.h
@@ -24,7 +24,7 @@ public:
bool IsValid() const override { return m_is_valid; }
bool IsWii() const override { return m_is_wii; }
- bool IsAncast() const { return m_is_ancast; };
+ bool IsAncast() const { return m_is_ancast; }
u32 GetEntryPoint() const override { return m_dolheader.entryPoint; }
bool LoadIntoMemory(Core::System& system, bool only_in_mem1 = false) const override;
bool LoadSymbols(const Core::CPUThreadGuard& guard, PPCSymbolDB& ppc_symbol_db) const override
diff --git a/Source/Core/Core/CPUThreadConfigCallback.cpp b/Source/Core/Core/CPUThreadConfigCallback.cpp
index 4919d5b9b5..44f9997d6e 100644
--- a/Source/Core/Core/CPUThreadConfigCallback.cpp
+++ b/Source/Core/Core/CPUThreadConfigCallback.cpp
@@ -38,7 +38,7 @@ void OnConfigChanged()
}
}
-}; // namespace
+} // namespace
namespace CPUThreadConfigCallback
{
@@ -73,4 +73,4 @@ void CheckForConfigChanges()
RunCallbacks();
}
-}; // namespace CPUThreadConfigCallback
+} // namespace CPUThreadConfigCallback
diff --git a/Source/Core/Core/CPUThreadConfigCallback.h b/Source/Core/Core/CPUThreadConfigCallback.h
index 404e522809..02df9583a5 100644
--- a/Source/Core/Core/CPUThreadConfigCallback.h
+++ b/Source/Core/Core/CPUThreadConfigCallback.h
@@ -27,4 +27,4 @@ void RemoveConfigChangedCallback(ConfigChangedCallbackID callback_id);
// Should be called regularly from the CPU thread
void CheckForConfigChanges();
-}; // namespace CPUThreadConfigCallback
+} // namespace CPUThreadConfigCallback
diff --git a/Source/Core/Core/CheatSearch.h b/Source/Core/Core/CheatSearch.h
index d5c990186f..bd3c6f3598 100644
--- a/Source/Core/Core/CheatSearch.h
+++ b/Source/Core/Core/CheatSearch.h
@@ -17,7 +17,7 @@
namespace Core
{
class CPUThreadGuard;
-};
+}
namespace Cheats
{
diff --git a/Source/Core/Core/Debugger/BranchWatch.h b/Source/Core/Core/Debugger/BranchWatch.h
index f3d81854c6..fd4cd158ea 100644
--- a/Source/Core/Core/Debugger/BranchWatch.h
+++ b/Source/Core/Core/Debugger/BranchWatch.h
@@ -142,7 +142,7 @@ public:
m_collection_pf.size();
}
std::size_t GetBlacklistSize() const { return m_blacklist_size; }
- Phase GetRecordingPhase() const { return m_recording_phase; };
+ Phase GetRecordingPhase() const { return m_recording_phase; }
// An empty selection in reduction mode can't be reconstructed when loading from a file.
bool CanSave() const { return !(m_recording_phase == Phase::Reduction && m_selection.empty()); }
diff --git a/Source/Core/Core/Debugger/OSThread.h b/Source/Core/Core/Debugger/OSThread.h
index 309df3eb52..1302b7838c 100644
--- a/Source/Core/Core/Debugger/OSThread.h
+++ b/Source/Core/Core/Debugger/OSThread.h
@@ -13,7 +13,7 @@
namespace Core
{
class CPUThreadGuard;
-};
+}
namespace Core::Debug
{
diff --git a/Source/Core/Core/Debugger/RSO.h b/Source/Core/Core/Debugger/RSO.h
index b1e0ac0a98..6bc1d977a5 100644
--- a/Source/Core/Core/Debugger/RSO.h
+++ b/Source/Core/Core/Debugger/RSO.h
@@ -16,7 +16,7 @@ class PPCSymbolDB;
namespace Core
{
class CPUThreadGuard;
-};
+}
struct RSOEntry
{
diff --git a/Source/Core/Core/GeckoCode.h b/Source/Core/Core/GeckoCode.h
index fe8b391874..ab93e4ffc9 100644
--- a/Source/Core/Core/GeckoCode.h
+++ b/Source/Core/Core/GeckoCode.h
@@ -14,7 +14,7 @@ class PointerWrap;
namespace Core
{
class CPUThreadGuard;
-};
+}
namespace Gecko
{
diff --git a/Source/Core/Core/HLE/HLE_Misc.h b/Source/Core/Core/HLE/HLE_Misc.h
index 68e8a74632..787d5166e0 100644
--- a/Source/Core/Core/HLE/HLE_Misc.h
+++ b/Source/Core/Core/HLE/HLE_Misc.h
@@ -6,7 +6,7 @@
namespace Core
{
class CPUThreadGuard;
-};
+}
namespace HLE_Misc
{
diff --git a/Source/Core/Core/HLE/HLE_OS.h b/Source/Core/Core/HLE/HLE_OS.h
index e53053f923..4f7bcb8ed7 100644
--- a/Source/Core/Core/HLE/HLE_OS.h
+++ b/Source/Core/Core/HLE/HLE_OS.h
@@ -11,7 +11,7 @@
namespace Core
{
class CPUThreadGuard;
-};
+}
namespace HLE_OS
{
diff --git a/Source/Core/Core/HW/AddressSpace.cpp b/Source/Core/Core/HW/AddressSpace.cpp
index 09f006726f..e9fc552d4d 100644
--- a/Source/Core/Core/HW/AddressSpace.cpp
+++ b/Source/Core/Core/HW/AddressSpace.cpp
@@ -120,7 +120,7 @@ struct EffectiveAddressSpaceAccessors : Accessors
float ReadF32(const Core::CPUThreadGuard& guard, u32 address) const override
{
return PowerPC::MMU::HostRead_F32(guard, address);
- };
+ }
bool Matches(const Core::CPUThreadGuard& guard, u32 haystack_start, const u8* needle_start,
std::size_t needle_size) const
diff --git a/Source/Core/Core/HW/Sram.h b/Source/Core/Core/HW/Sram.h
index db8d96b7dc..ff0aee3269 100644
--- a/Source/Core/Core/HW/Sram.h
+++ b/Source/Core/Core/HW/Sram.h
@@ -42,7 +42,7 @@ distribution.
namespace ExpansionInterface
{
enum class Slot : int;
-};
+}
using CardFlashId = std::array<u8, 12>;
diff --git a/Source/Core/Core/HW/WiimoteEmu/Extension/Classic.h b/Source/Core/Core/HW/WiimoteEmu/Extension/Classic.h
index 0b71de80fb..02781ac8ee 100644
--- a/Source/Core/Core/HW/WiimoteEmu/Extension/Classic.h
+++ b/Source/Core/Core/HW/WiimoteEmu/Extension/Classic.h
@@ -72,7 +72,7 @@ public:
using TriggerRawValue = ControllerEmu::RawValue<TriggerType, TRIGGER_BITS>;
// 6-bit X and Y values (0-63)
- auto GetLeftStick() const { return LeftStickRawValue{StickType(lx, ly)}; };
+ auto GetLeftStick() const { return LeftStickRawValue{StickType(lx, ly)}; }
void SetLeftStick(const StickType& value)
{
lx = value.x;
@@ -82,7 +82,7 @@ public:
auto GetRightStick() const
{
return RightStickRawValue{StickType(rx1 | rx2 << 1 | rx3 << 3, ry)};
- };
+ }
void SetRightStick(const StickType& value)
{
rx1 = value.x & 0b1;
diff --git a/Source/Core/Core/HW/WiimoteEmu/MotionPlus.cpp b/Source/Core/Core/HW/WiimoteEmu/MotionPlus.cpp
index 6bbab12dd1..ad5e899c1e 100644
--- a/Source/Core/Core/HW/WiimoteEmu/MotionPlus.cpp
+++ b/Source/Core/Core/HW/WiimoteEmu/MotionPlus.cpp
@@ -30,7 +30,7 @@ struct MPI : mbedtls_mpi
MPI() { mbedtls_mpi_init(this); }
~MPI() { mbedtls_mpi_free(this); }
- mbedtls_mpi* Data() { return this; };
+ mbedtls_mpi* Data() { return this; }
template <std::size_t N>
bool ReadBinary(const u8 (&in_data)[N])
diff --git a/Source/Core/Core/IOS/USB/Bluetooth/BTEmu.cpp b/Source/Core/Core/IOS/USB/Bluetooth/BTEmu.cpp
index 8e1b8b64b3..b0be6bc249 100644
--- a/Source/Core/Core/IOS/USB/Bluetooth/BTEmu.cpp
+++ b/Source/Core/Core/IOS/USB/Bluetooth/BTEmu.cpp
@@ -890,7 +890,7 @@ bool BluetoothEmuDevice::SendEventLinkKeyNotification(const u8 num_to_send)
AddEventToQueue(event);
return true;
-};
+}
bool BluetoothEmuDevice::SendEventRequestLinkKey(const bdaddr_t& bd)
{
@@ -911,7 +911,7 @@ bool BluetoothEmuDevice::SendEventRequestLinkKey(const bdaddr_t& bd)
AddEventToQueue(event);
return true;
-};
+}
bool BluetoothEmuDevice::SendEventReadClockOffsetComplete(u16 connection_handle)
{
diff --git a/Source/Core/Core/PowerPC/CachedInterpreter/CachedInterpreterBlockCache.h b/Source/Core/Core/PowerPC/CachedInterpreter/CachedInterpreterBlockCache.h
index 2e06bafb41..5b34a9cfc9 100644
--- a/Source/Core/Core/PowerPC/CachedInterpreter/CachedInterpreterBlockCache.h
+++ b/Source/Core/Core/PowerPC/CachedInterpreter/CachedInterpreterBlockCache.h
@@ -25,7 +25,7 @@ public:
const std::vector<std::pair<u8*, u8*>>& GetRangesToFree() const
{
return m_ranges_to_free_on_next_codegen;
- };
+ }
private:
void WriteLinkBlock(const JitBlock::LinkData& source, const JitBlock* dest) override;
diff --git a/Source/Core/Core/PowerPC/CachedInterpreter/CachedInterpreterEmitter.h b/Source/Core/Core/PowerPC/CachedInterpreter/CachedInterpreterEmitter.h
index 7c2ee24632..db1a22c413 100644
--- a/Source/Core/Core/PowerPC/CachedInterpreter/CachedInterpreterEmitter.h
+++ b/Source/Core/Core/PowerPC/CachedInterpreter/CachedInterpreterEmitter.h
@@ -49,8 +49,8 @@ public:
const u8* GetCodePtr() const { return m_code; }
u8* GetWritableCodePtr() { return m_code; }
- const u8* GetCodeEnd() const { return m_code_end; };
- u8* GetWritableCodeEnd() { return m_code_end; };
+ const u8* GetCodeEnd() const { return m_code_end; }
+ u8* GetWritableCodeEnd() { return m_code_end; }
// Should be checked after a block of code has been generated to see if the code has been
// successfully written to memory. Do not call the generated code when this returns true!
bool HasWriteFailed() const { return m_write_failed; }
@@ -60,7 +60,7 @@ public:
m_code = begin;
m_code_end = end;
m_write_failed = false;
- };
+ }
static s32 PoisonCallback(PowerPC::PowerPCState& ppc_state, const void* operands);
diff --git a/Source/Core/Core/PowerPC/MMU.h b/Source/Core/Core/PowerPC/MMU.h
index faf6776389..a26fd7f66c 100644
--- a/Source/Core/Core/PowerPC/MMU.h
+++ b/Source/Core/Core/PowerPC/MMU.h
@@ -15,11 +15,11 @@ namespace Core
{
class CPUThreadGuard;
class System;
-}; // namespace Core
+} // namespace Core
namespace Memory
{
class MemoryManager;
-};
+}
namespace PowerPC
{
diff --git a/Source/Core/Core/System.h b/Source/Core/Core/System.h
index a1422ac84d..9ec8391ff0 100644
--- a/Source/Core/Core/System.h
+++ b/Source/Core/Core/System.h
@@ -17,7 +17,7 @@ class XFStateManager;
namespace AudioInterface
{
class AudioInterfaceManager;
-};
+}
namespace CPU
{
class CPUManager;
@@ -42,7 +42,7 @@ class DVDThread;
namespace ExpansionInterface
{
class ExpansionInterfaceManager;
-};
+}
namespace Fifo
{
class FifoManager;
@@ -69,15 +69,15 @@ namespace IOS::HLE::USB
{
class SkylanderPortal;
class InfinityBase;
-}; // namespace IOS::HLE::USB
+} // namespace IOS::HLE::USB
namespace Memory
{
class MemoryManager;
-};
+}
namespace MemoryInterface
{
class MemoryInterfaceManager;
-};
+}
namespace Movie
{
class MovieManager;
@@ -85,7 +85,7 @@ class MovieManager;
namespace PixelEngine
{
class PixelEngineManager;
-};
+}
namespace PowerPC
{
class MMU;
@@ -100,7 +100,7 @@ class ProcessorInterfaceManager;
namespace SerialInterface
{
class SerialInterfaceManager;
-};
+}
namespace SystemTimers
{
class SystemTimersManager;
@@ -112,7 +112,7 @@ class CustomAssetLoader;
namespace VideoInterface
{
class VideoInterfaceManager;
-};
+}
namespace Core
{
diff --git a/Source/Core/DiscIO/CompressedBlob.cpp b/Source/Core/DiscIO/CompressedBlob.cpp
index 629cedfe7c..ce1e210b77 100644
--- a/Source/Core/DiscIO/CompressedBlob.cpp
+++ b/Source/Core/DiscIO/CompressedBlob.cpp
@@ -272,7 +272,7 @@ static ConversionResultCode Output(OutputParameters parameters, File::IOFile* ou
}
return ConversionResultCode::Success;
-};
+}
bool ConvertToGCZ(BlobReader* infile, const std::string& infile_path,
const std::string& outfile_path, u32 sub_type, int block_size,
diff --git a/Source/Core/DiscIO/RiivolutionParser.cpp b/Source/Core/DiscIO/RiivolutionParser.cpp
index 656cd20697..f120335f56 100644
--- a/Source/Core/DiscIO/RiivolutionParser.cpp
+++ b/Source/Core/DiscIO/RiivolutionParser.cpp
@@ -67,7 +67,7 @@ static std::vector<u8> ReadHexString(std::string_view sv)
sv = sv.substr(2);
}
return result;
-};
+}
std::optional<Disc> ParseString(std::string_view xml, std::string xml_path)
{
diff --git a/Source/Core/DiscIO/WIABlob.cpp b/Source/Core/DiscIO/WIABlob.cpp
index a9496fe5a0..92bab36d81 100644
--- a/Source/Core/DiscIO/WIABlob.cpp
+++ b/Source/Core/DiscIO/WIABlob.cpp
@@ -1120,27 +1120,27 @@ bool WIARVZFileReader<RVZ>::TryReuse(std::map<ReuseID, GroupEntry>* reusable_gro
static bool AllAre(const std::vector<u8>& data, u8 x)
{
return std::all_of(data.begin(), data.end(), [x](u8 y) { return x == y; });
-};
+}
static bool AllAre(const u8* begin, const u8* end, u8 x)
{
return std::all_of(begin, end, [x](u8 y) { return x == y; });
-};
+}
static bool AllZero(const std::vector<u8>& data)
{
return AllAre(data, 0);
-};
+}
static bool AllSame(const std::vector<u8>& data)
{
return AllAre(data, data.front());
-};
+}
static bool AllSame(const u8* begin, const u8* end)
{
return AllAre(begin, end, *begin);
-};
+}
template <typename OutputParametersEntry>
static void RVZPack(const u8* in, OutputParametersEntry* out, u64 bytes_per_chunk, size_t chunks,
diff --git a/Source/Core/DiscIO/WIACompression.h b/Source/Core/DiscIO/WIACompression.h
index d3d5cb34d7..42f4a7fa19 100644
--- a/Source/Core/DiscIO/WIACompression.h
+++ b/Source/Core/DiscIO/WIACompression.h
@@ -38,7 +38,7 @@ public:
virtual bool Decompress(const DecompressionBuffer& in, DecompressionBuffer* out,
size_t* in_bytes_read) = 0;
- virtual bool Done() const { return m_done; };
+ virtual bool Done() const { return m_done; }
protected:
bool m_done = false;
diff --git a/Source/Core/DolphinQt/Debugger/WatchWidget.h b/Source/Core/DolphinQt/Debugger/WatchWidget.h
index 62e5c7b42a..a3256ecd94 100644
--- a/Source/Core/DolphinQt/Debugger/WatchWidget.h
+++ b/Source/Core/DolphinQt/Debugger/WatchWidget.h
@@ -18,7 +18,7 @@ namespace Core
{
class CPUThreadGuard;
class System;
-}; // namespace Core
+} // namespace Core
class WatchWidget : public QDockWidget
{
diff --git a/Source/Core/DolphinQt/GCMemcardManager.cpp b/Source/Core/DolphinQt/GCMemcardManager.cpp
index 2bdca764ab..a3d19b5d57 100644
--- a/Source/Core/DolphinQt/GCMemcardManager.cpp
+++ b/Source/Core/DolphinQt/GCMemcardManager.cpp
@@ -65,7 +65,7 @@ Slot OtherSlot(Slot slot)
{
return slot == Slot::A ? Slot::B : Slot::A;
}
-}; // namespace
+} // namespace
struct GCMemcardManager::IconAnimationData
{
diff --git a/Source/Core/DolphinQt/InfinityBase/InfinityBaseWindow.cpp b/Source/Core/DolphinQt/InfinityBase/InfinityBaseWindow.cpp
index aaf8af80e1..7503676673 100644
--- a/Source/Core/DolphinQt/InfinityBase/InfinityBaseWindow.cpp
+++ b/Source/Core/DolphinQt/InfinityBase/InfinityBaseWindow.cpp
@@ -50,7 +50,7 @@ InfinityBaseWindow::InfinityBaseWindow(QWidget* parent) : QWidget(parent)
installEventFilter(this);
OnEmulationStateChanged(Core::GetState(Core::System::GetInstance()));
-};
+}
InfinityBaseWindow::~InfinityBaseWindow() = default;
diff --git a/Source/Core/DolphinQt/MenuBar.h b/Source/Core/DolphinQt/MenuBar.h
index b6620291d2..91c2bfb766 100644
--- a/Source/Core/DolphinQt/MenuBar.h
+++ b/Source/Core/DolphinQt/MenuBar.h
@@ -24,7 +24,7 @@ enum class State;
namespace DiscIO
{
enum class Region;
-};
+}
namespace UICommon
{
diff --git a/Source/Core/DolphinQt/SkylanderPortal/SkylanderPortalWindow.cpp b/Source/Core/DolphinQt/SkylanderPortal/SkylanderPortalWindow.cpp
index f8b29a5674..613e4cb787 100644
--- a/Source/Core/DolphinQt/SkylanderPortal/SkylanderPortalWindow.cpp
+++ b/Source/Core/DolphinQt/SkylanderPortal/SkylanderPortalWindow.cpp
@@ -81,7 +81,7 @@ SkylanderPortalWindow::SkylanderPortalWindow(QWidget* parent) : QWidget(parent)
m_collection_path = QDir::toNativeSeparators(skylanders_folder.path()) + QDir::separator();
m_last_skylander_path = m_collection_path;
m_path_edit->setText(m_collection_path);
-};
+}
SkylanderPortalWindow::~SkylanderPortalWindow() = default;
diff --git a/Source/Core/InputCommon/ControlReference/ExpressionParser.cpp b/Source/Core/InputCommon/ControlReference/ExpressionParser.cpp
index 2e2adab6c0..b558d6b78f 100644
--- a/Source/Core/InputCommon/ControlReference/ExpressionParser.cpp
+++ b/Source/Core/InputCommon/ControlReference/ExpressionParser.cpp
@@ -283,7 +283,7 @@ public:
m_output = env.FindOutput(m_qualifier);
}
- Device::Input* GetInput() const { return m_input; };
+ Device::Input* GetInput() const { return m_input; }
private:
// Keep a shared_ptr to the device so the control pointer doesn't become invalid.
diff --git a/Source/Core/InputCommon/ControllerEmu/StickGate.h b/Source/Core/InputCommon/ControllerEmu/StickGate.h
index c618a0a4b4..000ca993f7 100644
--- a/Source/Core/InputCommon/ControllerEmu/StickGate.h
+++ b/Source/Core/InputCommon/ControllerEmu/StickGate.h
@@ -87,7 +87,7 @@ public:
ControlState GetDeadzonePercentage() const;
- virtual ControlState GetVirtualNotchSize() const { return 0.0; };
+ virtual ControlState GetVirtualNotchSize() const { return 0.0; }
virtual ControlState GetGateRadiusAtAngle(double angle) const = 0;
virtual ReshapeData GetReshapableState(bool adjusted) const = 0;
diff --git a/Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp b/Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp
index feb1f8f4ce..0dfcd51281 100644
--- a/Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp
+++ b/Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp
@@ -244,10 +244,12 @@ private:
public:
MotionInput(std::string name, SDL_GameController* gc, SDL_SensorType type, int index,
ControlState scale)
- : m_name(std::move(name)), m_gc(gc), m_type(type), m_index(index), m_scale(scale){};
+ : m_name(std::move(name)), m_gc(gc), m_type(type), m_index(index), m_scale(scale)
+ {
+ }
- std::string GetName() const override { return m_name; };
- bool IsDetectable() const override { return false; };
+ std::string GetName() const override { return m_name; }
+ bool IsDetectable() const override { return false; }
ControlState GetState() const override;
private:
diff --git a/Source/Core/VideoBackends/D3D/D3DBoundingBox.cpp b/Source/Core/VideoBackends/D3D/D3DBoundingBox.cpp
index 8cab19ac95..b972b9dd6f 100644
--- a/Source/Core/VideoBackends/D3D/D3DBoundingBox.cpp
+++ b/Source/Core/VideoBackends/D3D/D3DBoundingBox.cpp
@@ -99,4 +99,4 @@ void D3DBoundingBox::Write(u32 index, std::span<const BBoxType> values)
D3D::context->UpdateSubresource(m_buffer.Get(), 0, &box, values.data(), 0, 0);
}
-}; // namespace DX11
+} // namespace DX11
diff --git a/Source/Core/VideoBackends/D3D12/D3D12BoundingBox.cpp b/Source/Core/VideoBackends/D3D12/D3D12BoundingBox.cpp
index a26c4e8160..f5d0ebdd00 100644
--- a/Source/Core/VideoBackends/D3D12/D3D12BoundingBox.cpp
+++ b/Source/Core/VideoBackends/D3D12/D3D12BoundingBox.cpp
@@ -125,4 +125,4 @@ bool D3D12BoundingBox::CreateBuffers()
return true;
}
-}; // namespace DX12
+} // namespace DX12
diff --git a/Source/Core/VideoCommon/BPFunctions.cpp b/Source/Core/VideoCommon/BPFunctions.cpp
index 6f9948a68e..ecb045e6ad 100644
--- a/Source/Core/VideoCommon/BPFunctions.cpp
+++ b/Source/Core/VideoCommon/BPFunctions.cpp
@@ -442,4 +442,4 @@ void SetInterlacingMode(const BPCmd& bp)
break;
}
}
-}; // namespace BPFunctions
+} // namespace BPFunctions
diff --git a/Source/Core/VideoCommon/OnScreenDisplay.h b/Source/Core/VideoCommon/OnScreenDisplay.h
index 33d8662744..2819de5285 100644
--- a/Source/Core/VideoCommon/OnScreenDisplay.h
+++ b/Source/Core/VideoCommon/OnScreenDisplay.h
@@ -30,14 +30,14 @@ constexpr u32 CYAN = 0xFF00FFFF;
constexpr u32 GREEN = 0xFF00FF00;
constexpr u32 RED = 0xFFFF0000;
constexpr u32 YELLOW = 0xFFFFFF30;
-}; // namespace Color
+} // namespace Color
namespace Duration
{
constexpr u32 SHORT = 2000;
constexpr u32 NORMAL = 5000;
constexpr u32 VERY_LONG = 10000;
-}; // namespace Duration
+} // namespace Duration
// On-screen message display (colored yellow by default)
void AddMessage(std::string message, u32 ms = Duration::SHORT, u32 argb = Color::YELLOW,
diff --git a/Source/Core/VideoCommon/VertexLoaderManager.h b/Source/Core/VideoCommon/VertexLoaderManager.h
index b50beae0a5..ce8b6a22d1 100644
--- a/Source/Core/VideoCommon/VertexLoaderManager.h
+++ b/Source/Core/VideoCommon/VertexLoaderManager.h
@@ -18,7 +18,7 @@ struct PortableVertexDeclaration;
namespace OpcodeDecoder
{
enum class Primitive : u8;
-};
+}
namespace VertexLoaderManager
{
diff --git a/Source/Core/VideoCommon/VertexManagerBase.h b/Source/Core/VideoCommon/VertexManagerBase.h
index af0f694a01..648e26be59 100644
--- a/Source/Core/VideoCommon/VertexManagerBase.h
+++ b/Source/Core/VideoCommon/VertexManagerBase.h
@@ -45,7 +45,7 @@ enum TexelBufferFormat : u32
namespace OpcodeDecoder
{
enum class Primitive : u8;
-};
+}
class VertexManagerBase
{
diff --git a/Source/Core/WinUpdater/WinUI.cpp b/Source/Core/WinUpdater/WinUI.cpp
index 696ac55b0a..0a32848016 100644
--- a/Source/Core/WinUpdater/WinUI.cpp
+++ b/Source/Core/WinUpdater/WinUI.cpp
@@ -47,7 +47,7 @@ LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
}
return DefWindowProc(hwnd, uMsg, wParam, lParam);
}
-}; // namespace
+} // namespace
constexpr int PROGRESSBAR_FLAGS = WS_VISIBLE | WS_CHILD | PBS_SMOOTH | PBS_SMOOTHREVERSE;
constexpr int WINDOW_FLAGS = WS_CLIPCHILDREN;
@@ -305,4 +305,4 @@ void SetVisible(bool visible)
ShowWindow(window_handle, visible ? SW_SHOW : SW_HIDE);
}
-}; // namespace UI
+} // namespace UI