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

Auto format codebase using clang-format #284

Merged
merged 1 commit into from
Oct 21, 2016

Conversation

davetcoleman
Copy link
Member

@davetcoleman davetcoleman commented Oct 14, 2016

This PR is to finalize discussion on the proposed auto-formatting of the code base discussed #242

After this is merged, Travis will then warn us when new code is added that violates the style guidelines: moveit/moveit_ci#19

The changes in this PR are all achieved by the single command in the root of this repo:

find . -name '*.h' -or -name '*.hpp' -or -name '*.cpp' | xargs clang-format-3.6 -i -style=file

Using the formatting file defined in https://github.com/ros-planning/moveit/blob/kinetic-devel/.clang-format

@davetcoleman davetcoleman force-pushed the kinetic-devel-clang-format branch 3 times, most recently from 318e11c to 23553fb Compare October 17, 2016 16:15
@davetcoleman
Copy link
Member Author

This PR is ready to merge now that kinetic has been released!

@v4hn v4hn merged commit e97038d into moveit:kinetic-devel Oct 21, 2016
@v4hn
Copy link
Contributor

v4hn commented Oct 21, 2016

Welcome to the new age of auto-formatted code :)

Shouldn't we apply similar changes to the other two branches to ease further cherry-picking?

@davetcoleman davetcoleman deleted the kinetic-devel-clang-format branch October 21, 2016 20:53
@davetcoleman
Copy link
Member Author

Yes, I will do that soon

@jonbinney
Copy link
Contributor

So beautiful!!!

@davetcoleman
Copy link
Member Author

I've applied the formatting to indigo/jade, see above

@davetcoleman
Copy link
Member Author

...one step closer to robots programming robots.

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.

3 participants