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 Sep 18, 2024
1 parent 3c63b2b commit f8dd659
Show file tree
Hide file tree
Showing 33 changed files with 43 additions and 43 deletions.
22 changes: 11 additions & 11 deletions modules/atom.sysinfo/component.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,42 +35,42 @@ ATOM_MODULE(atom_io, [](Component &component) {
component.def("logical_cpus", &getNumberOfPhysicalCPUs, "cpu",
"Get number of logical CPUs");
component.def("cache_sizes", &getCacheSizes, "cpu", "Get CPU cache sizes");

// ------------------------------------------------------------
// Memory
// ------------------------------------------------------------

component.def("memory_usage", &getMemoryUsage, "memory",
"Get current memory usage percentage");
component.def("total_memory", &getTotalMemorySize, "memory",
component.def("total_memory", &getTotalMemorySize, "memory",
"Get total memory size");
component.def("available_memory", &getAvailableMemorySize, "memory",
component.def("available_memory", &getAvailableMemorySize, "memory",
"Get available memory size");
component.def("physical_memory_info", &getPhysicalMemoryInfo, "memory",
"Get physical memory slot info");
component.def("virtual_memory_max", &getVirtualMemoryMax, "memory",
component.def("virtual_memory_max", &getVirtualMemoryMax, "memory",
"Get virtual memory max size");
component.def("virtual_memory_used", &getVirtualMemoryUsed, "memory",
"Get virtual memory used size");
component.def("swap_memory_total", &getSwapMemoryTotal, "memory",
component.def("swap_memory_total", &getSwapMemoryTotal, "memory",
"Get swap memory total size");
component.def("swap_memory_used", &getSwapMemoryUsed, "memory",
component.def("swap_memory_used", &getSwapMemoryUsed, "memory",
"Get swap memory used size");
component.def("committed_memory", &getCommittedMemory, "memory",
component.def("committed_memory", &getCommittedMemory, "memory",
"Get committed memory");
component.def("uncommitted_memory", &getUncommittedMemory, "memory",
component.def("uncommitted_memory", &getUncommittedMemory, "memory",
"Get uncommitted memory");

component.defType<MemoryInfo>("memory_info");
component.defType<MemoryInfo::MemorySlot>("memory_slot");
component.def_v("memory_slot_type", &MemoryInfo::MemorySlot::type, "memory_slot",
"Get memory slot type");
component.def("memory_slot_capacity", &MemoryInfo::MemorySlot::capacity, "memory_slot",
component.def("memory_slot_capacity", &MemoryInfo::MemorySlot::capacity, "memory_slot",
"Get memory slot capacity");
component.def("memory_slot_clock_speed", &MemoryInfo::MemorySlot::clockSpeed, "memory_slot",
component.def("memory_slot_clock_speed", &MemoryInfo::MemorySlot::clockSpeed, "memory_slot",
"Get memory slot clock speed");


// ------------------------------------------------------------
// Disk
// ------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/atom/function/abi.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,4 +217,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/any.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -371,4 +371,4 @@ auto makeBoxedValue(T&& value, bool is_return_value = false,

} // namespace atom::meta

#endif // ATOM_META_ANY_HPP
#endif // ATOM_META_ANY_HPP
2 changes: 1 addition & 1 deletion src/atom/function/anymeta.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,4 +290,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 @@ -114,4 +114,4 @@ constexpr auto bindFirst(F &&func, O &&object)
}
} // 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 @@ -333,4 +333,4 @@ concept Iterator = requires(T iter) {
};
#endif

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

} // namespace atom::meta

#endif // ATOM_META_DECORATE_HPP
#endif // ATOM_META_DECORATE_HPP
2 changes: 1 addition & 1 deletion src/atom/function/field_count.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,4 @@ consteval auto fieldCountOf() noexcept -> std::size_t {

} // namespace atom::meta

#endif // ATOM_META_FIELD_COUNT_HPP
#endif // ATOM_META_FIELD_COUNT_HPP
2 changes: 1 addition & 1 deletion src/atom/function/global_ptr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ void GlobalSharedPtrManager::printSharedPtrMap() const {
std::cout << " " << pair.first << "\n";
}
#endif
}
}
2 changes: 1 addition & 1 deletion src/atom/function/global_ptr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,4 +338,4 @@ void GlobalSharedPtrManager::deleteObject(const std::string &key, T *ptr) {
}
}

#endif // ATOM_META_GLOBAL_PTR_HPP
#endif // ATOM_META_GLOBAL_PTR_HPP
2 changes: 1 addition & 1 deletion src/atom/function/god.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -472,4 +472,4 @@ constexpr auto hasVirtualDestructor() -> bool {

} // namespace atom::meta

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

#endif
#endif
2 changes: 1 addition & 1 deletion src/atom/function/proxy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -393,4 +393,4 @@ class TimerProxyFunction : public BaseProxyFunction<Func> {
};
} // namespace atom::meta

#endif
#endif
2 changes: 1 addition & 1 deletion src/atom/function/proxy_params.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@ class FunctionParams {
std::vector<std::any> params_;
};

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

} // namespace atom::meta

#endif
#endif
2 changes: 1 addition & 1 deletion src/atom/function/stepper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ class FunctionSequence {
};
} // namespace atom::meta

#endif // ATOM_META_SEQUENCE_HPP
#endif // ATOM_META_SEQUENCE_HPP
2 changes: 1 addition & 1 deletion src/atom/function/type_caster.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,4 +242,4 @@ class TypeCaster {

} // namespace atom::meta

#endif // ATOM_META_TYPE_CASTER_HPP
#endif // ATOM_META_TYPE_CASTER_HPP
2 changes: 1 addition & 1 deletion src/atom/function/type_info.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,4 +317,4 @@ struct hash<atom::meta::TypeInfo> {
}
};
} // namespace std
#endif
#endif
2 changes: 1 addition & 1 deletion src/atom/function/vany.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,4 +271,4 @@ class Any {
};
} // namespace atom::meta

#endif
#endif
2 changes: 1 addition & 1 deletion src/atom/io/glob.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -420,4 +420,4 @@ static ATOM_INLINE auto rglob(const std::initializer_list<std::string>
return rglob(std::vector<std::string>(pathnames));
}

} // namespace atom::io
} // namespace atom::io
2 changes: 1 addition & 1 deletion src/atom/io/pushd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,4 +192,4 @@ auto DirectoryStack::isEmpty() const -> bool { return impl_->dirStack.empty(); }
void DirectoryStack::showCurrentDirectory() const {
LOG_F(INFO, "Current Directory: {}",
std::filesystem::current_path().string());
}
}
2 changes: 1 addition & 1 deletion src/atom/io/pushd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,4 @@ class DirectoryStack {
impl_; ///< Pointer to the implementation.
};

#endif // DIRECTORYSTACK_H
#endif // DIRECTORYSTACK_H
2 changes: 1 addition & 1 deletion src/atom/system/crash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,4 @@ void saveCrashLog(std::string_view error_msg) {
}
}

} // namespace atom::system
} // namespace atom::system
2 changes: 1 addition & 1 deletion src/atom/utils/aligned.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ class ValidateAlignedStorage {

} // namespace atom::utils

#endif // ATOM_UTILS_ALIGNED_HPP
#endif // ATOM_UTILS_ALIGNED_HPP
2 changes: 1 addition & 1 deletion src/atom/utils/argsview.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -360,4 +360,4 @@ ATOM_INLINE auto ArgumentParser::anyToString(const std::any& value)

} // namespace atom::utils

#endif
#endif
2 changes: 1 addition & 1 deletion src/atom/utils/bit.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,4 @@ constexpr auto splitMask(T mask,

} // namespace atom::utils

#endif
#endif
2 changes: 1 addition & 1 deletion src/atom/utils/switch.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,4 +202,4 @@ class StringSwitch : public NonCopyable {

} // namespace atom::utils

#endif
#endif
2 changes: 1 addition & 1 deletion src/atom/utils/xml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,4 +221,4 @@ tinyxml2::XMLElement *XMLReader::getElementByPath(
}
return element;
}
} // namespace atom::utils
} // namespace atom::utils
2 changes: 1 addition & 1 deletion src/target/engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,4 +271,4 @@ class SearchEngine {

} // namespace lithium::target

#endif
#endif
2 changes: 1 addition & 1 deletion src/target/engine.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,4 +299,4 @@ class SearchEngine {

} // namespace lithium::target

#endif
#endif
2 changes: 1 addition & 1 deletion src/target/favorites.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,4 +228,4 @@ void FavoritesManager<T>::analyzeFavorites() const {
}
} // namespace lithium::target

#endif // LITHIUM_TARGET_FAVORITES_HPP
#endif // LITHIUM_TARGET_FAVORITES_HPP
2 changes: 1 addition & 1 deletion src/tools/libastro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,4 +227,4 @@ auto horizontalToEquatorial(const HorizontalCoordinates& object,
return {rightAscension, declination};
}

} // namespace lithium
} // namespace lithium
2 changes: 1 addition & 1 deletion src/tools/libastro.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ auto applyPrecession(const EquatorialCoordinates& position,
double fromJulianDate,
double toJulianDate) -> EquatorialCoordinates;

} // namespace lithium
} // namespace lithium

0 comments on commit f8dd659

Please sign in to comment.