-
Notifications
You must be signed in to change notification settings - Fork 241
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
Code Cleanup #79
Code Cleanup #79
Conversation
I'll look at this once we have merged your other PRs :) |
Just as a reminder from #72, could you maybe add this small change in this PR too?
|
lets do that after review/concerns fixed - just remind me ;) |
@schra are we using a fork of https://github.com/davetcoleman/roscpp_code_format ? what about clang-format and camelCase vs. under_score? Can one set that in the config? Or is that only something clang-tidy can do? Should we add a clang-tidy config? Is there one for ROS? I only know the one from moveit (https://github.com/ros-planning/moveit/blob/master/.clang-tidy). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice :)!
Please rebase again on #77 (I did a small change there)
You missed two variables ;)
src (cleanup) $ cgrep --var --regex ".*[a-z][A-Z].*" $(find -name "*.cpp" -or -name "*.h")
/home/andre/rviz_satellite/src/tile_cache.h:163:21: TileId const toFind{ area.center.tile_server, { xx, yy }, area.center.zoom };
/home/andre/rviz_satellite/src/aerialmap_display.cpp:489:19: TileId const toFind{ center_tile_->tile_server, { xx, yy }, center_tile_->zoom };
yes
That's a really good point. I'll add a remark about this in #78 And yeah, I think you can only do that with clang-tidy :) |
We try to follow the ROS' coding style guideline (http://wiki.ros.org/CppStyleGuide). - replace any camelCase variable with under_score (as default in rviz) - replace any camelCase file name with under_score (as default in rviz) - refactoring, doc improvement - no functionality changed
inferior humans .. I rebased, and fixed concerns - the new commit should be merged into the previous one; but I'd keep the others as they are |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its a shame that it's so hard to keep track of unused includes in C++ ..
LGTM now, thanks again :) |
Fixes #76 and #75
Test Plan: