Reformat code, rename reformat-source

This commit is contained in:
badaix 2025-02-07 16:40:14 +01:00
parent 94edf2df7c
commit 67fd20619d
2 changed files with 4 additions and 3 deletions

View file

@ -6,7 +6,7 @@ if(CLANG_FORMAT)
list(REMOVE_ITEM CHECK_CXX_SOURCE_FILES "${CMAKE_SOURCE_DIR}/common/json.hpp")
add_custom_target(
reformat-source
reformat-c++
COMMAND ${CLANG_FORMAT} -i -style=file ${CHECK_CXX_SOURCE_FILES}
COMMENT "Auto formatting of all source files with ${CLANG_FORMAT}")
endif()

View file

@ -46,10 +46,11 @@ public:
readVal(stream, message);
}
uint32_t getSize() const override{
uint32_t getSize() const override
{
return static_cast<uint32_t>(sizeof(uint32_t) // code
+ sizeof(uint32_t) // message len
+ message.size()); // message;
+ message.size()); // message;
}
/// error code