From 9453123db0300151afb0a5e73e1f93e1a1d6b9f9 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sun, 12 Oct 2025 17:20:50 +0200 Subject: [PATCH] Force new line at EOF --- .clang-format | 1 + src/common/utils/wildcard.hpp | 2 +- src/debugger/event_handler.cpp | 2 +- src/debugger/message_transmitter.cpp | 2 +- src/windows-emulator/devices/named_pipe.hpp | 2 +- src/windows-emulator/minidump_loader.hpp | 2 +- src/windows-emulator/syscalls/token.cpp | 2 +- 7 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.clang-format b/.clang-format index b218025c..9d4a850e 100644 --- a/.clang-format +++ b/.clang-format @@ -14,6 +14,7 @@ SortIncludes: false AlignEscapedNewlines: Left PackConstructorInitializers: Never IndentPPDirectives: None +InsertNewlineAtEOF: true ColumnLimit: 140 AlignConsecutiveMacros: Enabled: true diff --git a/src/common/utils/wildcard.hpp b/src/common/utils/wildcard.hpp index b0e45f87..377c19d1 100644 --- a/src/common/utils/wildcard.hpp +++ b/src/common/utils/wildcard.hpp @@ -96,4 +96,4 @@ namespace utils::wildcard return mask_pos == mask.size(); } -} \ No newline at end of file +} diff --git a/src/debugger/event_handler.cpp b/src/debugger/event_handler.cpp index bd6f5900..108acbad 100644 --- a/src/debugger/event_handler.cpp +++ b/src/debugger/event_handler.cpp @@ -253,4 +253,4 @@ namespace debugger response.exit_status = exit_status; send_event(response); } -} \ No newline at end of file +} diff --git a/src/debugger/message_transmitter.cpp b/src/debugger/message_transmitter.cpp index a602d649..3c5909e8 100644 --- a/src/debugger/message_transmitter.cpp +++ b/src/debugger/message_transmitter.cpp @@ -73,4 +73,4 @@ namespace debugger } #endif } -} \ No newline at end of file +} diff --git a/src/windows-emulator/devices/named_pipe.hpp b/src/windows-emulator/devices/named_pipe.hpp index 542248aa..5c9c26fa 100644 --- a/src/windows-emulator/devices/named_pipe.hpp +++ b/src/windows-emulator/devices/named_pipe.hpp @@ -32,4 +32,4 @@ class named_pipe : public io_device_container void deserialize_object(utils::buffer_deserializer&) override { } -}; \ No newline at end of file +}; diff --git a/src/windows-emulator/minidump_loader.hpp b/src/windows-emulator/minidump_loader.hpp index c7b2fe1b..0f4fb799 100644 --- a/src/windows-emulator/minidump_loader.hpp +++ b/src/windows-emulator/minidump_loader.hpp @@ -6,4 +6,4 @@ class windows_emulator; namespace minidump_loader { void load_minidump_into_emulator(windows_emulator& win_emu, const std::filesystem::path& minidump_path); -} \ No newline at end of file +} diff --git a/src/windows-emulator/syscalls/token.cpp b/src/windows-emulator/syscalls/token.cpp index d069dda4..00146eb8 100644 --- a/src/windows-emulator/syscalls/token.cpp +++ b/src/windows-emulator/syscalls/token.cpp @@ -366,4 +366,4 @@ namespace syscalls // puts("NtQuerySecurityAttributesToken not supported"); return STATUS_NOT_SUPPORTED; } -} \ No newline at end of file +}