mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
clang format
This commit is contained in:
parent
41d879e292
commit
808bc1f4ed
@ -54,7 +54,6 @@ int main(int argc, char *argv[])
|
||||
cout << "******************************************************************"
|
||||
"*************\n";
|
||||
|
||||
|
||||
bench(howmany, spdlog::create<null_sink_st>("null_st"));
|
||||
return 0;
|
||||
|
||||
|
@ -174,7 +174,6 @@ void binary_example()
|
||||
// logger->info("uppercase: {:X}", spdlog::to_hex(buf));
|
||||
// logger->info("uppercase, no delimiters: {:Xs}", spdlog::to_hex(buf));
|
||||
// logger->info("uppercase, no delimiters, no position info: {:Xsp}", spdlog::to_hex(buf));
|
||||
|
||||
}
|
||||
|
||||
// create logger with 2 targets with different log levels and formats
|
||||
|
@ -21,7 +21,6 @@
|
||||
// char buf[128];
|
||||
// logger->info("Some buffer {:X}", spdlog::to_hex(std::begin(buf), std::end(buf)));
|
||||
|
||||
|
||||
namespace spdlog {
|
||||
namespace details {
|
||||
|
||||
@ -30,15 +29,22 @@ class bytes_range
|
||||
{
|
||||
public:
|
||||
bytes_range(It range_begin, It range_end)
|
||||
: begin_(range_begin), end_(range_end)
|
||||
{}
|
||||
: begin_(range_begin)
|
||||
, end_(range_end)
|
||||
{
|
||||
}
|
||||
|
||||
It begin() const {return begin_;}
|
||||
It end() const {return end_;}
|
||||
It begin() const
|
||||
{
|
||||
return begin_;
|
||||
}
|
||||
It end() const
|
||||
{
|
||||
return end_;
|
||||
}
|
||||
|
||||
private:
|
||||
It begin_, end_;
|
||||
|
||||
};
|
||||
} // namespace details
|
||||
|
||||
@ -58,7 +64,6 @@ inline details::bytes_range<It> to_hex(const It range_begin, const It range_end)
|
||||
return details::bytes_range<It>(range_begin, range_end);
|
||||
}
|
||||
|
||||
|
||||
} // namespace spdlog
|
||||
|
||||
namespace fmt {
|
||||
|
@ -135,8 +135,6 @@ TEST_CASE("clone async", "[clone]")
|
||||
spdlog::drop_all();
|
||||
}
|
||||
|
||||
|
||||
|
||||
#include "spdlog/fmt/bin_to_hex.h"
|
||||
|
||||
TEST_CASE("to_hex", "[to_hex]")
|
||||
|
Loading…
Reference in New Issue
Block a user