From a056b9115be1c0a06cd47e16f760c4f21f2e6432 Mon Sep 17 00:00:00 2001 From: gabime Date: Fri, 13 Dec 2019 18:26:36 +0200 Subject: [PATCH] clang-format --- example/example.cpp | 1 - include/spdlog/cfg/env-inl.h | 2 +- include/spdlog/common-inl.h | 2 +- include/spdlog/details/os-inl.h | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/example/example.cpp b/example/example.cpp index 213448aa..f5689c64 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -116,7 +116,6 @@ void daily_example() auto daily_logger = spdlog::daily_logger_mt("daily_logger", "logs/daily.txt", 2, 30); } - // Load log levels from SPDLOG_LEVEL environment variable if exists. // // set global level to debug: diff --git a/include/spdlog/cfg/env-inl.h b/include/spdlog/cfg/env-inl.h index 54db9dce..59c38cf3 100644 --- a/include/spdlog/cfg/env-inl.h +++ b/include/spdlog/cfg/env-inl.h @@ -79,7 +79,7 @@ SPDLOG_INLINE std::unordered_map extract_key_vals_(con return rv; } -inline details::registry::logger_levels extract_levels_(const std::string& input) +inline details::registry::logger_levels extract_levels_(const std::string &input) { auto key_vals = extract_key_vals_(input); details::registry::logger_levels rv; diff --git a/include/spdlog/common-inl.h b/include/spdlog/common-inl.h index 7138ef10..a59742d9 100644 --- a/include/spdlog/common-inl.h +++ b/include/spdlog/common-inl.h @@ -35,7 +35,7 @@ SPDLOG_INLINE spdlog::level::level_enum from_str(const std::string &name) SPDLOG level++; } // allow warn = warning before giving up - return name == "warn" ? level::warn: level::off; + return name == "warn" ? level::warn : level::off; } } // namespace level diff --git a/include/spdlog/details/os-inl.h b/include/spdlog/details/os-inl.h index e91ea71e..4535a97e 100644 --- a/include/spdlog/details/os-inl.h +++ b/include/spdlog/details/os-inl.h @@ -541,7 +541,7 @@ std::string SPDLOG_INLINE getenv(const char *field) #if defined(_MSC_VER) #if defined(__cplusplus_winrt) - return std::string{}; //not supported under uwp + return std::string{}; // not supported under uwp #else size_t len = 0; char buf[128];