瀏覽代碼

Everywhere: Remove needless trailing semi-colons after functions

This is a new option in clang-format-16.
Timothy Flynn 2 年之前
父節點
當前提交
c911781c21
共有 100 個文件被更改,包括 166 次插入164 次删除
  1. 1 0
      .clang-format
  2. 1 1
      AK/SinglyLinkedList.h
  3. 1 1
      AK/StdLibExtraDetails.h
  4. 7 7
      AK/Time.h
  5. 1 1
      AK/URL.h
  6. 1 1
      Kernel/Arch/aarch64/RPi/Timer.cpp
  7. 1 1
      Kernel/Arch/x86_64/Interrupts/IOAPIC.h
  8. 1 1
      Kernel/Arch/x86_64/Processor.cpp
  9. 1 1
      Kernel/Bus/PCI/Definitions.h
  10. 1 1
      Kernel/Bus/PCI/Device.h
  11. 1 1
      Kernel/Devices/GPU/Console/VGATextModeConsole.h
  12. 1 1
      Kernel/Devices/GPU/Management.h
  13. 1 1
      Kernel/Devices/Storage/ATA/AHCI/Definitions.h
  14. 2 2
      Kernel/Devices/Storage/ATA/AHCI/Port.h
  15. 2 2
      Kernel/Devices/Storage/ATA/ATAPort.cpp
  16. 1 1
      Kernel/Devices/Storage/ATA/GenericIDE/Channel.h
  17. 2 2
      Kernel/Devices/Storage/NVMe/NVMeController.h
  18. 1 1
      Kernel/Devices/Storage/NVMe/NVMeInterruptQueue.h
  19. 1 1
      Kernel/Devices/Storage/NVMe/NVMeNameSpace.h
  20. 1 1
      Kernel/Devices/Storage/NVMe/NVMeQueue.h
  21. 1 1
      Kernel/FileSystem/BlockBasedFileSystem.h
  22. 1 1
      Kernel/FileSystem/FATFS/FileSystem.h
  23. 1 1
      Kernel/FileSystem/Inode.h
  24. 1 1
      Kernel/FileSystem/InodeWatcher.h
  25. 2 2
      Kernel/FileSystem/SysFS/Component.h
  26. 1 1
      Kernel/Heap/Heap.h
  27. 2 2
      Kernel/Interrupts/GenericInterruptHandler.h
  28. 2 2
      Kernel/Memory/Region.h
  29. 1 1
      Kernel/Memory/RingBuffer.h
  30. 5 5
      Kernel/Net/IPv4SocketTuple.h
  31. 1 1
      Kernel/Net/Intel/E1000NetworkAdapter.h
  32. 1 1
      Kernel/Security/Credentials.h
  33. 1 1
      Kernel/Syscalls/execve.cpp
  34. 1 1
      Kernel/Syscalls/realpath.cpp
  35. 13 12
      Kernel/Syscalls/uname.cpp
  36. 1 1
      Kernel/Tasks/FinalizerTask.cpp
  37. 1 1
      Kernel/Tasks/Process.cpp
  38. 3 3
      Kernel/Tasks/Process.h
  39. 1 1
      Kernel/Tasks/Thread.h
  40. 1 1
      Kernel/Time/TimerQueue.h
  41. 1 1
      Ladybird/Tab.h
  42. 1 1
      Meta/Lagom/Wasm/js_repl.cpp
  43. 3 3
      Tests/AK/TestCircularBuffer.cpp
  44. 2 2
      Tests/AK/TestOptional.cpp
  45. 1 1
      Tests/AK/TestTypeTraits.cpp
  46. 1 1
      Tests/LibCore/TestLibCoreArgsParser.cpp
  47. 1 1
      Userland/Applets/Audio/main.cpp
  48. 2 2
      Userland/Applications/3DFileViewer/main.cpp
  49. 1 1
      Userland/Applications/AnalogClock/AnalogClock.cpp
  50. 3 3
      Userland/Applications/Browser/ElementSizePreviewWidget.h
  51. 1 1
      Userland/Applications/DisplaySettings/ThemesSettingsWidget.cpp
  52. 1 1
      Userland/Applications/Magnifier/MagnifierWidget.h
  53. 1 1
      Userland/Applications/Piano/TrackManager.h
  54. 1 1
      Userland/Applications/PixelPaint/Guide.h
  55. 1 1
      Userland/Applications/PixelPaint/ImageEditor.h
  56. 1 1
      Userland/Applications/PixelPaint/Tools/Tool.h
  57. 1 1
      Userland/Applications/SpaceAnalyzer/Tree.h
  58. 1 1
      Userland/Applications/Spreadsheet/ImportDialog.cpp
  59. 1 1
      Userland/Applications/Spreadsheet/SpreadsheetView.h
  60. 3 3
      Userland/Applications/SystemMonitor/ThreadStackWidget.cpp
  61. 2 2
      Userland/DevTools/GMLPlayground/MainWidget.cpp
  62. 1 1
      Userland/DevTools/HackStudio/Git/GitWidget.h
  63. 1 1
      Userland/DevTools/HackStudio/HackStudioWidget.cpp
  64. 1 1
      Userland/DevTools/Profiler/FilesystemEventModel.h
  65. 1 1
      Userland/DevTools/Profiler/PercentageFormatting.h
  66. 1 1
      Userland/DevTools/Profiler/Profile.h
  67. 1 1
      Userland/DevTools/UserspaceEmulator/Region.h
  68. 2 2
      Userland/DevTools/UserspaceEmulator/SoftCPU.cpp
  69. 1 1
      Userland/DevTools/UserspaceEmulator/SoftCPU.h
  70. 5 5
      Userland/DevTools/UserspaceEmulator/SoftFPU.cpp
  71. 1 1
      Userland/Games/2048/Game.cpp
  72. 7 7
      Userland/Games/Chess/ChessWidget.h
  73. 1 1
      Userland/Games/GameOfLife/Pattern.h
  74. 1 1
      Userland/Games/Hearts/Game.cpp
  75. 1 1
      Userland/Libraries/LibArchive/TarStream.h
  76. 2 2
      Userland/Libraries/LibAudio/Loader.h
  77. 1 1
      Userland/Libraries/LibC/stdlib.cpp
  78. 1 1
      Userland/Libraries/LibCards/Card.h
  79. 1 1
      Userland/Libraries/LibCodeComprehension/Types.h
  80. 5 5
      Userland/Libraries/LibCompress/DeflateTables.h
  81. 1 1
      Userland/Libraries/LibCompress/Lzma.cpp
  82. 1 1
      Userland/Libraries/LibCore/Account.h
  83. 1 1
      Userland/Libraries/LibCore/ArgsParser.h
  84. 1 1
      Userland/Libraries/LibCore/Debounce.h
  85. 1 1
      Userland/Libraries/LibCore/DirectoryEntry.cpp
  86. 2 2
      Userland/Libraries/LibCore/Socket.h
  87. 1 1
      Userland/Libraries/LibCore/UDPServer.h
  88. 1 1
      Userland/Libraries/LibCpp/AST.h
  89. 2 2
      Userland/Libraries/LibCpp/SemanticSyntaxHighlighter.h
  90. 1 1
      Userland/Libraries/LibCrypto/BigFraction/BigFraction.cpp
  91. 1 1
      Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.h
  92. 1 1
      Userland/Libraries/LibCrypto/Checksum/Adler32.cpp
  93. 3 3
      Userland/Libraries/LibCrypto/Checksum/CRC32.cpp
  94. 5 5
      Userland/Libraries/LibCrypto/Cipher/AES.h
  95. 1 1
      Userland/Libraries/LibCrypto/Cipher/Cipher.h
  96. 1 1
      Userland/Libraries/LibCrypto/Curves/Ed25519.cpp
  97. 4 4
      Userland/Libraries/LibCrypto/Hash/MD5.cpp
  98. 1 1
      Userland/Libraries/LibDSP/ProcessorParameter.h
  99. 1 1
      Userland/Libraries/LibEDID/EDID.h
  100. 1 1
      Userland/Libraries/LibELF/DynamicLoader.h

+ 1 - 0
.clang-format

@@ -16,6 +16,7 @@ InsertNewlineAtEOF: true
 LineEnding: LF
 NamespaceIndentation: None
 QualifierAlignment: Right
+RemoveSemicolon: true
 RequiresClausePosition: WithFollowing
 RequiresExpressionIndentation: OuterScope
 SpaceAfterTemplateKeyword: false

+ 1 - 1
AK/SinglyLinkedList.h

@@ -47,7 +47,7 @@ public:
     {
         m_removed = true;
         list.remove(*this);
-    };
+    }
 
 private:
     friend ListType;

+ 1 - 1
AK/StdLibExtraDetails.h

@@ -448,7 +448,7 @@ inline constexpr bool IsFundamental = IsArithmetic<T> || IsVoid<T> || IsNullPoin
 template<typename T, T... Ts>
 struct IntegerSequence {
     using Type = T;
-    static constexpr unsigned size() noexcept { return sizeof...(Ts); };
+    static constexpr unsigned size() noexcept { return sizeof...(Ts); }
 };
 
 template<unsigned... Indices>

+ 7 - 7
AK/Time.h

@@ -221,9 +221,9 @@ public:
     [[nodiscard]] static Duration from_timespec(const struct timespec&);
     [[nodiscard]] static Duration from_timeval(const struct timeval&);
     // We don't pull in <stdint.h> for the pretty min/max definitions because this file is also included in the Kernel
-    [[nodiscard]] constexpr static Duration min() { return Duration(-__INT64_MAX__ - 1LL, 0); };
-    [[nodiscard]] constexpr static Duration zero() { return Duration(0, 0); };
-    [[nodiscard]] constexpr static Duration max() { return Duration(__INT64_MAX__, 999'999'999); };
+    [[nodiscard]] constexpr static Duration min() { return Duration(-__INT64_MAX__ - 1LL, 0); }
+    [[nodiscard]] constexpr static Duration zero() { return Duration(0, 0); }
+    [[nodiscard]] constexpr static Duration max() { return Duration(__INT64_MAX__, 999'999'999); }
 
     // Truncates towards zero (2.8s to 2s, -2.8s to -2s).
     [[nodiscard]] i64 to_truncated_seconds() const;
@@ -433,15 +433,15 @@ public:
     [[nodiscard]] i64 truncated_seconds_since_epoch() const { return m_offset.to_truncated_seconds(); }
 
     // Offsetting a UNIX time by a duration yields another UNIX time.
-    constexpr UnixDateTime operator+(Duration const& other) const { return UnixDateTime { m_offset + other }; };
+    constexpr UnixDateTime operator+(Duration const& other) const { return UnixDateTime { m_offset + other }; }
     constexpr UnixDateTime& operator+=(Duration const& other)
     {
         this->m_offset = this->m_offset + other;
         return *this;
-    };
-    constexpr UnixDateTime operator-(Duration const& other) const { return UnixDateTime { m_offset - other }; };
+    }
+    constexpr UnixDateTime operator-(Duration const& other) const { return UnixDateTime { m_offset - other }; }
     // Subtracting two UNIX times yields their time difference.
-    constexpr Duration operator-(UnixDateTime const& other) const { return m_offset - other.m_offset; };
+    constexpr Duration operator-(UnixDateTime const& other) const { return m_offset - other.m_offset; }
 
 #ifndef KERNEL
     [[nodiscard]] static UnixDateTime now();

+ 1 - 1
AK/URL.h

@@ -115,7 +115,7 @@ public:
     static URL create_with_url_or_path(DeprecatedString const&);
     static URL create_with_file_scheme(DeprecatedString const& path, DeprecatedString const& fragment = {}, DeprecatedString const& hostname = {});
     static URL create_with_help_scheme(DeprecatedString const& path, DeprecatedString const& fragment = {}, DeprecatedString const& hostname = {});
-    static URL create_with_data(DeprecatedString mime_type, DeprecatedString payload, bool is_base64 = false) { return URL(move(mime_type), move(payload), is_base64); };
+    static URL create_with_data(DeprecatedString mime_type, DeprecatedString payload, bool is_base64 = false) { return URL(move(mime_type), move(payload), is_base64); }
 
     static bool scheme_requires_port(StringView);
     static u16 default_port_for_scheme(StringView);

+ 1 - 1
Kernel/Arch/aarch64/RPi/Timer.cpp

@@ -67,7 +67,7 @@ bool Timer::handle_irq(RegisterState const& regs)
     clear_interrupt(TimerID::Timer1);
 
     return result;
-};
+}
 
 u64 Timer::update_time(u64& seconds_since_boot, u32& ticks_this_second, bool query_only)
 {

+ 1 - 1
Kernel/Arch/x86_64/Interrupts/IOAPIC.h

@@ -51,7 +51,7 @@ public:
     virtual u16 get_irr() const override;
     virtual u32 gsi_base() const override { return m_gsi_base; }
     virtual size_t interrupt_vectors_count() const override { return m_redirection_entries_count; }
-    virtual StringView model() const override { return "IOAPIC"sv; };
+    virtual StringView model() const override { return "IOAPIC"sv; }
     virtual IRQControllerType type() const override { return IRQControllerType::i82093AA; }
 
 private:

+ 1 - 1
Kernel/Arch/x86_64/Processor.cpp

@@ -1538,7 +1538,7 @@ NAKED void thread_context_first_enter(void)
         "    cld \n"
         "    call context_first_init \n"
         "    jmp common_trap_exit \n");
-};
+}
 
 NAKED void do_assume_context(Thread*, u32)
 {

+ 1 - 1
Kernel/Bus/PCI/Definitions.h

@@ -374,7 +374,7 @@ public:
     u32 get_msix_table_offset() const { return m_msix_info.table_offset; }
 
     bool is_msi_capable() const { return m_msi_info.count > 0; }
-    bool is_msi_64bit_address_format() { return m_msi_info.message_address_64_bit_format; };
+    bool is_msi_64bit_address_format() { return m_msi_info.message_address_64_bit_format; }
 
     Spinlock<LockRank::None>& operation_lock() { return m_operation_lock; }
     Spinlock<LockRank::None>& operation_lock() const { return m_operation_lock; }

+ 1 - 1
Kernel/Bus/PCI/Device.h

@@ -35,7 +35,7 @@ struct [[gnu::packed]] MSIxTableEntry {
 
 class Device {
 public:
-    DeviceIdentifier const& device_identifier() const { return *m_pci_identifier; };
+    DeviceIdentifier const& device_identifier() const { return *m_pci_identifier; }
 
     virtual ~Device() = default;
 

+ 1 - 1
Kernel/Devices/GPU/Console/VGATextModeConsole.h

@@ -14,7 +14,7 @@ namespace Kernel::Graphics {
 class VGATextModeConsole final : public Console {
 public:
     static NonnullLockRefPtr<VGATextModeConsole> initialize();
-    virtual size_t chars_per_line() const override { return width(); };
+    virtual size_t chars_per_line() const override { return width(); }
 
     virtual bool has_hardware_cursor() const override { return true; }
     virtual bool is_hardware_paged_capable() const override { return true; }

+ 1 - 1
Kernel/Devices/GPU/Management.h

@@ -30,7 +30,7 @@ public:
     static bool is_initialized();
     bool initialize();
 
-    unsigned allocate_minor_device_number() { return m_current_minor_number++; };
+    unsigned allocate_minor_device_number() { return m_current_minor_number++; }
     GraphicsManagement();
 
     void attach_new_display_connector(Badge<DisplayConnector>, DisplayConnector&);

+ 1 - 1
Kernel/Devices/Storage/ATA/AHCI/Definitions.h

@@ -177,7 +177,7 @@ public:
         return indices;
     }
 
-    u32 bit_mask() const { return m_bit_mask; };
+    u32 bit_mask() const { return m_bit_mask; }
 
     // Disable default implementations that would use surprising integer promotion.
     bool operator==(MaskedBitField const&) const = delete;

+ 2 - 2
Kernel/Devices/Storage/ATA/AHCI/Port.h

@@ -42,7 +42,7 @@ public:
     u32 port_index() const { return m_port_index; }
     u32 representative_port_index() const { return port_index() + 1; }
     bool is_operable() const;
-    bool is_atapi_attached() const { return m_port_registers.sig == (u32)ATA::DeviceSignature::ATAPI; };
+    bool is_atapi_attached() const { return m_port_registers.sig == (u32)ATA::DeviceSignature::ATAPI; }
 
     LockRefPtr<StorageDevice> connected_device() const { return m_connected_device; }
 
@@ -96,7 +96,7 @@ private:
 
     Optional<u8> try_to_find_unused_command_header();
 
-    ALWAYS_INLINE bool is_interface_disabled() const { return (m_port_registers.ssts & 0xf) == 4; };
+    ALWAYS_INLINE bool is_interface_disabled() const { return (m_port_registers.ssts & 0xf) == 4; }
 
     ALWAYS_INLINE void wait_until_condition_met_or_timeout(size_t delay_in_microseconds, size_t retries, Function<bool(void)> condition_being_met) const;
 

+ 2 - 2
Kernel/Devices/Storage/ATA/ATAPort.cpp

@@ -24,7 +24,7 @@ public:
     ~ATAPortInterruptDisabler()
     {
         (void)m_port->enable_interrupts();
-    };
+    }
 
 private:
     LockRefPtr<ATAPort> m_port;
@@ -40,7 +40,7 @@ public:
     ~ATAPortInterruptCleaner()
     {
         (void)m_port->force_clear_interrupts();
-    };
+    }
 
 private:
     LockRefPtr<ATAPort> m_port;

+ 1 - 1
Kernel/Devices/Storage/ATA/GenericIDE/Channel.h

@@ -77,7 +77,7 @@ public:
         bool operator<(IOWindowGroup const&) const = delete;
         bool operator>(IOWindowGroup const&) const = delete;
 
-        IOWindow& io_window() const { return *m_io_window; };
+        IOWindow& io_window() const { return *m_io_window; }
         IOWindow& control_window() const { return *m_control_window; }
         IOWindow* bus_master_window() const { return m_bus_master_window.ptr(); }
 

+ 2 - 2
Kernel/Devices/Storage/NVMe/NVMeController.h

@@ -51,8 +51,8 @@ public:
         return 0;
     }
 
-    bool is_admin_queue_ready() { return m_admin_queue_ready; };
-    void set_admin_queue_ready_flag() { m_admin_queue_ready = true; };
+    bool is_admin_queue_ready() { return m_admin_queue_ready; }
+    void set_admin_queue_ready_flag() { m_admin_queue_ready = true; }
 
 private:
     NVMeController(PCI::DeviceIdentifier const&, u32 hardware_relative_controller_id);

+ 1 - 1
Kernel/Devices/Storage/NVMe/NVMeInterruptQueue.h

@@ -17,7 +17,7 @@ public:
     static ErrorOr<NonnullLockRefPtr<NVMeInterruptQueue>> try_create(PCI::Device& device, NonnullOwnPtr<Memory::Region> rw_dma_region, NonnullRefPtr<Memory::PhysicalPage> rw_dma_page, u16 qid, u8 irq, u32 q_depth, OwnPtr<Memory::Region> cq_dma_region, OwnPtr<Memory::Region> sq_dma_region, Memory::TypedMapping<DoorbellRegister volatile> db_regs);
     void submit_sqe(NVMeSubmission& submission) override;
     virtual ~NVMeInterruptQueue() override {};
-    virtual StringView purpose() const override { return "NVMe"sv; };
+    virtual StringView purpose() const override { return "NVMe"sv; }
     void initialize_interrupt_queue();
 
 protected:

+ 1 - 1
Kernel/Devices/Storage/NVMe/NVMeNameSpace.h

@@ -25,7 +25,7 @@ class NVMeNameSpace : public StorageDevice {
 public:
     static ErrorOr<NonnullLockRefPtr<NVMeNameSpace>> try_create(NVMeController const&, Vector<NonnullLockRefPtr<NVMeQueue>> queues, u16 nsid, size_t storage_size, size_t lba_size);
 
-    CommandSet command_set() const override { return CommandSet::NVMe; };
+    CommandSet command_set() const override { return CommandSet::NVMe; }
     void start_request(AsyncBlockDeviceRequest& request) override;
 
 private:

+ 1 - 1
Kernel/Devices/Storage/NVMe/NVMeQueue.h

@@ -43,7 +43,7 @@ class NVMeController;
 class NVMeQueue : public AtomicRefCounted<NVMeQueue> {
 public:
     static ErrorOr<NonnullLockRefPtr<NVMeQueue>> try_create(NVMeController& device, u16 qid, u8 irq, u32 q_depth, OwnPtr<Memory::Region> cq_dma_region, OwnPtr<Memory::Region> sq_dma_region, Memory::TypedMapping<DoorbellRegister volatile> db_regs, QueueType queue_type);
-    bool is_admin_queue() { return m_admin_queue; };
+    bool is_admin_queue() { return m_admin_queue; }
     u16 submit_sync_sqe(NVMeSubmission&);
     void read(AsyncBlockDeviceRequest& request, u16 nsid, u64 index, u32 count);
     void write(AsyncBlockDeviceRequest& request, u16 nsid, u64 index, u32 count);

+ 1 - 1
Kernel/FileSystem/BlockBasedFileSystem.h

@@ -17,7 +17,7 @@ public:
 
     virtual ~BlockBasedFileSystem() override;
 
-    u64 logical_block_size() const { return m_logical_block_size; };
+    u64 logical_block_size() const { return m_logical_block_size; }
 
     virtual void flush_writes() override;
     void flush_writes_impl();

+ 1 - 1
Kernel/FileSystem/FATFS/FileSystem.h

@@ -41,7 +41,7 @@ private:
 
     static constexpr u32 first_data_cluster = 2;
 
-    FAT32BootRecord const* boot_record() const { return reinterpret_cast<FAT32BootRecord const*>(m_boot_record->data()); };
+    FAT32BootRecord const* boot_record() const { return reinterpret_cast<FAT32BootRecord const*>(m_boot_record->data()); }
 
     BlockBasedFileSystem::BlockIndex first_block_of_cluster(u32 cluster) const;
 

+ 1 - 1
Kernel/FileSystem/Inode.h

@@ -107,7 +107,7 @@ public:
     ErrorOr<void> apply_flock(Process const&, OpenFileDescription const&, Userspace<flock const*>, ShouldBlock);
     ErrorOr<void> get_flock(OpenFileDescription const&, Userspace<flock*>) const;
     void remove_flocks_for_description(OpenFileDescription const&);
-    Thread::FlockBlockerSet& flock_blocker_set() { return m_flock_blocker_set; };
+    Thread::FlockBlockerSet& flock_blocker_set() { return m_flock_blocker_set; }
 
 protected:
     Inode(FileSystem&, InodeIndex);

+ 1 - 1
Kernel/FileSystem/InodeWatcher.h

@@ -53,7 +53,7 @@ public:
     virtual ErrorOr<void> close() override;
 
     virtual ErrorOr<NonnullOwnPtr<KString>> pseudo_path(OpenFileDescription const&) const override;
-    virtual StringView class_name() const override { return "InodeWatcher"sv; };
+    virtual StringView class_name() const override { return "InodeWatcher"sv; }
     virtual bool is_inode_watcher() const override { return true; }
 
     void notify_inode_event(Badge<Inode>, InodeIdentifier, InodeWatcherEvent::Type, StringView name = {});

+ 2 - 2
Kernel/FileSystem/SysFS/Component.h

@@ -31,7 +31,7 @@ public:
     virtual StringView name() const = 0;
     virtual ErrorOr<size_t> read_bytes(off_t, size_t, UserOrKernelBuffer&, OpenFileDescription*) const { return Error::from_errno(ENOTIMPL); }
     virtual ErrorOr<void> traverse_as_directory(FileSystemID, Function<ErrorOr<void>(FileSystem::DirectoryEntryView const&)>) const { VERIFY_NOT_REACHED(); }
-    virtual RefPtr<SysFSComponent> lookup(StringView) { VERIFY_NOT_REACHED(); };
+    virtual RefPtr<SysFSComponent> lookup(StringView) { VERIFY_NOT_REACHED(); }
     virtual mode_t permissions() const;
     virtual ErrorOr<void> truncate(u64) { return EPERM; }
     virtual size_t size() const { return 0; }
@@ -40,7 +40,7 @@ public:
 
     virtual ErrorOr<NonnullRefPtr<SysFSInode>> to_inode(SysFS const&) const;
 
-    InodeIndex component_index() const { return m_component_index; };
+    InodeIndex component_index() const { return m_component_index; }
 
     virtual ~SysFSComponent() = default;
 

+ 1 - 1
Kernel/Heap/Heap.h

@@ -156,7 +156,7 @@ public:
 
     size_t total_chunks() const { return m_total_chunks; }
     size_t total_bytes() const { return m_total_chunks * CHUNK_SIZE; }
-    size_t free_chunks() const { return m_total_chunks - m_allocated_chunks; };
+    size_t free_chunks() const { return m_total_chunks - m_allocated_chunks; }
     size_t free_bytes() const { return free_chunks() * CHUNK_SIZE; }
     size_t allocated_chunks() const { return m_allocated_chunks; }
     size_t allocated_bytes() const { return m_allocated_chunks * CHUNK_SIZE; }

+ 2 - 2
Kernel/Interrupts/GenericInterruptHandler.h

@@ -48,8 +48,8 @@ public:
 
     virtual bool eoi() = 0;
     void increment_call_count();
-    void set_reserved() { m_reserved = true; };
-    bool reserved() const { return m_reserved; };
+    void set_reserved() { m_reserved = true; }
+    bool reserved() const { return m_reserved; }
 
 protected:
     void change_interrupt_number(u8 number);

+ 2 - 2
Kernel/Memory/Region.h

@@ -207,8 +207,8 @@ public:
     [[nodiscard]] bool mmapped_from_readable() const { return m_mmapped_from_readable; }
     [[nodiscard]] bool mmapped_from_writable() const { return m_mmapped_from_writable; }
 
-    void start_handling_page_fault(Badge<MemoryManager>) { m_in_progress_page_faults++; };
-    void finish_handling_page_fault(Badge<MemoryManager>) { m_in_progress_page_faults--; };
+    void start_handling_page_fault(Badge<MemoryManager>) { m_in_progress_page_faults++; }
+    void finish_handling_page_fault(Badge<MemoryManager>) { m_in_progress_page_faults--; }
 
 private:
     Region();

+ 1 - 1
Kernel/Memory/RingBuffer.h

@@ -26,7 +26,7 @@ public:
     size_t used_bytes() const { return m_num_used_bytes; }
     PhysicalAddress start_of_region() const { return m_region->physical_page(0)->paddr(); }
     VirtualAddress vaddr() const { return m_region->vaddr(); }
-    size_t bytes_till_end() const { return (m_capacity_in_bytes - ((m_start_of_used + m_num_used_bytes) % m_capacity_in_bytes)) % m_capacity_in_bytes; };
+    size_t bytes_till_end() const { return (m_capacity_in_bytes - ((m_start_of_used + m_num_used_bytes) % m_capacity_in_bytes)) % m_capacity_in_bytes; }
 
 private:
     RingBuffer(NonnullOwnPtr<Memory::Region> region, size_t capacity);

+ 5 - 5
Kernel/Net/IPv4SocketTuple.h

@@ -24,15 +24,15 @@ public:
         , m_peer_address(peer_address)
         , m_peer_port(peer_port) {};
 
-    IPv4Address local_address() const { return m_local_address; };
-    u16 local_port() const { return m_local_port; };
-    IPv4Address peer_address() const { return m_peer_address; };
-    u16 peer_port() const { return m_peer_port; };
+    IPv4Address local_address() const { return m_local_address; }
+    u16 local_port() const { return m_local_port; }
+    IPv4Address peer_address() const { return m_peer_address; }
+    u16 peer_port() const { return m_peer_port; }
 
     bool operator==(IPv4SocketTuple const& other) const
     {
         return other.local_address() == m_local_address && other.local_port() == m_local_port && other.peer_address() == m_peer_address && other.peer_port() == m_peer_port;
-    };
+    }
 
     ErrorOr<NonnullOwnPtr<KString>> to_string() const
     {

+ 1 - 1
Kernel/Net/Intel/E1000NetworkAdapter.h

@@ -27,7 +27,7 @@ public:
     virtual ~E1000NetworkAdapter() override;
 
     virtual void send_raw(ReadonlyBytes) override;
-    virtual bool link_up() override { return m_link_up; };
+    virtual bool link_up() override { return m_link_up; }
     virtual i32 link_speed() override;
     virtual bool link_full_duplex() override;
 

+ 1 - 1
Kernel/Security/Credentials.h

@@ -26,7 +26,7 @@ public:
     UserID suid() const { return m_suid; }
     GroupID sgid() const { return m_sgid; }
     ReadonlySpan<GroupID> extra_gids() const { return m_extra_gids.span(); }
-    SessionID sid() const { return m_sid; };
+    SessionID sid() const { return m_sid; }
     ProcessGroupID pgid() const { return m_pgid; }
 
     bool in_group(GroupID) const;

+ 1 - 1
Kernel/Syscalls/execve.cpp

@@ -199,7 +199,7 @@ static ErrorOr<RequiredLoadRange> get_required_load_range(OpenFileDescription& p
 
     VERIFY(range.end > range.start);
     return range;
-};
+}
 
 static ErrorOr<FlatPtr> get_load_offset(const ElfW(Ehdr) & main_program_header, OpenFileDescription& main_program_description, OpenFileDescription* interpreter_description)
 {

+ 1 - 1
Kernel/Syscalls/realpath.cpp

@@ -26,6 +26,6 @@ ErrorOr<FlatPtr> Process::sys$realpath(Userspace<Syscall::SC_realpath_params con
     TRY(copy_to_user(params.buffer.data, absolute_path->characters(), size_to_copy));
     // Note: we return the whole size here, not the copied size.
     return ideal_size;
-};
+}
 
 }

+ 13 - 12
Kernel/Syscalls/uname.cpp

@@ -11,24 +11,25 @@
 
 namespace Kernel {
 
+#if ARCH(X86_64)
+#    define UNAME_MACHINE "x86_64"
+#elif ARCH(AARCH64)
+#    define UNAME_MACHINE "AArch64"
+#else
+#    error Unknown architecture
+#endif
+
 ErrorOr<FlatPtr> Process::sys$uname(Userspace<utsname*> user_buf)
 {
     VERIFY_NO_PROCESS_BIG_LOCK(this);
     TRY(require_promise(Pledge::stdio));
 
-    utsname buf
-    {
+    utsname buf {
         "SerenityOS",
-            {}, // Hostname, filled in below.
-            {}, // "Release" (1.0-dev), filled in below.
-            {}, // "Revision" (git commit hash), filled in below.
-#if ARCH(X86_64)
-            "x86_64",
-#elif ARCH(AARCH64)
-            "AArch64",
-#else
-#    error Unknown architecture
-#endif
+        {}, // Hostname, filled in below.
+        {}, // "Release" (1.0-dev), filled in below.
+        {}, // "Revision" (git commit hash), filled in below.
+        UNAME_MACHINE
     };
 
     auto version_string = TRY(KString::formatted("{}.{}-dev", SERENITY_MAJOR_REVISION, SERENITY_MINOR_REVISION));

+ 1 - 1
Kernel/Tasks/FinalizerTask.cpp

@@ -24,7 +24,7 @@ static void finalizer_task(void*)
         else
             g_finalizer_wait_queue->wait_forever(finalizer_task_name);
     }
-};
+}
 
 UNMAP_AFTER_INIT void FinalizerTask::spawn()
 {

+ 1 - 1
Kernel/Tasks/Process.cpp

@@ -1066,7 +1066,7 @@ ErrorOr<void> Process::try_set_coredump_property(StringView key, StringView valu
     auto key_kstring = TRY(KString::try_create(key));
     auto value_kstring = TRY(KString::try_create(value));
     return set_coredump_property(move(key_kstring), move(value_kstring));
-};
+}
 
 static constexpr StringView to_string(Pledge promise)
 {

+ 3 - 3
Kernel/Tasks/Process.h

@@ -484,13 +484,13 @@ public:
     RefPtr<Custody> executable();
     RefPtr<Custody const> executable() const;
 
-    UnixDateTime creation_time() const { return m_creation_time; };
+    UnixDateTime creation_time() const { return m_creation_time; }
 
     static constexpr size_t max_arguments_size = Thread::default_userspace_stack_size / 8;
     static constexpr size_t max_environment_size = Thread::default_userspace_stack_size / 8;
     static constexpr size_t max_auxiliary_size = Thread::default_userspace_stack_size / 8;
-    Vector<NonnullOwnPtr<KString>> const& arguments() const { return m_arguments; };
-    Vector<NonnullOwnPtr<KString>> const& environment() const { return m_environment; };
+    Vector<NonnullOwnPtr<KString>> const& arguments() const { return m_arguments; }
+    Vector<NonnullOwnPtr<KString>> const& environment() const { return m_environment; }
 
     ErrorOr<void> exec(NonnullOwnPtr<KString> path, Vector<NonnullOwnPtr<KString>> arguments, Vector<NonnullOwnPtr<KString>> environment, Thread*& new_main_thread, InterruptsState& previous_interrupts_state, int recursion_depth = 0);
 

+ 1 - 1
Kernel/Tasks/Thread.h

@@ -1066,7 +1066,7 @@ public:
 
     ErrorOr<NonnullOwnPtr<KString>> backtrace();
 
-    Blocker const* blocker() const { return m_blocker; };
+    Blocker const* blocker() const { return m_blocker; }
     Kernel::Mutex const* blocking_mutex() const { return m_blocking_mutex; }
 
 #if LOCK_DEBUG

+ 1 - 1
Kernel/Time/TimerQueue.h

@@ -63,7 +63,7 @@ private:
     void clear_cancelled() { return m_cancelled.store(false, AK::memory_order_release); }
     bool set_cancelled() { return m_cancelled.exchange(true, AK::memory_order_acq_rel); }
 
-    bool is_in_use() { return m_in_use.load(AK::memory_order_acquire); };
+    bool is_in_use() { return m_in_use.load(AK::memory_order_acquire); }
     void set_in_use() { m_in_use.store(true, AK::memory_order_release); }
     void clear_in_use() { return m_in_use.store(false, AK::memory_order_release); }
 

+ 1 - 1
Ladybird/Tab.h

@@ -53,7 +53,7 @@ public:
     void show_inspector_window(InspectorTarget = InspectorTarget::Document);
     void show_console_window();
 
-    Ladybird::ConsoleWidget* console() { return m_console_widget; };
+    Ladybird::ConsoleWidget* console() { return m_console_widget; }
 
 public slots:
     void focus_location_editor();

+ 1 - 1
Meta/Lagom/Wasm/js_repl.cpp

@@ -63,7 +63,7 @@ void displayln(CheckedFormatString<Args...> format_string, Args const&... args)
 void displayln() { user_display("\n", 1); }
 
 class UserDisplayStream final : public Stream {
-    virtual ErrorOr<Bytes> read_some(Bytes) override { return Error::from_string_view("Not readable"sv); };
+    virtual ErrorOr<Bytes> read_some(Bytes) override { return Error::from_string_view("Not readable"sv); }
     virtual ErrorOr<size_t> write_some(ReadonlyBytes bytes) override
     {
         user_display(bit_cast<char const*>(bytes.data()), bytes.size());

+ 3 - 3
Tests/AK/TestCircularBuffer.cpp

@@ -20,7 +20,7 @@ void safe_write(CircularBuffer& buffer, u8 i)
     Bytes b { &i, 1 };
     auto written_bytes = buffer.write(b);
     EXPECT_EQ(written_bytes, 1ul);
-};
+}
 
 void safe_read(CircularBuffer& buffer, u8 supposed_result)
 {
@@ -29,12 +29,12 @@ void safe_read(CircularBuffer& buffer, u8 supposed_result)
     b = buffer.read(b);
     EXPECT_EQ(b.size(), 1ul);
     EXPECT_EQ(*b.data(), supposed_result);
-};
+}
 
 void safe_discard(CircularBuffer& buffer, size_t size)
 {
     TRY_OR_FAIL(buffer.discard(size));
-};
+}
 
 }
 

+ 2 - 2
Tests/AK/TestOptional.cpp

@@ -186,13 +186,13 @@ TEST_CASE(test_copy_ctor_and_dtor_called)
             : m_was_move_constructed(other.m_was_move_constructed)
         {
             EXPECT(false);
-        };
+        }
 
         MoveChecker(MoveChecker&& other)
             : m_was_move_constructed(other.m_was_move_constructed)
         {
             m_was_move_constructed = true;
-        };
+        }
 
         bool& m_was_move_constructed;
     };

+ 1 - 1
Tests/AK/TestTypeTraits.cpp

@@ -138,7 +138,7 @@ TEST_CASE(IsConvertible)
     };
     struct C {
         A a;
-        operator A() { return a; };
+        operator A() { return a; }
     };
     struct D {
     };

+ 1 - 1
Tests/LibCore/TestLibCoreArgsParser.cpp

@@ -314,7 +314,7 @@ TEST_CASE(combination_of_bool_options_with_positional_vector_string)
         parser.add_positional_argument(positionals, "pos", "pos", Core::ArgsParser::Required::No);
     });
     EXPECT_EQ(parser_result.result, false);
-};
+}
 
 TEST_CASE(stop_on_first_non_option)
 {

+ 1 - 1
Userland/Applets/Audio/main.cpp

@@ -119,7 +119,7 @@ private:
         };
 
         return {};
-    };
+    }
 
 public:
     virtual ~AudioWidget() override = default;

+ 2 - 2
Userland/Applications/3DFileViewer/main.cpp

@@ -38,7 +38,7 @@ public:
     void toggle_rotate_y() { m_rotate_y = !m_rotate_y; }
     void toggle_rotate_z() { m_rotate_z = !m_rotate_z; }
     void set_rotation_speed(float speed) { m_rotation_speed = speed; }
-    void set_stat_label(RefPtr<GUI::Label> l) { m_stats = l; };
+    void set_stat_label(RefPtr<GUI::Label> l) { m_stats = l; }
     void set_wrap_s_mode(GLint mode) { m_wrap_s_mode = mode; }
     void set_wrap_t_mode(GLint mode) { m_wrap_t_mode = mode; }
     void set_texture_scale(float scale) { m_texture_scale = scale; }
@@ -168,7 +168,7 @@ void GLContextWidget::resize_event(GUI::ResizeEvent& event)
 
     if (m_stats)
         m_stats->set_x(width() - m_stats->width() - 6);
-};
+}
 
 void GLContextWidget::mousemove_event(GUI::MouseEvent& event)
 {

+ 1 - 1
Userland/Applications/AnalogClock/AnalogClock.cpp

@@ -96,7 +96,7 @@ void AnalogClock::draw_hand(GUI::Painter& painter, double angle, double length,
         painter.draw_line(left_wing_point, indicator_point, palette().threed_highlight());
         painter.draw_line(left_wing_point, tail_point, palette().threed_highlight());
     }
-};
+}
 
 void AnalogClock::draw_seconds_hand(GUI::Painter& painter, double angle)
 {

+ 3 - 3
Userland/Applications/Browser/ElementSizePreviewWidget.h

@@ -17,9 +17,9 @@ class ElementSizePreviewWidget final : public GUI::AbstractScrollableWidget {
     C_OBJECT(ElementSizePreviewWidget)
 
 public:
-    void set_box_model(Web::Layout::BoxModelMetrics box_model) { m_node_box_sizing = box_model; };
-    void set_node_content_height(float height) { m_node_content_height = height; };
-    void set_node_content_width(float width) { m_node_content_width = width; };
+    void set_box_model(Web::Layout::BoxModelMetrics box_model) { m_node_box_sizing = box_model; }
+    void set_node_content_height(float height) { m_node_content_height = height; }
+    void set_node_content_width(float width) { m_node_content_width = width; }
 
 private:
     virtual void paint_event(GUI::PaintEvent&) override;

+ 1 - 1
Userland/Applications/DisplaySettings/ThemesSettingsWidget.cpp

@@ -21,7 +21,7 @@ namespace DisplaySettings {
 static ErrorOr<String> get_color_scheme_name_from_pathname(StringView color_scheme_path)
 {
     return TRY(String::from_deprecated_string(color_scheme_path.replace("/res/color-schemes/"sv, ""sv, ReplaceMode::FirstOnly).replace(".ini"sv, ""sv, ReplaceMode::FirstOnly)));
-};
+}
 
 ErrorOr<NonnullRefPtr<ThemesSettingsWidget>> ThemesSettingsWidget::try_create(bool& background_settings_changed)
 {

+ 1 - 1
Userland/Applications/Magnifier/MagnifierWidget.h

@@ -34,7 +34,7 @@ public:
     void lock_location(bool);
     void display_previous_frame();
     void display_next_frame();
-    RefPtr<Gfx::Bitmap> current_bitmap() const { return m_grabbed_bitmap; };
+    RefPtr<Gfx::Bitmap> current_bitmap() const { return m_grabbed_bitmap; }
 
     virtual Optional<GUI::UISize> calculated_min_size() const override
     {

+ 1 - 1
Userland/Applications/Piano/TrackManager.h

@@ -27,7 +27,7 @@ public:
     ~TrackManager() = default;
 
     NonnullRefPtr<DSP::NoteTrack> current_track() { return *m_tracks[m_current_track]; }
-    size_t track_count() { return m_tracks.size(); };
+    size_t track_count() { return m_tracks.size(); }
     size_t current_track_index() const { return m_current_track; }
     void set_current_track(size_t track_index)
     {

+ 1 - 1
Userland/Applications/PixelPaint/Guide.h

@@ -28,7 +28,7 @@ public:
     static NonnullRefPtr<Guide> construct(Orientation orientation, float offset)
     {
         return make_ref_counted<Guide>(orientation, offset);
-    };
+    }
 
     Orientation orientation() const { return m_orientation; }
     float offset() const { return m_offset; }

+ 1 - 1
Userland/Applications/PixelPaint/ImageEditor.h

@@ -125,7 +125,7 @@ public:
     void set_unmodified();
     void update_modified();
     Function<void(DeprecatedString)> on_appended_status_info_change;
-    DeprecatedString appended_status_info() { return m_appended_status_info; };
+    DeprecatedString appended_status_info() { return m_appended_status_info; }
     void set_appended_status_info(DeprecatedString);
     DeprecatedString generate_unique_layer_name(DeprecatedString const& original_layer_name);
 

+ 1 - 1
Userland/Applications/PixelPaint/Tools/Tool.h

@@ -83,7 +83,7 @@ public:
     virtual StringView tool_name() const = 0;
 
     // We only set the override_alt_key flag to true since the override is false by default. If false is desired do not call method.
-    virtual bool is_overriding_alt() { return false; };
+    virtual bool is_overriding_alt() { return false; }
 
 protected:
     Tool() = default;

+ 1 - 1
Userland/Applications/SpaceAnalyzer/Tree.h

@@ -54,7 +54,7 @@ public:
     TreeNode& root()
     {
         return m_root;
-    };
+    }
 
 private:
     Tree(DeprecatedString root_name)

+ 1 - 1
Userland/Applications/Spreadsheet/ImportDialog.cpp

@@ -146,7 +146,7 @@ auto CSVImportDialogPage::make_reader() -> Optional<Reader::XSV>
         behaviors = behaviors | Reader::ParserBehavior::TrimTrailingFieldSpaces;
 
     return Reader::XSV(m_csv, move(traits), behaviors);
-};
+}
 
 void CSVImportDialogPage::update_preview()
 

+ 1 - 1
Userland/Applications/Spreadsheet/SpreadsheetView.h

@@ -107,7 +107,7 @@ public:
 
     void move_cursor(GUI::AbstractView::CursorMovement);
 
-    NonnullRefPtr<SheetModel> model() { return m_sheet_model; };
+    NonnullRefPtr<SheetModel> model() { return m_sheet_model; }
 
 private:
     virtual void hide_event(GUI::HideEvent&) override;

+ 3 - 3
Userland/Applications/SystemMonitor/ThreadStackWidget.cpp

@@ -26,8 +26,8 @@ class ThreadStackModel final : public GUI::Model {
     };
 
 public:
-    int column_count(GUI::ModelIndex const&) const override { return 3; };
-    int row_count(GUI::ModelIndex const&) const override { return m_symbols.size(); };
+    int column_count(GUI::ModelIndex const&) const override { return 3; }
+    int row_count(GUI::ModelIndex const&) const override { return m_symbols.size(); }
     bool is_column_sortable(int) const override { return false; }
 
     ErrorOr<String> column_name(int column) const override
@@ -57,7 +57,7 @@ public:
         default:
             VERIFY_NOT_REACHED();
         }
-    };
+    }
 
     void set_symbols(Vector<Symbolication::Symbol> const& symbols)
     {

+ 2 - 2
Userland/DevTools/GMLPlayground/MainWidget.cpp

@@ -115,7 +115,7 @@ MainWidget::MainWidget()
 void MainWidget::update_title()
 {
     window()->set_title(DeprecatedString::formatted("{}[*] - GML Playground", m_file_path.is_empty() ? "Untitled"sv : m_file_path.view()));
-};
+}
 
 void MainWidget::load_file(FileSystemAccessClient::File file)
 {
@@ -130,7 +130,7 @@ void MainWidget::load_file(FileSystemAccessClient::File file)
     update_title();
 
     GUI::Application::the()->set_most_recently_open_file(file.filename());
-};
+}
 
 ErrorOr<void> MainWidget::initialize_menubar(GUI::Window& window)
 {

+ 1 - 1
Userland/DevTools/HackStudio/Git/GitWidget.h

@@ -23,7 +23,7 @@ public:
 
     void refresh();
     void set_view_diff_callback(ViewDiffCallback callback);
-    bool initialized() const { return !m_git_repo.is_null(); };
+    bool initialized() const { return !m_git_repo.is_null(); }
     void change_repo(DeprecatedString const& repo_root);
 
 private:

+ 1 - 1
Userland/DevTools/HackStudio/HackStudioWidget.cpp

@@ -1167,7 +1167,7 @@ void HackStudioWidget::run()
 void HackStudioWidget::hide_action_tabs()
 {
     m_action_tab_widget->set_preferred_height(24);
-};
+}
 
 Project& HackStudioWidget::project()
 {

+ 1 - 1
Userland/DevTools/Profiler/FilesystemEventModel.h

@@ -27,7 +27,7 @@ public:
     Vector<NonnullRefPtr<FileEventNode>>& children() { return m_children; }
     Vector<NonnullRefPtr<FileEventNode>> const& children() const { return m_children; }
 
-    FileEventNode* parent() { return m_parent; };
+    FileEventNode* parent() { return m_parent; }
 
     FileEventNode& create_recursively(DeprecatedString);
 

+ 1 - 1
Userland/DevTools/Profiler/PercentageFormatting.h

@@ -23,6 +23,6 @@ DeprecatedString format_percentage(auto value, auto total)
         "{}.{:02}",
         percentage_full_precision / percent_digits_rounding,
         percentage_full_precision % percent_digits_rounding);
-};
+}
 
 }

+ 1 - 1
Userland/DevTools/Profiler/Profile.h

@@ -84,7 +84,7 @@ public:
         auto new_child = ProfileNode::create(m_process, object_name, move(symbol), address, offset, timestamp, pid);
         add_child(new_child);
         return new_child;
-    };
+    }
 
     ProfileNode* parent() { return m_parent; }
     ProfileNode const* parent() const { return m_parent; }

+ 1 - 1
Userland/DevTools/UserspaceEmulator/Region.h

@@ -70,7 +70,7 @@ public:
 
 protected:
     Region(u32 base, u32 size, bool mmap = false);
-    void set_range(Range r) { m_range = r; };
+    void set_range(Range r) { m_range = r; }
 
 private:
     Emulator& m_emulator;

+ 2 - 2
Userland/DevTools/UserspaceEmulator/SoftCPU.cpp

@@ -3184,8 +3184,8 @@ void SoftCPU::CVTSD2SS_xmm1_xmm2m64(X86::Instruction const&) { TODO_INSN(); }
 void SoftCPU::CVTDQ2PS_xmm1_xmm2m128(X86::Instruction const&) { TODO_INSN(); }
 void SoftCPU::CVTPS2DQ_xmm1_xmm2m128(X86::Instruction const&) { TODO_INSN(); }
 void SoftCPU::CVTTPS2DQ_xmm1_xmm2m128(X86::Instruction const&) { TODO_INSN(); }
-void SoftCPU::SUBPD_xmm1_xmm2m128(X86::Instruction const&) { TODO_INSN(); };
-void SoftCPU::SUBSD_xmm1_xmm2m32(X86::Instruction const&) { TODO_INSN(); };
+void SoftCPU::SUBPD_xmm1_xmm2m128(X86::Instruction const&) { TODO_INSN(); }
+void SoftCPU::SUBSD_xmm1_xmm2m32(X86::Instruction const&) { TODO_INSN(); }
 void SoftCPU::MINPD_xmm1_xmm2m128(X86::Instruction const&) { TODO_INSN(); }
 void SoftCPU::MINSD_xmm1_xmm2m32(X86::Instruction const&) { TODO_INSN(); }
 void SoftCPU::DIVPD_xmm1_xmm2m128(X86::Instruction const&) { TODO_INSN(); }

+ 1 - 1
Userland/DevTools/UserspaceEmulator/SoftCPU.h

@@ -294,7 +294,7 @@ public:
 
     long double fpu_get(u8 index) { return m_fpu.fpu_get(index); }
     long double fpu_pop() { return m_fpu.fpu_pop(); }
-    MMX mmx_get(u8 index) const { return m_fpu.mmx_get(index); };
+    MMX mmx_get(u8 index) const { return m_fpu.mmx_get(index); }
 
     void set_eax(ValueWithShadow<u32> value) { gpr32(X86::RegisterEAX) = value; }
     void set_ebx(ValueWithShadow<u32> value) { gpr32(X86::RegisterEBX) = value; }

+ 5 - 5
Userland/DevTools/UserspaceEmulator/SoftFPU.cpp

@@ -1133,7 +1133,7 @@ void SoftFPU::FNINIT(const X86::Instruction&)
     m_fpu_ds = 0;
 
     m_fpu_iop = 0;
-};
+}
 void SoftFPU::FNCLEX(const X86::Instruction&)
 {
     m_fpu_error_invalid = 0;
@@ -1718,7 +1718,7 @@ void SoftFPU::MOVD_mm1_rm32(const X86::Instruction& insn)
     // upper half is zeroed out
     mmx_set(mmx_index, { .raw = insn.modrm().read32(m_cpu, insn).value() });
     mmx_common();
-};
+}
 void SoftFPU::MOVD_rm32_mm2(const X86::Instruction& insn)
 {
     VERIFY(!insn.has_operand_size_override_prefix()); /* SSE2 */
@@ -1727,7 +1727,7 @@ void SoftFPU::MOVD_rm32_mm2(const X86::Instruction& insn)
     insn.modrm().write32(m_cpu, insn,
         shadow_wrap_as_initialized(static_cast<u32>(mmx_get(mmx_index).raw)));
     mmx_common();
-};
+}
 
 void SoftFPU::MOVQ_mm1_mm2m64(const X86::Instruction& insn)
 {
@@ -1757,8 +1757,8 @@ void SoftFPU::MOVQ_mm1m64_mm2(const X86::Instruction& insn)
     }
     mmx_common();
 }
-void SoftFPU::MOVQ_mm1_rm64(const X86::Instruction&) { TODO_INSN(); }; // long mode
-void SoftFPU::MOVQ_rm64_mm2(const X86::Instruction&) { TODO_INSN(); }; // long mode
+void SoftFPU::MOVQ_mm1_rm64(const X86::Instruction&) { TODO_INSN(); } // long mode
+void SoftFPU::MOVQ_rm64_mm2(const X86::Instruction&) { TODO_INSN(); } // long mode
 
 // EMPTY MMX STATE
 void SoftFPU::EMMS(const X86::Instruction&)

+ 1 - 1
Userland/Games/2048/Game.cpp

@@ -152,7 +152,7 @@ static bool has_no_neighbors(ReadonlySpan<u32> const& row)
         return false;
 
     return has_no_neighbors(row.slice(1, row.size() - 1));
-};
+}
 
 bool Game::Board::is_stalled()
 {

+ 7 - 7
Userland/Games/Chess/ChessWidget.h

@@ -33,17 +33,17 @@ public:
     virtual void mousemove_event(GUI::MouseEvent&) override;
     virtual void keydown_event(GUI::KeyEvent&) override;
 
-    Chess::Board& board() { return m_board; };
-    Chess::Board const& board() const { return m_board; };
+    Chess::Board& board() { return m_board; }
+    Chess::Board const& board() const { return m_board; }
 
-    Chess::Board& board_playback() { return m_board_playback; };
-    Chess::Board const& board_playback() const { return m_board_playback; };
+    Chess::Board& board_playback() { return m_board_playback; }
+    Chess::Board const& board_playback() const { return m_board_playback; }
 
-    Chess::Color side() const { return m_side; };
-    void set_side(Chess::Color side) { m_side = side; };
+    Chess::Color side() const { return m_side; }
+    void set_side(Chess::Color side) { m_side = side; }
 
     void set_piece_set(StringView set);
-    DeprecatedString const& piece_set() const { return m_piece_set; };
+    DeprecatedString const& piece_set() const { return m_piece_set; }
 
     Optional<Chess::Square> mouse_to_square(GUI::MouseEvent& event) const;
 

+ 1 - 1
Userland/Games/GameOfLife/Pattern.h

@@ -15,7 +15,7 @@
 class Pattern final {
 public:
     Pattern(Vector<DeprecatedString>);
-    Vector<DeprecatedString> pattern() { return m_pattern; };
+    Vector<DeprecatedString> pattern() { return m_pattern; }
     GUI::Action* action() { return m_action; }
     void set_action(GUI::Action*);
     void rotate_clockwise();

+ 1 - 1
Userland/Games/Hearts/Game.cpp

@@ -91,7 +91,7 @@ Game::Game()
     };
 
     reset();
-};
+}
 
 void Game::reset()
 {

+ 1 - 1
Userland/Libraries/LibArchive/TarStream.h

@@ -21,7 +21,7 @@ public:
     virtual ErrorOr<Bytes> read_some(Bytes) override;
     virtual ErrorOr<size_t> write_some(ReadonlyBytes) override;
     virtual bool is_eof() const override;
-    virtual bool is_open() const override { return true; };
+    virtual bool is_open() const override { return true; }
     virtual void close() override {};
 
 private:

+ 2 - 2
Userland/Libraries/LibAudio/Loader.h

@@ -74,7 +74,7 @@ public:
     virtual PcmSampleFormat pcm_format() = 0;
 
     Metadata const& metadata() const { return m_metadata; }
-    Vector<PictureData> const& pictures() const { return m_pictures; };
+    Vector<PictureData> const& pictures() const { return m_pictures; }
 
 protected:
     NonnullOwnPtr<SeekableStream> m_stream;
@@ -111,7 +111,7 @@ public:
     u16 bits_per_sample() const { return pcm_bits_per_sample(m_plugin->pcm_format()); }
     PcmSampleFormat pcm_format() const { return m_plugin->pcm_format(); }
     Metadata const& metadata() const { return m_plugin->metadata(); }
-    Vector<PictureData> const& pictures() const { return m_plugin->pictures(); };
+    Vector<PictureData> const& pictures() const { return m_plugin->pictures(); }
 
 private:
     static ErrorOr<NonnullOwnPtr<LoaderPlugin>, LoaderError> create_plugin(NonnullOwnPtr<SeekableStream> stream);

+ 1 - 1
Userland/Libraries/LibC/stdlib.cpp

@@ -125,7 +125,7 @@ public:
         return DigitConsumeDecision::Consumed;
     }
 
-    T number() const { return m_num; };
+    T number() const { return m_num; }
 
 private:
     bool can_append_digit(int digit)

+ 1 - 1
Userland/Libraries/LibCards/Card.h

@@ -91,7 +91,7 @@ public:
     Gfx::IntRect const& rect() const { return m_rect; }
     Gfx::IntPoint position() const { return m_rect.location(); }
     Gfx::IntPoint old_position() const { return m_old_position; }
-    Rank rank() const { return m_rank; };
+    Rank rank() const { return m_rank; }
     Suit suit() const { return m_suit; }
 
     bool is_old_position_valid() const { return m_old_position_valid; }

+ 1 - 1
Userland/Libraries/LibCodeComprehension/Types.h

@@ -105,7 +105,7 @@ struct TokenInfo {
 #undef __SEMANTIC
         }
         VERIFY_NOT_REACHED();
-    };
+    }
 };
 
 struct TodoEntry {

+ 5 - 5
Userland/Libraries/LibCompress/DeflateTables.h

@@ -112,7 +112,7 @@ static consteval Array<u16, 259> generate_length_to_symbol()
         array[len] = packed_length_symbols[base_length].symbol;
     }
     return array;
-};
+}
 static constexpr auto length_to_symbol = generate_length_to_symbol();
 
 static consteval Array<u16, 256> generate_distance_to_base_lo()
@@ -125,7 +125,7 @@ static consteval Array<u16, 256> generate_distance_to_base_lo()
         array[dist - 1] = packed_distances[base_distance].symbol;
     }
     return array;
-};
+}
 static constexpr auto distance_to_base_lo = generate_distance_to_base_lo();
 static consteval Array<u16, 256> generate_distance_to_base_hi()
 {
@@ -137,7 +137,7 @@ static consteval Array<u16, 256> generate_distance_to_base_hi()
         array[(dist - 1) >> 7] = packed_distances[base_distance].symbol;
     }
     return array;
-};
+}
 static constexpr auto distance_to_base_hi = generate_distance_to_base_hi();
 
 static consteval Array<u8, 288> generate_fixed_literal_bit_lengths()
@@ -147,7 +147,7 @@ static consteval Array<u8, 288> generate_fixed_literal_bit_lengths()
         array.span().slice(fixed_literal_bits[i].base_value, fixed_literal_bits[i + 1].base_value - fixed_literal_bits[i].base_value).fill(fixed_literal_bits[i].bits);
     }
     return array;
-};
+}
 static constexpr auto fixed_literal_bit_lengths = generate_fixed_literal_bit_lengths();
 
 static consteval Array<u8, 32> generate_fixed_distance_bit_lengths()
@@ -155,7 +155,7 @@ static consteval Array<u8, 32> generate_fixed_distance_bit_lengths()
     Array<u8, 32> array;
     array.fill(5);
     return array;
-};
+}
 static constexpr auto fixed_distance_bit_lengths = generate_fixed_distance_bit_lengths();
 
 static consteval u8 reverse8(u8 value)

+ 1 - 1
Userland/Libraries/LibCompress/Lzma.cpp

@@ -860,7 +860,7 @@ void LzmaState::update_state_after_match()
         m_state = 7;
     else
         m_state = 10;
-};
+}
 
 void LzmaState::update_state_after_rep()
 {

+ 1 - 1
Userland/Libraries/LibCore/Account.h

@@ -52,7 +52,7 @@ public:
     void set_gid(gid_t gid) { m_gid = gid; }
     void set_shell(StringView shell) { m_shell = shell; }
     void set_gecos(StringView gecos) { m_gecos = gecos; }
-    void set_deleted() { m_deleted = true; };
+    void set_deleted() { m_deleted = true; }
     void set_extra_gids(Vector<gid_t> extra_gids) { m_extra_gids = move(extra_gids); }
     void delete_password();
 

+ 1 - 1
Userland/Libraries/LibCore/ArgsParser.h

@@ -77,7 +77,7 @@ public:
     }
 
     // *Without* trailing newline!
-    void set_general_help(char const* help_string) { m_general_help = help_string; };
+    void set_general_help(char const* help_string) { m_general_help = help_string; }
     void set_stop_on_first_non_option(bool stop_on_first_non_option) { m_stop_on_first_non_option = stop_on_first_non_option; }
     void print_usage(FILE*, StringView argv0);
     void print_usage_terminal(FILE*, StringView argv0);

+ 1 - 1
Userland/Libraries/LibCore/Debounce.h

@@ -24,6 +24,6 @@ auto debounce(int timeout, TFunction function)
         }
         timer->start();
     };
-};
+}
 
 }

+ 1 - 1
Userland/Libraries/LibCore/DirectoryEntry.cpp

@@ -42,6 +42,6 @@ DirectoryEntry DirectoryEntry::from_dirent(dirent const& de)
         .type = directory_entry_type_from_posix(de.d_type),
         .name = de.d_name,
     };
-};
+}
 
 }

+ 2 - 2
Userland/Libraries/LibCore/Socket.h

@@ -179,8 +179,8 @@ public:
     virtual ErrorOr<Bytes> read_some(Bytes buffer) override { return m_helper.read(buffer, default_flags()); }
     virtual ErrorOr<size_t> write_some(ReadonlyBytes buffer) override { return m_helper.write(buffer, default_flags()); }
     virtual bool is_eof() const override { return m_helper.is_eof(); }
-    virtual bool is_open() const override { return m_helper.is_open(); };
-    virtual void close() override { m_helper.close(); };
+    virtual bool is_open() const override { return m_helper.is_open(); }
+    virtual void close() override { m_helper.close(); }
     virtual ErrorOr<size_t> pending_bytes() const override { return m_helper.pending_bytes(); }
     virtual ErrorOr<bool> can_read_without_blocking(int timeout = 0) const override { return m_helper.can_read_without_blocking(timeout); }
     virtual void set_notifications_enabled(bool enabled) override

+ 1 - 1
Userland/Libraries/LibCore/UDPServer.h

@@ -29,7 +29,7 @@ public:
     {
         struct sockaddr_in saddr;
         return receive(size, saddr);
-    };
+    }
 
     ErrorOr<size_t> send(ReadonlyBytes, sockaddr_in const& to);
 

+ 1 - 1
Userland/Libraries/LibCpp/AST.h

@@ -466,7 +466,7 @@ public:
     {
     }
 
-    void append_dimension(StringView dim) { m_dimensions.append(dim); };
+    void append_dimension(StringView dim) { m_dimensions.append(dim); }
 
 private:
     Vector<StringView> m_dimensions;

+ 2 - 2
Userland/Libraries/LibCpp/SemanticSyntaxHighlighter.h

@@ -35,8 +35,8 @@ public:
     virtual bool is_cpp_semantic_highlighter() const override { return true; }
 
 protected:
-    virtual Vector<MatchingTokenPair> matching_token_pairs_impl() const override { return m_simple_syntax_highlighter.matching_token_pairs_impl(); };
-    virtual bool token_types_equal(u64 token1, u64 token2) const override { return m_simple_syntax_highlighter.token_types_equal(token1, token2); };
+    virtual Vector<MatchingTokenPair> matching_token_pairs_impl() const override { return m_simple_syntax_highlighter.matching_token_pairs_impl(); }
+    virtual bool token_types_equal(u64 token1, u64 token2) const override { return m_simple_syntax_highlighter.token_types_equal(token1, token2); }
 
 private:
     void update_spans(Vector<CodeComprehension::TokenInfo> const&, Gfx::Palette const&);

+ 1 - 1
Userland/Libraries/LibCrypto/BigFraction/BigFraction.cpp

@@ -39,7 +39,7 @@ BigFraction::BigFraction(StringView sv)
     auto fraction_length = UnsignedBigInteger(static_cast<u64>(fraction_part_view.length()));
 
     *this = BigFraction(move(integer_part)) + BigFraction(move(fractional_part), NumberTheory::Power("10"_bigint, move(fraction_length)));
-};
+}
 
 BigFraction BigFraction::operator+(BigFraction const& rhs) const
 {

+ 1 - 1
Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.h

@@ -108,7 +108,7 @@ public:
 
     // These get + 1 byte for the sign.
     [[nodiscard]] size_t length() const { return m_unsigned_data.length() + 1; }
-    [[nodiscard]] size_t trimmed_length() const { return m_unsigned_data.trimmed_length() + 1; };
+    [[nodiscard]] size_t trimmed_length() const { return m_unsigned_data.trimmed_length() + 1; }
 
     [[nodiscard]] SignedBigInteger plus(SignedBigInteger const& other) const;
     [[nodiscard]] SignedBigInteger minus(SignedBigInteger const& other) const;

+ 1 - 1
Userland/Libraries/LibCrypto/Checksum/Adler32.cpp

@@ -16,7 +16,7 @@ void Adler32::update(ReadonlyBytes data)
         m_state_a = (m_state_a + data.at(i)) % 65521;
         m_state_b = (m_state_b + m_state_a) % 65521;
     }
-};
+}
 
 u32 Adler32::digest()
 {

+ 3 - 3
Userland/Libraries/LibCrypto/Checksum/CRC32.cpp

@@ -41,7 +41,7 @@ void CRC32::update(ReadonlyBytes span)
         ++data;
         --size;
     }
-};
+}
 
 // FIXME: On Intel, use _mm_crc32_u8 / _mm_crc32_u64 if available (SSE 4.2).
 
@@ -133,7 +133,7 @@ void CRC32::update(ReadonlyBytes data)
 
     for (auto byte : aligned_data)
         m_state = single_byte_crc(m_state, byte);
-};
+}
 
 #    else
 
@@ -164,7 +164,7 @@ void CRC32::update(ReadonlyBytes data)
     for (size_t i = 0; i < data.size(); i++) {
         m_state = table[(m_state ^ data.at(i)) & 0xFF] ^ (m_state >> 8);
     }
-};
+}
 
 #    endif
 #endif

+ 5 - 5
Userland/Libraries/LibCrypto/Cipher/AES.h

@@ -34,7 +34,7 @@ public:
         CipherBlock::overwrite(data, length);
     }
 
-    constexpr static size_t block_size() { return BlockSizeInBits / 8; };
+    constexpr static size_t block_size() { return BlockSizeInBits / 8; }
 
     virtual ReadonlyBytes bytes() const override { return ReadonlyBytes { m_data, sizeof(m_data) }; }
     virtual Bytes bytes() override { return Bytes { m_data, sizeof(m_data) }; }
@@ -59,10 +59,10 @@ private:
 };
 
 struct AESCipherKey : public CipherKey {
-    virtual ReadonlyBytes bytes() const override { return ReadonlyBytes { m_rd_keys, sizeof(m_rd_keys) }; };
+    virtual ReadonlyBytes bytes() const override { return ReadonlyBytes { m_rd_keys, sizeof(m_rd_keys) }; }
     virtual void expand_encrypt_key(ReadonlyBytes user_key, size_t bits) override;
     virtual void expand_decrypt_key(ReadonlyBytes user_key, size_t bits) override;
-    static bool is_valid_key_size(size_t bits) { return bits == 128 || bits == 192 || bits == 256; };
+    static bool is_valid_key_size(size_t bits) { return bits == 128 || bits == 192 || bits == 256; }
 
 #ifndef KERNEL
     DeprecatedString to_deprecated_string() const;
@@ -114,8 +114,8 @@ public:
     {
     }
 
-    virtual AESCipherKey const& key() const override { return m_key; };
-    virtual AESCipherKey& key() override { return m_key; };
+    virtual AESCipherKey const& key() const override { return m_key; }
+    virtual AESCipherKey& key() override { return m_key; }
 
     virtual void encrypt_block(BlockType const& in, BlockType& out) override;
     virtual void decrypt_block(BlockType const& in, BlockType& out) override;

+ 1 - 1
Userland/Libraries/LibCrypto/Cipher/Cipher.h

@@ -81,7 +81,7 @@ private:
 
 struct CipherKey {
     virtual ReadonlyBytes bytes() const = 0;
-    static bool is_valid_key_size(size_t) { return false; };
+    static bool is_valid_key_size(size_t) { return false; }
 
     virtual ~CipherKey() = default;
 

+ 1 - 1
Userland/Libraries/LibCrypto/Curves/Ed25519.cpp

@@ -21,7 +21,7 @@ ErrorOr<ByteBuffer> Ed25519::generate_private_key()
     auto buffer = TRY(ByteBuffer::create_uninitialized(key_size()));
     fill_with_random(buffer);
     return buffer;
-};
+}
 
 // https://datatracker.ietf.org/doc/html/rfc8032#section-5.1.5
 ErrorOr<ByteBuffer> Ed25519::generate_public_key(ReadonlyBytes private_key)

+ 4 - 4
Userland/Libraries/LibCrypto/Hash/MD5.cpp

@@ -8,10 +8,10 @@
 #include <AK/Types.h>
 #include <LibCrypto/Hash/MD5.h>
 
-static constexpr u32 F(u32 x, u32 y, u32 z) { return (x & y) | ((~x) & z); };
-static constexpr u32 G(u32 x, u32 y, u32 z) { return (x & z) | ((~z) & y); };
-static constexpr u32 H(u32 x, u32 y, u32 z) { return x ^ y ^ z; };
-static constexpr u32 I(u32 x, u32 y, u32 z) { return y ^ (x | ~z); };
+static constexpr u32 F(u32 x, u32 y, u32 z) { return (x & y) | ((~x) & z); }
+static constexpr u32 G(u32 x, u32 y, u32 z) { return (x & z) | ((~z) & y); }
+static constexpr u32 H(u32 x, u32 y, u32 z) { return x ^ y ^ z; }
+static constexpr u32 I(u32 x, u32 y, u32 z) { return y ^ (x | ~z); }
 static constexpr u32 ROTATE_LEFT(u32 x, size_t n)
 {
     return (x << n) | (x >> (32 - n));

+ 1 - 1
Userland/Libraries/LibDSP/ProcessorParameter.h

@@ -78,7 +78,7 @@ public:
         return static_cast<double>(value());
     }
 
-    ParameterT value() const { return m_value; };
+    ParameterT value() const { return m_value; }
     void set_value(ParameterT value)
     {
         set_value_sneaky(value, DSP::Detail::ProcessorParameterSetValueTag {});

+ 1 - 1
Userland/Libraries/LibEDID/EDID.h

@@ -254,7 +254,7 @@ public:
         };
 
         ALWAYS_INLINE Source source() const { return m_source; }
-        ALWAYS_INLINE unsigned width() const { return m_width; };
+        ALWAYS_INLINE unsigned width() const { return m_width; }
         ALWAYS_INLINE unsigned height() const { return m_height; }
 
         ALWAYS_INLINE unsigned refresh_rate() const

+ 1 - 1
Userland/Libraries/LibELF/DynamicLoader.h

@@ -72,7 +72,7 @@ public:
     // Stage 4 of loading: initializers
     void load_stage_4();
 
-    void set_tls_offset(size_t offset) { m_tls_offset = offset; };
+    void set_tls_offset(size_t offset) { m_tls_offset = offset; }
     size_t tls_size_of_current_object() const { return m_tls_size_of_current_object; }
     size_t tls_alignment_of_current_object() const { return m_tls_alignment_of_current_object; }
     size_t tls_offset() const { return m_tls_offset; }

Some files were not shown because too many files changed in this diff