Просмотр исходного кода

chore(quality): satisfy repository clang checks

Apply the configured clang-format layout to the QueueZ null-payload guard.

Align the collectible-link declaration parameter with its definition so the repository's readability-inconsistent-declaration-parameter-name check passes under warnings-as-errors.
Thomas Shields 3 недель назад
Родитель
Сommit
a21fe3456f

+ 2 - 3
Sunrise/src/client/hooks/queuez/svc123_null_payload_guard.cpp

@@ -55,9 +55,8 @@ std::atomic_bool g_reported{false};
  * @param message Borrowed message record, or null.
  * @return The handler's own result, or the not-handled verdict for a skipped message.
  */
-__declspec(noinline) char __fastcall handler(void* self,
-                                             void* context,
-                                             std::byte* message) noexcept {
+__declspec(noinline) char __fastcall
+handler(void* self, void* context, std::byte* message) noexcept {
     std::uintptr_t payload = 0;
     if (message != nullptr) {
         std::memcpy(&payload, message + MessageLayout::payload, sizeof payload);

+ 1 - 1
Sunrise/src/state/build_data/cache/records/validation.h

@@ -47,7 +47,7 @@ valid_socket_plug_links(std::span<const items::socket_plugs::Rule> rules,
  * @return True when each row has its own ordinal and every available item link exists.
  */
 [[nodiscard]] bool
-valid_collectible_links(std::span<const collectibles::Definition> collectibles,
+valid_collectible_links(std::span<const collectibles::Definition> collectibleDefinitions,
                         std::span<const items::Definition> itemDefinitions) noexcept;
 
 /** @param domains Complete sorted domains. @return True when every domain passes its checks. */