lint: workaround more ancient clang-format bug false-positives

This commit is contained in:
Tyler Wilding
2024-04-19 23:56:15 -04:00
parent 00bb8bef29
commit 3c231db8b0
3 changed files with 6 additions and 0 deletions
+2
View File
@@ -31,9 +31,11 @@ class KeyboardDevice : public InputDevice {
const CommandBindingGroups& commands,
std::shared_ptr<PadData> data,
std::optional<InputBindAssignmentMeta>& bind_assignment) override;
// clang-format off
void close_device() override {
// there is nothing to close
};
// clang-format on
private:
std::vector<ActiveKeyboardAction> m_active_actions = {};
+2
View File
@@ -31,9 +31,11 @@ class MouseDevice : public InputDevice {
const CommandBindingGroups& commands,
std::shared_ptr<PadData> data,
std::optional<InputBindAssignmentMeta>& 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);
+2
View File
@@ -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);