mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-28 17:19:34 +08:00
Changed clang formatting for templates
This commit is contained in:
@@ -24,6 +24,12 @@ void err_handler_example();
|
||||
namespace spd = spdlog;
|
||||
int main(int, char *[])
|
||||
{
|
||||
fmt::MemoryWriter w;
|
||||
w.write("HELLO", 10);
|
||||
std::string s(w.data(), w.size());
|
||||
std::cout << s << std::endl;
|
||||
return 0;
|
||||
|
||||
try
|
||||
{
|
||||
// Console logger with color
|
||||
@@ -133,7 +139,7 @@ void android_example()
|
||||
struct my_type
|
||||
{
|
||||
int i;
|
||||
template <typename OStream> friend OStream &operator<<(OStream &os, const my_type &c)
|
||||
template<typename OStream> friend OStream &operator<<(OStream &os, const my_type &c)
|
||||
{
|
||||
return os << "[my_type i=" << c.i << "]";
|
||||
}
|
||||
|
@@ -133,7 +133,7 @@ void android_example()
|
||||
struct my_type
|
||||
{
|
||||
int i;
|
||||
template <typename OStream> friend OStream &operator<<(OStream &os, const my_type &c)
|
||||
template<typename OStream> friend OStream &operator<<(OStream &os, const my_type &c)
|
||||
{
|
||||
return os << "[my_type i=" << c.i << "]";
|
||||
}
|
||||
|
@@ -11,7 +11,7 @@
|
||||
|
||||
namespace utils {
|
||||
|
||||
template <typename T> inline std::string format(const T &value)
|
||||
template<typename T> inline std::string format(const T &value)
|
||||
{
|
||||
static std::locale loc("");
|
||||
std::stringstream ss;
|
||||
@@ -20,7 +20,7 @@ template <typename T> inline std::string format(const T &value)
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
template <> inline std::string format(const double &value)
|
||||
template<> inline std::string format(const double &value)
|
||||
{
|
||||
static std::locale loc("");
|
||||
std::stringstream ss;
|
||||
|
Reference in New Issue
Block a user