Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Clang tidy fixes #155

Open
wants to merge 8 commits into
base: eloquent-devel
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 0 additions & 66 deletions .clang-format

This file was deleted.

50 changes: 0 additions & 50 deletions .clang-tidy

This file was deleted.

31 changes: 14 additions & 17 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,23 @@
# This config file for Travis CI utilizes https://github.com/ros-planning/moveit_ci package.
sudo: required
dist: xenial # distro used by Travis, moveit_ci uses the docker image's distro
language: generic
services:
- docker
language: cpp
compiler: gcc
cache: ccache

cache:
directories:
- $HOME/.ccache

git:
quiet: true

env:
global:
- ROS_DISTRO=eloquent
- ROS_REPO=ros
- CXXFLAGS="-Wall -Wextra -Wwrite-strings -Wunreachable-code -Wpointer-arith -Wredundant-decls -Wno-unused-parameter -Wno-unused-function"
- WARNINGS_OK=false
- CCACHE_DIR=$HOME/.ccache
- UPSTREAM_WORKSPACE="rviz_visual_tools.repos"
matrix:
- TEST="clang-format" # TODO(davetcoleman): enable catkin_lint in the future
- TEST=clang-tidy-fix
- TEST=clang-tidy-check
- ROS_DISTRO=eloquent

before_script:
- git clone -q -b ros2 --depth=1 https://github.com/ros-planning/moveit_ci.git .moveit_ci
- ROS_DISTRO="eloquent"

install:
- git clone --quiet --depth 1 https://github.com/ros-industrial/industrial_ci.git .industrial_ci -b master
script:
- .moveit_ci/travis.sh
- .industrial_ci/travis.sh
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@ ament_export_libraries(
## TEST ##
##########
if (BUILD_TESTING)
# ROS2 linters
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()

# Run tests
find_package(ament_cmake_gtest REQUIRED)
ament_add_gtest(${PROJECT_NAME}_rvt_test
Expand All @@ -244,4 +248,4 @@ if (BUILD_TESTING)
)
endif()

ament_package()
ament_package()
3 changes: 2 additions & 1 deletion include/rviz_visual_tools/remote_control.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
// ROS
#include <rclcpp/rclcpp.hpp>
#include <sensor_msgs/msg/joy.hpp>
#include <utility>

namespace rviz_visual_tools
{
Expand Down Expand Up @@ -121,7 +122,7 @@ class RemoteControl

void setDisplayWaitingState(DisplayWaitingState displayWaitingState)
{
displayWaitingState_ = displayWaitingState;
displayWaitingState_ = std::move(displayWaitingState);
}

private:
Expand Down
Loading