1
0
mirror of https://github.com/gabime/spdlog.git synced 2025-03-29 09:22:41 +08:00

clang-format

This commit is contained in:
gabime 2019-06-14 00:23:51 +03:00
parent c09dee7717
commit db5af8ead1
4 changed files with 9 additions and 10 deletions

View File

@ -26,7 +26,6 @@ using namespace utils;
void bench_mt(int howmany, std::shared_ptr<spdlog::logger> log, int thread_count);
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 4996) // disable fopen warning under msvc
@ -130,7 +129,8 @@ int main(int argc, char *argv[])
{
auto tp = std::make_shared<details::thread_pool>(queue_size, 1);
auto file_sink = std::make_shared<spdlog::sinks::basic_file_sink_mt>(filename, true);
auto logger = std::make_shared<async_logger>("async_logger", std::move(file_sink), std::move(tp), async_overflow_policy::overrun_oldest);
auto logger =
std::make_shared<async_logger>("async_logger", std::move(file_sink), std::move(tp), async_overflow_policy::overrun_oldest);
bench_mt(howmany, std::move(logger), threads);
}
spdlog::shutdown();

View File

@ -301,4 +301,3 @@ TEST_CASE("full filename formatter", "[pattern_formatter]")
formatter.format(msg, formatted);
REQUIRE(fmt::to_string(formatted) == "/a/b/c/d/myfile.cpp:123");
}