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

Apply clang-format to 2d module #3343

Merged
merged 2 commits into from
Sep 15, 2019
Merged

Conversation

taketwo
Copy link
Member

@taketwo taketwo commented Sep 13, 2019

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.

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);
Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point

break;
}
switch (kernel_type_) {
case SOBEL_X: {
Copy link
Member

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

@jasjuang
Copy link
Contributor

For formatting docstrings, I highly suggest the use of doxydoxygen to autoformat them. You can simply do alt+q instead of manually formatting them.

Copy link
Member

@kunaltyagi kunaltyagi left a comment

Choose a reason for hiding this comment

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

LGTM

@taketwo
Copy link
Member Author

taketwo commented Sep 15, 2019

@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 :(

@taketwo taketwo merged commit fa5da07 into PointCloudLibrary:master Sep 15, 2019
@taketwo taketwo deleted the format-2d branch September 15, 2019 13:00
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