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

Clang tidy fixes #86

Merged
merged 3 commits into from
Jul 27, 2017
Merged

Conversation

esteve
Copy link
Member

@esteve esteve commented Jul 24, 2017

This PR fixes some issues that clang-tidy detected.

@esteve
Copy link
Member Author

esteve commented Jul 24, 2017

That's weird, the lunar job failed, but the other ones pass. @mikaelarguedas is that expected or should I look into it? Thanks!

@mikaelarguedas
Copy link
Member

@esteve This test is flaky so the failure is not due to this PR.

Thanks for the contribution!

@esteve
Copy link
Member Author

esteve commented Jul 24, 2017

@mikaelarguedas thanks for the prompt response! clang-tidy has some other suggestions, but they might involve C++11. Given that Kinetic requires a C++11-capable compiler, would you be ok if I submitted those contributions for review? They don't change the API in any way and keeps it C++03, they are just fixes/improvements to some internal stuff, but it'd mean creating a new kinetic-devel branch to avoid introducing C++11 in Indigo.

Copy link
Member

@mikaelarguedas mikaelarguedas left a comment

Choose a reason for hiding this comment

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

lgtm, thanks @esteve, will merge this once other PRs are merged and will resolve conflicts on this one.

@esteve
Copy link
Member Author

esteve commented Jul 24, 2017

@mikaelarguedas no problem, let me know if I can help somehow (resolving conflicts or otherwise) and if I should submit any clang-tidy fixes that use C++11 after all the other PRs are merged

@mikaelarguedas
Copy link
Member

@mikaelarguedas thanks for the prompt response! clang-tidy has some other suggestions, but they might involve C++11. Given that Kinetic requires a C++11-capable compiler, would you be ok if I submitted those contributions for review?

I'm considering branching out actionlib for lunar to be able to do some code cleanup and some changes that may change behavior (while being mostly style + bug fixes). I could extend this to kinetic if it make sense for such improvements.

A few things to consider given that I don't know how spread your changes can be:

  • according to where the changes lie, using c++11 may require downstream packages to pass the -std=c++11 flag. I think that's something we'd like to avoid in general so that every package consuming this one doesn't have to change it's cmake. Given your remark "They don't change the API in any way and keeps it C++03", I think we should be safe on that front.
  • I opened a fix most cpplint and uncrustify errors #72 some time ago to fix mostly style and that I was thinking of integrating to the to be created dev branch. Once merged it may conflict with the changes you will submit.

@mikaelarguedas mikaelarguedas merged commit b90c0f5 into ros:indigo-devel Jul 27, 2017
@esteve esteve deleted the clang-tidy-fixes branch August 3, 2017 11:10
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.

2 participants