Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 27, 2024
1 parent 7f3402d commit da8a9da
Show file tree
Hide file tree
Showing 19 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion src/atom/function/abi.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,4 +233,4 @@ class DemangleHelper {
};
} // namespace atom::meta

#endif // ATOM_META_ABI_HPP
#endif // ATOM_META_ABI_HPP
2 changes: 1 addition & 1 deletion src/atom/function/anymeta.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,4 +315,4 @@ class TypeRegistrar {

} // namespace atom::meta

#endif // ATOM_META_ANYMETA_HPP
#endif // ATOM_META_ANYMETA_HPP
2 changes: 1 addition & 1 deletion src/atom/function/bind_first.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,4 +150,4 @@ constexpr auto bindFirstWithExceptionHandling(Ret (*func)(P1, Param...),

} // namespace atom::meta

#endif // ATOM_META_BIND_FIRST_HPP
#endif // ATOM_META_BIND_FIRST_HPP
2 changes: 1 addition & 1 deletion src/atom/function/concept.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -358,4 +358,4 @@ concept AsyncResult = Future<T> || Promise<T>;

#endif

#endif
#endif
2 changes: 1 addition & 1 deletion src/atom/function/constructor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,4 +242,4 @@ auto customConstructor(CustomConstructor custom_constructor) {

} // namespace atom::meta

#endif // ATOM_META_CONSTRUCTOR_HPP
#endif // ATOM_META_CONSTRUCTOR_HPP
2 changes: 1 addition & 1 deletion src/atom/function/decorate.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -380,4 +380,4 @@ auto makeAsyncDecorator(Func&& func) {

} // namespace atom::meta

#endif // ATOM_META_DECORATE_HPP
#endif // ATOM_META_DECORATE_HPP
2 changes: 1 addition & 1 deletion src/atom/function/enum.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -393,4 +393,4 @@ constexpr auto bitmask_to_enum(std::underlying_type_t<T> bitmask) noexcept
return std::nullopt;
}

#endif // ATOM_META_ENUM_HPP
#endif // ATOM_META_ENUM_HPP
2 changes: 1 addition & 1 deletion src/atom/function/ffi.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -371,4 +371,4 @@ class LibraryObject {

} // namespace atom::meta

#endif // ATOM_META_FFI_HPP
#endif // ATOM_META_FFI_HPP
2 changes: 1 addition & 1 deletion src/atom/function/invoke.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -330,4 +330,4 @@ auto batchCall(Func &&func, const std::vector<std::tuple<Args...>> &argsList) {
return results;
}

#endif // ATOM_META_INVOKE_HPP
#endif // ATOM_META_INVOKE_HPP
2 changes: 1 addition & 1 deletion src/atom/function/property.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -402,4 +402,4 @@ public: \
Property<Type>(Name) = Property<Type>( \
nullptr, [this](const Type& value) { Name##_ = value; });

#endif // ATOM_META_PROPERTY_HPP
#endif // ATOM_META_PROPERTY_HPP
2 changes: 1 addition & 1 deletion src/atom/function/signature.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,4 +150,4 @@ constexpr auto parseFunctionDefinition(

} // namespace atom::meta

#endif // ATOM_META_SIGNATURE_HPP
#endif // ATOM_META_SIGNATURE_HPP
4 changes: 2 additions & 2 deletions src/atom/function/stepper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ class FunctionSequence {
mutable std::shared_mutex cacheMutex_;

// Generate a cache key based on the arguments
static auto generateCacheKey(const std::vector<std::any>& args)
static auto generateCacheKey(const std::vector<std::any>& args)
-> std::string {
std::string key;
for (const auto& arg : args) {
Expand All @@ -296,4 +296,4 @@ class FunctionSequence {

} // namespace atom::meta

#endif // ATOM_META_SEQUENCE_HPP
#endif // ATOM_META_SEQUENCE_HPP
2 changes: 1 addition & 1 deletion src/atom/image/image_blob.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -359,4 +359,4 @@ using fast_blob = Blob<std::byte, BlobMode::FAST>;

} // namespace atom::image

#endif // ATOM_IMAGE_BLOB_HPP
#endif // ATOM_IMAGE_BLOB_HPP
2 changes: 1 addition & 1 deletion src/atom/macro.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -465,4 +465,4 @@ ATOM_INLINE void unreachable ATOM_NORETURN() {
#define ATOM_VIRTUAL
#endif

#pragma endregion virtual_macros
#pragma endregion virtual_macros
2 changes: 1 addition & 1 deletion src/atom/sysinfo/battery.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ struct BatteryInfo {
[[nodiscard("Result of getBatteryInfo is not used")]] BatteryInfo
getBatteryInfo();
} // namespace atom::system
#endif
#endif
2 changes: 1 addition & 1 deletion tests/atom/sysinfo/battery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ TEST(BatteryInfoFunctionTest, GetBatteryInfo) {
EXPECT_GE(info.energyDesign, 0.0);
EXPECT_GE(info.voltageNow, 0.0);
EXPECT_GE(info.currentNow, 0.0);
}
}
2 changes: 1 addition & 1 deletion tests/atom/sysinfo/cpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ TEST_F(CpuTest, GetCacheSizes) {
ASSERT_GE(cacheSizes.l1d, 0);
ASSERT_GE(cacheSizes.l2, 0);
ASSERT_GE(cacheSizes.l3, 0);
}
}
2 changes: 1 addition & 1 deletion tests/atom/sysinfo/gpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ TEST(GPUInfoTest, GetAllMonitorsInfo_Mac) {
ASSERT_GT(monitor.refreshRate, 0);
}
}
#endif
#endif
2 changes: 1 addition & 1 deletion tests/atom/sysinfo/locale.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ TEST(LocaleTest, PrintLocaleInfo) {
// Since printLocaleInfo only prints to console, we can't directly test its output.
// However, we can ensure it doesn't crash or throw exceptions.
SUCCEED();
}
}

0 comments on commit da8a9da

Please sign in to comment.