-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Apply clang-format to 2d module #3343
Conversation
2d/include/pcl/2d/impl/edge.hpp
Outdated
cannyTraceEdge (-1, 1, i, j, *maxima); | ||
cannyTraceEdge ( 1, -1, i, j, *maxima); | ||
(*maxima)(j, i).intensity = std::numeric_limits<float>::max(); | ||
cannyTraceEdge(1, 0, i, j, *maxima); |
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.
This might be one of the places to disable clang-format for the table like manual formatting
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.
Good point
2d/include/pcl/2d/impl/kernel.hpp
Outdated
break; | ||
} | ||
switch (kernel_type_) { | ||
case SOBEL_X: { |
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.
Are the brackets even required? Seems like just a fn call with break
For formatting docstrings, I highly suggest the use of doxydoxygen to autoformat them. You can simply do alt+q instead of manually formatting them. |
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.
LGTM
@jasjuang thanks for the tip, the tool looks very useful. It's a pity that it's Sublime-only and they don't provide it in a "library" format for easy integration with other editors :( |
After the first pass of clang-format some of the docstrings were screwed up (different
\param
lines joined). Therefore, I needed to apply some manual docstring formatting here and there and then run clang-format again to reach equilibrium.