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

update uncrustify config #85

Merged
merged 2 commits into from
Sep 29, 2017
Merged

update uncrustify config #85

merged 2 commits into from
Sep 29, 2017

Conversation

dirk-thomas
Copy link
Contributor

Connect to ament/uncrustify#18.

@dirk-thomas dirk-thomas added the in review Waiting for review (Kanban column) label Sep 28, 2017
@dirk-thomas dirk-thomas self-assigned this Sep 28, 2017
# TRUE: When identing after virtual brace open and newline add further spaces after regular indent to reach next tabstop.
indent_vbrace_open_on_tabstop = false # false/true
# If True, cpp lambda body will be indentedDefault=False.
indent_cpp_lambda_body = true # false/true
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This will indent the body of lambdas by one level which makes them fit in much nicer with the surrounding code.


# Add or remove space between the receiver and selector in a message.
# '[receiver selector ..
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This new option enforces that if the parameters for a functions don't fit in a single line (so some parameters are wrapped) that all parameters are wrapped. This is the style we are already aiming for in Python.

@dirk-thomas
Copy link
Contributor Author

The second commit only changes the order of the option groups (which has changed in uncrustify).

@dirk-thomas dirk-thomas merged commit 569a732 into master Sep 29, 2017
@dirk-thomas dirk-thomas deleted the uncrustify_master branch September 29, 2017 18:12
@dirk-thomas dirk-thomas removed the in review Waiting for review (Kanban column) label Sep 29, 2017
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