Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
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
Operations
Operations
Metrics
Environments
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
cpp-libs
Actor Framework
Commits
1e2368c9
Commit
1e2368c9
authored
Nov 19, 2018
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix comment style and misspelled variable
parent
e75c0e68
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
libcaf_core/src/logger.cpp
libcaf_core/src/logger.cpp
+4
-4
No files found.
libcaf_core/src/logger.cpp
View file @
1e2368c9
...
...
@@ -70,9 +70,9 @@ constexpr string_view anon_ns[] = {
"`anonymous-namespace'"
,
// MSVC
};
//
/
Reduces symbol by printing all prefixes to `out` and returning the
//
/
remainder. For example, "ns::foo::bar" prints "ns.foo" to `out` and returns
//
/
"bar".
// Reduces symbol by printing all prefixes to `out` and returning the
// remainder. For example, "ns::foo::bar" prints "ns.foo" to `out` and returns
// "bar".
string_view
reduce_symbol
(
std
::
ostream
&
out
,
string_view
symbol
)
{
auto
skip
=
[
&
](
string_view
str
)
{
if
(
starts_with
(
symbol
,
str
))
...
...
@@ -84,7 +84,7 @@ string_view reduce_symbol(std::ostream& out, string_view symbol) {
skip
(
"struct "
);
string_view
last
=
""
;
bool
printed
=
false
;
// Prints the content of `last` and then replaces it with `
x
`.
// Prints the content of `last` and then replaces it with `
y
`.
auto
set_last
=
[
&
](
string_view
y
)
{
if
(
!
last
.
empty
())
{
if
(
printed
)
...
...
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