mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-26 10:31:34 +08:00
clang-format
This commit is contained in:
parent
963f8d3485
commit
0a5ada6411
@ -254,7 +254,6 @@ void android_example()
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// Log patterns can contain custom flags.
|
// Log patterns can contain custom flags.
|
||||||
// this will add custom flag '%*' which will be bound to a <my_formatter_flag> instance
|
// this will add custom flag '%*' which will be bound to a <my_formatter_flag> instance
|
||||||
#include "spdlog/pattern_formatter.h"
|
#include "spdlog/pattern_formatter.h"
|
||||||
|
@ -308,7 +308,9 @@ TEST_CASE("clone-formatter-2", "[pattern_formatter]")
|
|||||||
class custom_test_flag : public spdlog::custom_flag_formatter
|
class custom_test_flag : public spdlog::custom_flag_formatter
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
custom_test_flag(std::string txt) : some_txt{std::move(txt)} {}
|
custom_test_flag(std::string txt)
|
||||||
|
: some_txt{std::move(txt)}
|
||||||
|
{}
|
||||||
|
|
||||||
void format(const spdlog::details::log_msg &, const std::tm &, spdlog::memory_buf_t &dest) override
|
void format(const spdlog::details::log_msg &, const std::tm &, spdlog::memory_buf_t &dest) override
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user