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

Fix some clang-tidy issues on Travis #2337

Merged
merged 5 commits into from
Oct 1, 2020
Merged

Conversation

rhaschke
Copy link
Contributor

@rhaschke rhaschke commented Oct 1, 2020

Having switched to Noetic (and clang-tidy-10?) on Travis, we get some new clang-tidy issues reported:
https://travis-ci.com/github/ros-planning/moveit/jobs/393573194

Interestingly, locally I got even more issues!? There is also one "fix" applied that is nonsense:

-struct DistanceResultsData
+struct i0

@tylerjw
Copy link
Member

tylerjw commented Oct 1, 2020

Interestingly, locally I got even more issues!? There is also one "fix" applied that is nonsense:

I've seen this too and I don't know what to do with it.

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.

All the typedef to using changes look good. It is just a new style of aliases. I remember reading Scott Myers where he advises using the new style.

@rhaschke
Copy link
Contributor Author

rhaschke commented Oct 1, 2020

Forgot to clang-format what was fixed by clang-tidy... Should be fine now.

@v4hn
Copy link
Contributor

v4hn commented Oct 1, 2020 via email

@rhaschke
Copy link
Contributor Author

rhaschke commented Oct 1, 2020

Thanks to clang-tidy this was automatically fixed now 😉

typedef std::map<const std::pair<std::string, std::string>, std::vector<DistanceResultsData> > DistanceMap;
using DistanceMap = std::map<const std::pair<std::string, std::string>, std::vector<DistanceRequest> >;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Weird. clang-tidy changed the type here, replacing std::vector<DistanceResultsData> with std::vector<DistanceRequest>!

Copy link
Member

@tylerjw tylerjw Oct 1, 2020

Choose a reason for hiding this comment

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

very weird, we don't have it configured in some non-standard way do we?

@codecov

This comment has been minimized.

@rhaschke rhaschke merged commit a29a30c into moveit:master Oct 1, 2020
@rhaschke rhaschke deleted the clang-tidy-fix branch October 1, 2020 20:30
@tylerjw tylerjw mentioned this pull request Oct 23, 2020
57 tasks
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

3 participants