From 3c231db8b0a1762504751895984e9a80bbe8a6fc Mon Sep 17 00:00:00 2001 From: Tyler Wilding Date: Fri, 19 Apr 2024 23:56:15 -0400 Subject: [PATCH] lint: workaround more ancient clang-format bug false-positives --- game/system/hid/devices/keyboard.h | 2 ++ game/system/hid/devices/mouse.h | 2 ++ lsp/state/workspace.cpp | 2 ++ 3 files changed, 6 insertions(+) diff --git a/game/system/hid/devices/keyboard.h b/game/system/hid/devices/keyboard.h index 00038f4ef0..117358d876 100644 --- a/game/system/hid/devices/keyboard.h +++ b/game/system/hid/devices/keyboard.h @@ -31,9 +31,11 @@ class KeyboardDevice : public InputDevice { const CommandBindingGroups& commands, std::shared_ptr data, std::optional& bind_assignment) override; + // clang-format off void close_device() override { // there is nothing to close }; + // clang-format on private: std::vector m_active_actions = {}; diff --git a/game/system/hid/devices/mouse.h b/game/system/hid/devices/mouse.h index 2cbaa05e4e..1ff60ada96 100644 --- a/game/system/hid/devices/mouse.h +++ b/game/system/hid/devices/mouse.h @@ -31,9 +31,11 @@ class MouseDevice : public InputDevice { const CommandBindingGroups& commands, std::shared_ptr data, std::optional& bind_assignment) override; + // clang-format off void close_device() override { // there is nothing to close }; + // clang-format on void enable_relative_mode(const bool enable); void enable_camera_control(const bool enable); diff --git a/lsp/state/workspace.cpp b/lsp/state/workspace.cpp index c0a0a7c671..4559fd2f5a 100644 --- a/lsp/state/workspace.cpp +++ b/lsp/state/workspace.cpp @@ -379,9 +379,11 @@ void Workspace::tracked_file_will_save(const LSPSpec::DocumentUri& file_uri) { } } +// clang-format off void Workspace::update_global_index(const GameVersion game_version) { // TODO - project wide indexing potentially (ie. finding references) }; +// clang-format on void Workspace::stop_tracking_file(const LSPSpec::DocumentUri& file_uri) { m_tracked_ir_files.erase(file_uri);