clang-format

This commit is contained in:
gabime 2019-12-13 18:26:36 +02:00
parent 62ecc04212
commit a056b9115b
4 changed files with 3 additions and 4 deletions

View File

@ -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:

View File

@ -79,7 +79,7 @@ SPDLOG_INLINE std::unordered_map<std::string, std::string> 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;

View File

@ -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

View File

@ -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];