Skip to content

Commit

Permalink
Deal with uncrustify and cpplint
Browse files Browse the repository at this point in the history
Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
  • Loading branch information
vmayoral committed Dec 20, 2021
1 parent 288bbbd commit feed731
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 24 deletions.
10 changes: 5 additions & 5 deletions image_proc/src/rectify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,14 @@ void RectifyNode::imageCb(
TRACEPOINT(
image_proc_rectify_init,
static_cast<const void *>(this),
static_cast<const void *> (&(*image_msg)),
static_cast<const void *>(&(*image_msg)),
static_cast<const void *>(&(*info_msg)));

if (pub_rect_.getNumSubscribers() < 1) {
TRACEPOINT(
image_proc_rectify_fini,
static_cast<const void *>(this),
static_cast<const void *> (&(*image_msg)),
static_cast<const void *>(&(*image_msg)),
static_cast<const void *>(&(*info_msg)));

return;
Expand All @@ -102,7 +102,7 @@ void RectifyNode::imageCb(
TRACEPOINT(
image_proc_rectify_fini,
static_cast<const void *>(this),
static_cast<const void *> (&(*image_msg)),
static_cast<const void *>(&(*image_msg)),
static_cast<const void *>(&(*info_msg)));
return;
}
Expand All @@ -123,7 +123,7 @@ void RectifyNode::imageCb(
TRACEPOINT(
image_proc_rectify_fini,
static_cast<const void *>(this),
static_cast<const void *> (&(*image_msg)),
static_cast<const void *>(&(*image_msg)),
static_cast<const void *>(&(*info_msg)));
return;
}
Expand All @@ -146,7 +146,7 @@ void RectifyNode::imageCb(
TRACEPOINT(
image_proc_rectify_fini,
static_cast<const void *>(this),
static_cast<const void *> (&(*image_msg)),
static_cast<const void *>(&(*image_msg)),
static_cast<const void *>(&(*info_msg)));
}

Expand Down
7 changes: 3 additions & 4 deletions image_proc/src/resize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void ResizeNode::imageCb(
TRACEPOINT(
image_proc_resize_init,
static_cast<const void *>(this),
static_cast<const void *> (&(*image_msg)),
static_cast<const void *>(&(*image_msg)),
static_cast<const void *>(&(*info_msg)));

cv_bridge::CvImagePtr cv_ptr;
Expand All @@ -92,7 +92,7 @@ void ResizeNode::imageCb(
TRACEPOINT(
image_proc_resize_fini,
static_cast<const void *>(this),
static_cast<const void *> (&(*image_msg)),
static_cast<const void *>(&(*image_msg)),
static_cast<const void *>(&(*info_msg)));
RCLCPP_ERROR(this->get_logger(), "cv_bridge exception: %s", e.what());
return;
Expand Down Expand Up @@ -142,9 +142,8 @@ void ResizeNode::imageCb(
TRACEPOINT(
image_proc_resize_fini,
static_cast<const void *>(this),
static_cast<const void *> (&(*image_msg)),
static_cast<const void *>(&(*image_msg)),
static_cast<const void *>(&(*info_msg)));

}

} // namespace image_proc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
* library cannot have, but the consuming code must have inorder to link.
*/

#ifndef TRACETOOLS__VISIBILITY_CONTROL_IMAGE_PIPELINE_HPP_
#define TRACETOOLS__VISIBILITY_CONTROL_IMAGE_PIPELINE_HPP_
#ifndef TRACETOOLS_IMAGE_PIPELINE__VISIBILITY_CONTROL_HPP_
#define TRACETOOLS_IMAGE_PIPELINE__VISIBILITY_CONTROL_HPP_

// This logic was borrowed (then namespaced) from the examples on the gcc wiki:
// https://gcc.gnu.org/wiki/Visibility
Expand Down Expand Up @@ -54,4 +54,4 @@
#define TRACETOOLS_PUBLIC_TYPE
#endif

#endif // TRACETOOLS__VISIBILITY_CONTROL_IMAGE_PIPELINE_HPP_
#endif // TRACETOOLS_IMAGE_PIPELINE__VISIBILITY_CONTROL_HPP_
24 changes: 12 additions & 12 deletions tracetools_image_pipeline/src/tracetools.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ bool ros_trace_compile_status()

void TRACEPOINT(
image_proc_resize_init,
const void * resize_node_arg,
const void * resize_image_msg_arg,
const void * resize_info_msg_arg)
const void * resize_node_arg,
const void * resize_image_msg_arg,
const void * resize_info_msg_arg)
{
CONDITIONAL_TP(
image_proc_resize_init,
Expand All @@ -57,9 +57,9 @@ void TRACEPOINT(

void TRACEPOINT(
image_proc_resize_fini,
const void * resize_node_arg,
const void * resize_image_msg_arg,
const void * resize_info_msg_arg)
const void * resize_node_arg,
const void * resize_image_msg_arg,
const void * resize_info_msg_arg)
{
CONDITIONAL_TP(
image_proc_resize_fini,
Expand All @@ -70,9 +70,9 @@ void TRACEPOINT(

void TRACEPOINT(
image_proc_rectify_init,
const void * rectify_node_arg,
const void * rectify_image_msg_arg,
const void * rectify_info_msg_arg)
const void * rectify_node_arg,
const void * rectify_image_msg_arg,
const void * rectify_info_msg_arg)
{
CONDITIONAL_TP(
image_proc_rectify_init,
Expand All @@ -83,9 +83,9 @@ void TRACEPOINT(

void TRACEPOINT(
image_proc_rectify_fini,
const void * rectify_node_arg,
const void * rectify_image_msg_arg,
const void * rectify_info_msg_arg)
const void * rectify_node_arg,
const void * rectify_image_msg_arg,
const void * rectify_info_msg_arg)
{
CONDITIONAL_TP(
image_proc_rectify_fini,
Expand Down

0 comments on commit feed731

Please sign in to comment.