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
00de64bb
Commit
00de64bb
authored
Oct 02, 2016
by
David Renshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix more errors reported by 'clang++ -Werror'
parent
bc93d04e
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
12 additions
and
12 deletions
+12
-12
compiler.c++
c++/src/capnp/compiler/compiler.c++
+1
-1
compiler.h
c++/src/capnp/compiler/compiler.h
+1
-1
node-translator.c++
c++/src/capnp/compiler/node-translator.c++
+1
-1
membrane-test.c++
c++/src/capnp/membrane-test.c++
+2
-2
rpc.h
c++/src/capnp/rpc.h
+3
-3
async-inl.h
c++/src/kj/async-inl.h
+1
-1
units-test.c++
c++/src/kj/units-test.c++
+3
-3
No files found.
c++/src/capnp/compiler/compiler.c++
View file @
00de64bb
...
...
@@ -51,7 +51,7 @@ private:
bool
initialized
=
false
;
};
class
Compiler
::
Node
:
public
NodeTranslator
::
Resolver
{
class
Compiler
::
Node
final
:
public
NodeTranslator
::
Resolver
{
// Passes through four states:
// - Stub: On initial construction, the Node is just a placeholder object. Its ID has been
// determined, and it is placed in its parent's member table as well as the compiler's
...
...
c++/src/capnp/compiler/compiler.h
View file @
00de64bb
...
...
@@ -52,7 +52,7 @@ public:
// Read and return the content of a file specified using `embed`.
};
class
Compiler
:
private
SchemaLoader
::
LazyLoadCallback
{
class
Compiler
final
:
private
SchemaLoader
::
LazyLoadCallback
{
// Cross-links separate modules (schema files) and translates them into schema nodes.
//
// This class is thread-safe, hence all its methods are const.
...
...
c++/src/capnp/compiler/node-translator.c++
View file @
00de64bb
...
...
@@ -270,7 +270,7 @@ public:
}
};
struct
Group
:
public
StructOrGroup
{
struct
Group
final
:
public
StructOrGroup
{
public
:
class
DataLocationUsage
{
public
:
...
...
c++/src/capnp/membrane-test.c++
View file @
00de64bb
...
...
@@ -32,7 +32,7 @@ namespace {
using
Thing
=
test
::
TestMembrane
::
Thing
;
class
ThingImpl
:
public
Thing
::
Server
{
class
ThingImpl
final
:
public
Thing
::
Server
{
public
:
ThingImpl
(
kj
::
StringPtr
text
)
:
text
(
text
)
{}
...
...
@@ -51,7 +51,7 @@ private:
kj
::
StringPtr
text
;
};
class
TestMembraneImpl
:
public
test
::
TestMembrane
::
Server
{
class
TestMembraneImpl
final
:
public
test
::
TestMembrane
::
Server
{
protected
:
kj
::
Promise
<
void
>
makeThing
(
MakeThingContext
context
)
override
{
context
.
getResults
().
setThing
(
kj
::
heap
<
ThingImpl
>
(
"inside"
));
...
...
c++/src/capnp/rpc.h
View file @
00de64bb
...
...
@@ -339,18 +339,18 @@ public:
// authenticate this, so that the caller can be assured that they are really talking to the
// identified vat and not an imposter.
virtual
kj
::
Own
<
OutgoingRpcMessage
>
newOutgoingMessage
(
uint
firstSegmentWordSize
)
=
0
;
virtual
kj
::
Own
<
OutgoingRpcMessage
>
newOutgoingMessage
(
uint
firstSegmentWordSize
)
override
=
0
;
// Allocate a new message to be sent on this connection.
//
// If `firstSegmentWordSize` is non-zero, it should be treated as a hint suggesting how large
// to make the first segment. This is entirely a hint and the connection may adjust it up or
// down. If it is zero, the connection should choose the size itself.
virtual
kj
::
Promise
<
kj
::
Maybe
<
kj
::
Own
<
IncomingRpcMessage
>>>
receiveIncomingMessage
()
=
0
;
virtual
kj
::
Promise
<
kj
::
Maybe
<
kj
::
Own
<
IncomingRpcMessage
>>>
receiveIncomingMessage
()
override
=
0
;
// Wait for a message to be received and return it. If the read stream cleanly terminates,
// return null. If any other problem occurs, throw an exception.
virtual
kj
::
Promise
<
void
>
shutdown
()
KJ_WARN_UNUSED_RESULT
=
0
;
virtual
kj
::
Promise
<
void
>
shutdown
()
override
KJ_WARN_UNUSED_RESULT
=
0
;
// Waits until all outgoing messages have been sent, then shuts down the outgoing stream. The
// returned promise resolves after shutdown is complete.
...
...
c++/src/kj/async-inl.h
View file @
00de64bb
...
...
@@ -585,7 +585,7 @@ private:
uint
countLeft
;
OnReadyEvent
onReadyEvent
;
class
Branch
:
public
Event
{
class
Branch
final
:
public
Event
{
public
:
Branch
(
ArrayJoinPromiseNodeBase
&
joinNode
,
Own
<
PromiseNode
>
dependency
,
ExceptionOrValue
&
output
);
...
...
c++/src/kj/units-test.c++
View file @
00de64bb
...
...
@@ -34,12 +34,12 @@ typedef Quantity<int, Bytes> ByteCount;
typedef
Quantity
<
int
,
KiB
>
KiBCount
;
typedef
Quantity
<
int
,
MiB
>
MiBCount
;
constexpr
ByteCount
BYTE
=
unit
<
ByteCount
>
();
constexpr
ByteCount
BYTE
KJ_UNUSED
=
unit
<
ByteCount
>
();
constexpr
KiBCount
KIB
=
unit
<
KiBCount
>
();
constexpr
MiBCount
MIB
=
unit
<
MiBCount
>
();
constexpr
UnitRatio
<
int
,
Bytes
,
KiB
>
BYTES_PER_KIB
=
1024
*
BYTE
/
KIB
;
constexpr
UnitRatio
<
int
,
Bytes
,
MiB
>
BYTES_PER_MIB
=
1024
*
1024
*
BYTE
/
MIB
;
constexpr
UnitRatio
<
int
,
Bytes
,
KiB
>
BYTES_PER_KIB
KJ_UNUSED
=
1024
*
BYTE
/
KIB
;
constexpr
UnitRatio
<
int
,
Bytes
,
MiB
>
BYTES_PER_MIB
KJ_UNUSED
=
1024
*
1024
*
BYTE
/
MIB
;
constexpr
auto
KIB_PER_MIB
=
1024
*
KIB
/
MIB
;
template
<
typename
T
,
typename
U
>
...
...
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