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
145009b4
Commit
145009b4
authored
Jul 11, 2023
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update clang-format to version 16
parent
f39e3fea
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
8 deletions
+12
-8
.github/workflows/check-formatting.yml
.github/workflows/check-formatting.yml
+2
-2
libcaf_core/caf/node_id.hpp
libcaf_core/caf/node_id.hpp
+1
-3
libcaf_core/caf/type_id.hpp
libcaf_core/caf/type_id.hpp
+3
-1
libcaf_core/test/nasty.hpp
libcaf_core/test/nasty.hpp
+6
-2
No files found.
.github/workflows/check-formatting.yml
View file @
145009b4
...
...
@@ -12,4 +12,4 @@ jobs:
-
name
:
Run clang-format.
uses
:
jidicula/clang-format-action@v4.10.1
with
:
clang-format-version
:
'
1
5
'
clang-format-version
:
'
1
6
'
libcaf_core/caf/node_id.hpp
View file @
145009b4
...
...
@@ -159,9 +159,7 @@ public:
template
<
class
Inspector
>
friend
bool
inspect
(
Inspector
&
f
,
node_id
&
x
)
{
auto
is_present
=
[
&
x
]
{
return
x
.
data_
!=
nullptr
;
};
auto
get
=
[
&
]()
->
const
auto
&
{
return
x
.
data_
->
content
;
};
auto
get
=
[
&
]()
->
const
auto
&
{
return
x
.
data_
->
content
;
};
auto
reset
=
[
&
x
]
{
x
.
data_
.
reset
();
};
auto
set
=
[
&
x
](
node_id_data
::
variant_type
&&
val
)
{
if
(
x
.
data_
&&
x
.
data_
->
unique
())
...
...
libcaf_core/caf/type_id.hpp
View file @
145009b4
...
...
@@ -333,7 +333,9 @@ public:
[[maybe_unused]] constexpr bool operator!=(atom_name, atom_name) { \
return false; \
} \
inline std::string to_string(atom_name) { return atom_text; } \
inline std::string to_string(atom_name) { \
return atom_text; \
} \
template <class Inspector> \
auto inspect(Inspector& f, atom_name& x) { \
return f.object(x).fields(); \
...
...
libcaf_core/test/nasty.hpp
View file @
145009b4
...
...
@@ -48,8 +48,12 @@ private: \
type name##_ = type{}; \
\
public: \
const auto& name() const noexcept { return name##_; } \
void name(type value) { name##_ = std::move(value); }
const auto& name() const noexcept { \
return name##_; \
} \
void name(type value) { \
name##_ = std::move(value); \
}
// A mean data type designed for maximum coverage of the inspect API.
class
nasty
{
...
...
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