Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
spdlog
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
spdlog
Commits
70bef682
Commit
70bef682
authored
Oct 19, 2018
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed clang-tidy warning about implicit conversion to string_view
parent
c2a9bf99
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
10 deletions
+5
-10
include/spdlog/details/log_msg.h
include/spdlog/details/log_msg.h
+0
-5
include/spdlog/details/pattern_formatter.h
include/spdlog/details/pattern_formatter.h
+2
-2
include/spdlog/details/thread_pool.h
include/spdlog/details/thread_pool.h
+1
-1
include/spdlog/sinks/android_sink.h
include/spdlog/sinks/android_sink.h
+1
-1
include/spdlog/sinks/syslog_sink.h
include/spdlog/sinks/syslog_sink.h
+1
-1
No files found.
include/spdlog/details/log_msg.h
View file @
70bef682
...
...
@@ -45,11 +45,6 @@ struct log_msg
mutable
size_t
color_range_start
{
0
};
mutable
size_t
color_range_end
{
0
};
operator
fmt
::
string_view
()
const
SPDLOG_NOEXCEPT
{
return
payload
;
}
const
fmt
::
string_view
payload
;
};
}
// namespace details
...
...
include/spdlog/details/pattern_formatter.h
View file @
70bef682
...
...
@@ -404,7 +404,7 @@ class v_formatter final : public flag_formatter
{
void
format
(
const
details
::
log_msg
&
msg
,
const
std
::
tm
&
,
fmt
::
memory_buffer
&
dest
)
override
{
fmt_helper
::
append_string_view
(
msg
,
dest
);
fmt_helper
::
append_string_view
(
msg
.
payload
,
dest
);
}
};
...
...
@@ -530,7 +530,7 @@ class full_formatter final : public flag_formatter
dest
.
push_back
(
']'
);
dest
.
push_back
(
' '
);
// fmt_helper::append_string_view(msg.msg(), dest);
fmt_helper
::
append_string_view
(
msg
,
dest
);
fmt_helper
::
append_string_view
(
msg
.
payload
,
dest
);
}
private:
...
...
include/spdlog/details/thread_pool.h
View file @
70bef682
...
...
@@ -78,7 +78,7 @@ struct async_msg
,
msg_id
(
m
.
msg_id
)
,
worker_ptr
(
std
::
move
(
worker
))
{
fmt_helper
::
append_string_view
(
m
,
raw
);
fmt_helper
::
append_string_view
(
m
.
payload
,
raw
);
}
async_msg
(
async_logger_ptr
&&
worker
,
async_msg_type
the_type
)
...
...
include/spdlog/sinks/android_sink.h
View file @
70bef682
...
...
@@ -47,7 +47,7 @@ protected:
fmt
::
memory_buffer
formatted
;
if
(
use_raw_msg_
)
{
details
::
fmt_helper
::
append_string_view
(
msg
,
formatted
);
details
::
fmt_helper
::
append_string_view
(
msg
.
payload
,
formatted
);
}
else
{
...
...
include/spdlog/sinks/syslog_sink.h
View file @
70bef682
...
...
@@ -53,7 +53,7 @@ public:
protected:
void
sink_it_
(
const
details
::
log_msg
&
msg
)
override
{
::
syslog
(
syslog_prio_from_level
(
msg
),
"%s"
,
fmt
::
to_string
(
msg
).
c_str
());
::
syslog
(
syslog_prio_from_level
(
msg
),
"%s"
,
fmt
::
to_string
(
msg
.
payload
).
c_str
());
}
void
flush_
()
override
{}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment