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

more fixes for the clang-tidy job #2813

Merged
merged 2 commits into from
Aug 13, 2021

Conversation

v4hn
Copy link
Contributor

@v4hn v4hn commented Aug 13, 2021

These two issues appeared in #2795 .
As clang-tidy only inspects files that changed, they did not show up before.

@tylerjw

clang-tidy does not like `value` being the name of an enum constant.
This warning popped up in CI:

moveit_ros/visualization/motion_planning_rviz_plugin/src/motion_planning_frame_objects.cpp:477:5:
warning: string concatenation results in allocation of unnecessary temporary strings; consider using 'operator+=' or 'string::append()' instead [performance-inefficient-string-concatenation]
      name = "Copy of " + name;
		      ^
Copy link
Member

@tylerjw tylerjw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good find, using type trates is_same here is really nice.

@tylerjw tylerjw merged commit 0defef0 into moveit:master Aug 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants