Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
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
libzmq
Commits
14320112
Commit
14320112
authored
May 25, 2018
by
Simon Giesecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: inconsistent local variable naming
Solution: configured clang-tidy check and applied fixes
parent
c581f43c
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
32 additions
and
32 deletions
+32
-32
.clang-tidy
.clang-tidy
+12
-12
clock.cpp
src/clock.cpp
+3
-3
ctx.cpp
src/ctx.cpp
+2
-2
dealer.cpp
src/dealer.cpp
+4
-4
router.cpp
src/router.cpp
+4
-4
tcp.cpp
src/tcp.cpp
+4
-4
zmq_utils.cpp
src/zmq_utils.cpp
+3
-3
No files found.
.clang-tidy
View file @
14320112
...
...
@@ -257,18 +257,18 @@ CheckOptions:
# value: ''
# - key: readability-identifier-naming.InlineNamespaceSuffix
# value: ''
#
- key: readability-identifier-naming.LocalConstantCase
# value: aNy_CasE
#
- key: readability-identifier-naming.LocalConstantPrefix
#
value: ''
#
- key: readability-identifier-naming.LocalConstantSuffix
#
value: ''
#
- key: readability-identifier-naming.LocalVariableCase
# value: aNy_CasE
#
- key: readability-identifier-naming.LocalVariablePrefix
#
value: ''
#
- key: readability-identifier-naming.LocalVariableSuffix
#
value: ''
- key: readability-identifier-naming.LocalConstantCase
value: lower_case
- key: readability-identifier-naming.LocalConstantPrefix
value: ''
- key: readability-identifier-naming.LocalConstantSuffix
value: ''
- key: readability-identifier-naming.LocalVariableCase
value: lower_case
- key: readability-identifier-naming.LocalVariablePrefix
value: ''
- key: readability-identifier-naming.LocalVariableSuffix
value: ''
# - key: readability-identifier-naming.MemberCase
# value: aNy_CasE
# - key: readability-identifier-naming.MemberPrefix
...
...
src/clock.cpp
View file @
14320112
...
...
@@ -141,8 +141,8 @@ uint64_t zmq::clock_t::now_us ()
#if defined ZMQ_HAVE_WINDOWS
// Get the high resolution counter's accuracy.
LARGE_INTEGER
ticks
PerS
econd
;
QueryPerformanceFrequency
(
&
ticks
PerS
econd
);
LARGE_INTEGER
ticks
_per_s
econd
;
QueryPerformanceFrequency
(
&
ticks
_per_s
econd
);
// What time is it?
LARGE_INTEGER
tick
;
...
...
@@ -150,7 +150,7 @@ uint64_t zmq::clock_t::now_us ()
// Convert the tick number into the number of seconds
// since the system was started.
double
ticks_div
=
ticks
PerS
econd
.
QuadPart
/
1000000.0
;
double
ticks_div
=
ticks
_per_s
econd
.
QuadPart
/
1000000.0
;
return
static_cast
<
uint64_t
>
(
tick
.
QuadPart
/
ticks_div
);
#elif defined HAVE_CLOCK_GETTIME \
...
...
src/ctx.cpp
View file @
14320112
...
...
@@ -136,7 +136,7 @@ int zmq::ctx_t::terminate ()
{
slot_sync
.
lock
();
bool
save
T
erminating
=
terminating
;
bool
save
_t
erminating
=
terminating
;
terminating
=
false
;
// Connect up any pending inproc connections, otherwise we will hang
...
...
@@ -149,7 +149,7 @@ int zmq::ctx_t::terminate ()
s
->
bind
(
p
->
first
.
c_str
());
s
->
close
();
}
terminating
=
save
T
erminating
;
terminating
=
save
_t
erminating
;
if
(
!
starting
)
{
#ifdef HAVE_FORK
...
...
src/dealer.cpp
View file @
14320112
...
...
@@ -51,17 +51,17 @@ void zmq::dealer_t::xattach_pipe (pipe_t *pipe_, bool subscribe_to_all_)
zmq_assert
(
pipe_
);
if
(
probe_router
)
{
msg_t
probe_msg
_
;
int
rc
=
probe_msg
_
.
init
();
msg_t
probe_msg
;
int
rc
=
probe_msg
.
init
();
errno_assert
(
rc
==
0
);
rc
=
pipe_
->
write
(
&
probe_msg
_
);
rc
=
pipe_
->
write
(
&
probe_msg
);
// zmq_assert (rc) is not applicable here, since it is not a bug.
(
void
)
rc
;
pipe_
->
flush
();
rc
=
probe_msg
_
.
close
();
rc
=
probe_msg
.
close
();
errno_assert
(
rc
==
0
);
}
...
...
src/router.cpp
View file @
14320112
...
...
@@ -76,15 +76,15 @@ void zmq::router_t::xattach_pipe (pipe_t *pipe_, bool subscribe_to_all_)
zmq_assert
(
pipe_
);
if
(
probe_router
)
{
msg_t
probe_msg
_
;
int
rc
=
probe_msg
_
.
init
();
msg_t
probe_msg
;
int
rc
=
probe_msg
.
init
();
errno_assert
(
rc
==
0
);
rc
=
pipe_
->
write
(
&
probe_msg
_
);
rc
=
pipe_
->
write
(
&
probe_msg
);
// zmq_assert (rc) is not applicable here, since it is not a bug.
pipe_
->
flush
();
rc
=
probe_msg
_
.
close
();
rc
=
probe_msg
.
close
();
errno_assert
(
rc
==
0
);
}
...
...
src/tcp.cpp
View file @
14320112
...
...
@@ -361,16 +361,16 @@ void zmq::tcp_tune_loopback_fast_path (const fd_t socket_)
{
#if defined ZMQ_HAVE_WINDOWS && defined SIO_LOOPBACK_FAST_PATH
int
sio_loopback_fastpath
=
1
;
DWORD
number
OfBytesR
eturned
=
0
;
DWORD
number
_of_bytes_r
eturned
=
0
;
int
rc
=
WSAIoctl
(
socket_
,
SIO_LOOPBACK_FAST_PATH
,
&
sio_loopback_fastpath
,
sizeof
sio_loopback_fastpath
,
NULL
,
0
,
&
number
OfBytesR
eturned
,
0
,
0
);
&
number
_of_bytes_r
eturned
,
0
,
0
);
if
(
SOCKET_ERROR
==
rc
)
{
DWORD
last
E
rror
=
::
WSAGetLastError
();
DWORD
last
_e
rror
=
::
WSAGetLastError
();
if
(
WSAEOPNOTSUPP
==
last
E
rror
)
{
if
(
WSAEOPNOTSUPP
==
last
_e
rror
)
{
// This system is not Windows 8 or Server 2012, and the call is not supported.
}
else
{
wsa_assert
(
false
);
...
...
src/zmq_utils.cpp
View file @
14320112
...
...
@@ -90,9 +90,9 @@ void *zmq_threadstart (zmq_thread_fn *func_, void *arg_)
void
zmq_threadclose
(
void
*
thread_
)
{
zmq
::
thread_t
*
p
T
hread
=
static_cast
<
zmq
::
thread_t
*>
(
thread_
);
p
T
hread
->
stop
();
LIBZMQ_DELETE
(
p
T
hread
);
zmq
::
thread_t
*
p
_t
hread
=
static_cast
<
zmq
::
thread_t
*>
(
thread_
);
p
_t
hread
->
stop
();
LIBZMQ_DELETE
(
p
_t
hread
);
}
// Z85 codec, taken from 0MQ RFC project, implements RFC32 Z85 encoding
...
...
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