clang-format

This commit is contained in:
gabime
2020-03-21 15:25:26 +02:00
parent 963f8d3485
commit 0a5ada6411
3 changed files with 11 additions and 10 deletions

View File

@@ -254,7 +254,6 @@ void android_example()
}
#endif
// Log patterns can contain custom flags.
// this will add custom flag '%*' which will be bound to a <my_formatter_flag> instance
#include "spdlog/pattern_formatter.h"
@@ -274,10 +273,10 @@ public:
};
void custom_flags_example()
{
using spdlog::details::make_unique; // for pre c++14
{
using spdlog::details::make_unique; // for pre c++14
auto formatter = make_unique<spdlog::pattern_formatter>();
formatter->add_flag<my_formatter_flag>('*').set_pattern("[%n] [%*] [%^%l%$] %v");
spdlog::set_formatter(std::move(formatter));
formatter->add_flag<my_formatter_flag>('*').set_pattern("[%n] [%*] [%^%l%$] %v");
spdlog::set_formatter(std::move(formatter));
}