Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
cb784ec3
Commit
cb784ec3
authored
Nov 14, 2013
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add noexcept to various move constructors.
parent
d2689f41
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
8 deletions
+9
-8
dynamic.c++
c++/src/capnp/dynamic.c++
+3
-2
dynamic.h
c++/src/capnp/dynamic.h
+1
-1
layout.h
c++/src/capnp/layout.h
+2
-2
rpc.c++
c++/src/capnp/rpc.c++
+1
-1
rpc.h
c++/src/capnp/rpc.h
+1
-1
io.h
c++/src/kj/io.h
+1
-1
No files found.
c++/src/capnp/dynamic.c++
View file @
cb784ec3
...
...
@@ -1608,13 +1608,14 @@ DynamicValue::Reader DynamicValue::Builder::asReader() const {
return
Reader
();
}
DynamicValue
::
Pipeline
::
Pipeline
(
Pipeline
&&
other
)
:
type
(
other
.
type
)
{
DynamicValue
::
Pipeline
::
Pipeline
(
Pipeline
&&
other
)
noexcept
:
type
(
other
.
type
)
{
switch
(
type
)
{
case
UNKNOWN
:
break
;
case
STRUCT
:
kj
::
ctor
(
structValue
,
kj
::
mv
(
other
.
structValue
));
break
;
case
CAPABILITY
:
kj
::
ctor
(
capabilityValue
,
kj
::
mv
(
other
.
capabilityValue
));
break
;
default
:
KJ_FAIL_ASSERT
(
"Unexpected pipeline type."
,
(
uint
)
type
)
{
type
=
UNKNOWN
;
break
;
}
KJ_LOG
(
ERROR
,
"Unexpected pipeline type."
,
(
uint
)
type
);
type
=
UNKNOWN
;
break
;
}
}
...
...
c++/src/capnp/dynamic.h
View file @
cb784ec3
...
...
@@ -743,7 +743,7 @@ public:
inline
Pipeline
(
DynamicStruct
::
Pipeline
&&
value
);
inline
Pipeline
(
DynamicCapability
::
Client
&&
value
);
Pipeline
(
Pipeline
&&
other
);
Pipeline
(
Pipeline
&&
other
)
noexcept
;
Pipeline
&
operator
=
(
Pipeline
&&
other
);
~
Pipeline
()
noexcept
(
false
);
...
...
c++/src/capnp/layout.h
View file @
cb784ec3
...
...
@@ -706,7 +706,7 @@ class OrphanBuilder {
public
:
inline
OrphanBuilder
()
:
segment
(
nullptr
),
location
(
nullptr
)
{
memset
(
&
tag
,
0
,
sizeof
(
tag
));
}
OrphanBuilder
(
const
OrphanBuilder
&
other
)
=
delete
;
inline
OrphanBuilder
(
OrphanBuilder
&&
other
);
inline
OrphanBuilder
(
OrphanBuilder
&&
other
)
noexcept
;
inline
~
OrphanBuilder
()
noexcept
(
false
);
static
OrphanBuilder
initStruct
(
BuilderArena
*
arena
,
StructSize
size
);
...
...
@@ -1017,7 +1017,7 @@ inline PointerReader ListReader::getPointerElement(ElementCount index) const {
// -------------------------------------------------------------------
inline
OrphanBuilder
::
OrphanBuilder
(
OrphanBuilder
&&
other
)
inline
OrphanBuilder
::
OrphanBuilder
(
OrphanBuilder
&&
other
)
noexcept
:
segment
(
other
.
segment
),
location
(
other
.
location
)
{
memcpy
(
&
tag
,
&
other
.
tag
,
sizeof
(
tag
));
// Needs memcpy to comply with aliasing rules.
other
.
segment
=
nullptr
;
...
...
c++/src/capnp/rpc.c++
View file @
cb784ec3
...
...
@@ -1982,7 +1982,7 @@ private:
RpcSystemBase
::
RpcSystemBase
(
VatNetworkBase
&
network
,
kj
::
Maybe
<
SturdyRefRestorerBase
&>
restorer
,
const
kj
::
EventLoop
&
eventLoop
)
:
impl
(
kj
::
heap
<
Impl
>
(
network
,
restorer
,
eventLoop
))
{}
RpcSystemBase
::
RpcSystemBase
(
RpcSystemBase
&&
other
)
=
default
;
RpcSystemBase
::
RpcSystemBase
(
RpcSystemBase
&&
other
)
noexcept
=
default
;
RpcSystemBase
::~
RpcSystemBase
()
noexcept
(
false
)
{}
Capability
::
Client
RpcSystemBase
::
baseRestore
(
...
...
c++/src/capnp/rpc.h
View file @
cb784ec3
...
...
@@ -82,7 +82,7 @@ class RpcSystemBase {
public
:
RpcSystemBase
(
VatNetworkBase
&
network
,
kj
::
Maybe
<
SturdyRefRestorerBase
&>
restorer
,
const
kj
::
EventLoop
&
eventLoop
);
RpcSystemBase
(
RpcSystemBase
&&
other
);
RpcSystemBase
(
RpcSystemBase
&&
other
)
noexcept
;
~
RpcSystemBase
()
noexcept
(
false
);
private
:
...
...
c++/src/kj/io.h
View file @
cb784ec3
...
...
@@ -236,7 +236,7 @@ public:
inline
AutoCloseFd
()
:
fd
(
-
1
)
{}
inline
AutoCloseFd
(
decltype
(
nullptr
))
:
fd
(
-
1
)
{}
inline
explicit
AutoCloseFd
(
int
fd
)
:
fd
(
fd
)
{}
inline
AutoCloseFd
(
AutoCloseFd
&&
other
)
:
fd
(
other
.
fd
)
{
other
.
fd
=
-
1
;
}
inline
AutoCloseFd
(
AutoCloseFd
&&
other
)
noexcept
:
fd
(
other
.
fd
)
{
other
.
fd
=
-
1
;
}
KJ_DISALLOW_COPY
(
AutoCloseFd
);
~
AutoCloseFd
()
noexcept
(
false
);
...
...
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