refactor: use east const convention (#5409)

This change refactors the codebase to use the "east const convention", and adds a clang-format rule to follow this convention.
This commit is contained in:
Vito Tumas
2025-05-08 13:00:42 +02:00
committed by tequ
parent 6f23308a9a
commit 1696896277
251 changed files with 1057 additions and 1040 deletions

View File

@@ -3166,7 +3166,7 @@ public:
StubHookContext stubCtx{};
stubCtx.slot[3] = {
.storage =
std::reinterpret_pointer_cast<const STObject>(storage),
std::reinterpret_pointer_cast<STObject const>(storage),
.entry = &(*storage)};
auto hookCtx =
makeStubHookContext(applyCtx, alice.id(), alice.id(), stubCtx);
@@ -3320,7 +3320,7 @@ public:
StubHookContext stubCtx{};
stubCtx.slot[1] = {
.storage =
std::reinterpret_pointer_cast<const STObject>(storage),
std::reinterpret_pointer_cast<STObject const>(storage),
.entry = &(*storage)};
auto hookCtx =
makeStubHookContext(applyCtx, alice.id(), alice.id(), stubCtx);