aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/utility/Logger.hpp
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2023-10-29 15:11:10 +0100
committer hop311 <hop3114@gmail.com>2023-10-29 21:08:08 +0100
commit1b5e43fa7750cc4025d32f18390593cbce3ba842 (patch)
treed37fcb69766ec029ea4e3e2816c419f9d7e05f7c /src/openvic-simulation/utility/Logger.hpp
parent164264b047921dbe1567d2af183e1cffb200a8cb (diff)
Clang-format formatting (with manual cleanup)
Diffstat (limited to 'src/openvic-simulation/utility/Logger.hpp')
-rw-r--r--src/openvic-simulation/utility/Logger.hpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/openvic-simulation/utility/Logger.hpp b/src/openvic-simulation/utility/Logger.hpp
index b2395ac..a1c599d 100644
--- a/src/openvic-simulation/utility/Logger.hpp
+++ b/src/openvic-simulation/utility/Logger.hpp
@@ -23,8 +23,9 @@ namespace OpenVic {
source_location(std::string f, int l, std::string n) : _file(f), _line(l), _function(n) {}
public:
- static source_location current(std::string f = __builtin_FILE(), int l = __builtin_LINE(),
- std::string n = __builtin_FUNCTION()) {
+ static source_location current(
+ std::string f = __builtin_FILE(), int l = __builtin_LINE(), std::string n = __builtin_FUNCTION()
+ ) {
return source_location(f, l, n);
}
@@ -83,7 +84,7 @@ namespace OpenVic {
#define LOG_FUNC(name) \
private: \
- static inline log_channel_t name##_channel{}; \
+ static inline log_channel_t name##_channel {}; \
public: \
static inline void set_##name##_func(log_func_t log_func) { \
name##_channel.func = log_func; \
@@ -91,7 +92,7 @@ namespace OpenVic {
template<typename... Ts> \
struct name { \
name(Ts&&... ts, source_location const& location = source_location::current()) { \
- log<Ts...>{ name##_channel, std::forward<Ts>(ts)..., location }; \
+ log<Ts...> { name##_channel, std::forward<Ts>(ts)..., location }; \
} \
}; \
template<typename... Ts> \