From 014732b9223fa92090751f5cb94f9d1828b507e2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 29 Nov 2026 01:16:13 +0000 Subject: [PATCH] Format source code (auto generated) --- sources/lite_format.cpp | 3 ++- sources/lite_format.h | 6 ++++-- sources/stat_workaround.h | 10 +++++----- sources/tags.h | 39 ++++++++++++++++++--------------------- 4 files changed, 29 insertions(+), 29 deletions(-) diff --git a/sources/lite_format.cpp b/sources/lite_format.cpp index 12ba4f0d..769f0ca8 100644 --- a/sources/lite_format.cpp +++ b/sources/lite_format.cpp @@ -149,7 +149,8 @@ namespace explicit AESSIVBasedNameTranslator(const key_type& name_master_key) : name_master_key_(name_master_key) , name_aes_siv_( - [this]() { + [this]() + { return std::make_unique(name_master_key_.data(), name_master_key_.size()); }) diff --git a/sources/lite_format.h b/sources/lite_format.h index c8abcaee..4db67e24 100644 --- a/sources/lite_format.h +++ b/sources/lite_format.h @@ -45,12 +45,14 @@ class StreamOpener : public lite::AESGCMCryptStream::ParamCalculator , max_padding_size_(max_padding_size) , verify_(verify) , content_ecb( - [this]() { + [this]() + { return std::make_unique(content_master_key_.data(), content_master_key_.size()); }) , padding_ecb( - [this]() { + [this]() + { return std::make_unique(padding_master_key_.data(), padding_master_key_.size()); }) diff --git a/sources/stat_workaround.h b/sources/stat_workaround.h index ae96f97b..d93869bf 100644 --- a/sources/stat_workaround.h +++ b/sources/stat_workaround.h @@ -10,7 +10,7 @@ namespace securefs #define GENERATE_TIME_HELPER(PREFIX) \ template \ constexpr inline auto has_##PREFIX##tim(std::nullptr_t) \ - ->decltype(std::declval().st_##PREFIX##tim, true) \ + -> decltype(std::declval().st_##PREFIX##tim, true) \ { \ return true; \ } \ @@ -54,8 +54,8 @@ GENERATE_TIME_HELPER(c) #undef GENERATE_TIME_HELPER template -constexpr inline auto has_birthtim(std::nullptr_t) -> decltype(std::declval().st_birthtim, - true) +constexpr inline auto has_birthtim(std::nullptr_t) + -> decltype(std::declval().st_birthtim, true) { return true; } @@ -67,8 +67,8 @@ constexpr inline auto has_birthtim(...) } template -constexpr inline auto -has_birthtimespec(std::nullptr_t) -> decltype(std::declval().st_birthtimespec, true) +constexpr inline auto has_birthtimespec(std::nullptr_t) + -> decltype(std::declval().st_birthtimespec, true) { return true; } diff --git a/sources/tags.h b/sources/tags.h index 5ed5fd51..bfe56704 100644 --- a/sources/tags.h +++ b/sources/tags.h @@ -68,68 +68,65 @@ struct StrongType // Arithmetic operators template - auto operator+(const StrongType& other) const -> decltype(std::declval() + std::declval(), - StrongType(std::declval())) + auto operator+(const StrongType& other) const + -> decltype(std::declval() + std::declval(), StrongType(std::declval())) { return StrongType(value + other.value); } template - auto operator-(const StrongType& other) const -> decltype(std::declval() - std::declval(), - StrongType(std::declval())) + auto operator-(const StrongType& other) const + -> decltype(std::declval() - std::declval(), StrongType(std::declval())) { return StrongType(value - other.value); } template - auto operator*(const StrongType& other) const -> decltype(std::declval() * std::declval(), - StrongType(std::declval())) + auto operator*(const StrongType& other) const + -> decltype(std::declval() * std::declval(), StrongType(std::declval())) { return StrongType(value * other.value); } template - auto operator/(const StrongType& other) const -> decltype(std::declval() / std::declval(), - StrongType(std::declval())) + auto operator/(const StrongType& other) const + -> decltype(std::declval() / std::declval(), StrongType(std::declval())) { return StrongType(value / other.value); } // Comparison operators template - auto operator<(const StrongType& other) const -> decltype(std::declval() < std::declval(), - bool()) + auto operator<(const StrongType& other) const + -> decltype(std::declval() < std::declval(), bool()) { return value < other.value; } template - auto operator>(const StrongType& other) const -> decltype(std::declval() > std::declval(), - bool()) + auto operator>(const StrongType& other) const + -> decltype(std::declval() > std::declval(), bool()) { return value > other.value; } template - auto operator==(const StrongType& other) const -> decltype(std::declval() - == std::declval(), - bool()) + auto operator==(const StrongType& other) const + -> decltype(std::declval() == std::declval(), bool()) { return value == other.value; } template - auto operator<=(const StrongType& other) const -> decltype(std::declval() - <= std::declval(), - bool()) + auto operator<=(const StrongType& other) const + -> decltype(std::declval() <= std::declval(), bool()) { return value <= other.value; } template - auto operator>=(const StrongType& other) const -> decltype(std::declval() - >= std::declval(), - bool()) + auto operator>=(const StrongType& other) const + -> decltype(std::declval() >= std::declval(), bool()) { return value >= other.value; }