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

Excessive indentation in wrapped throw statement #173

Open
rotu opened this issue Aug 5, 2019 · 4 comments
Open

Excessive indentation in wrapped throw statement #173

rotu opened this issue Aug 5, 2019 · 4 comments

Comments

@rotu
Copy link
Contributor

rotu commented Aug 5, 2019

ament_uncrustify causes line continuations in throw statement to indent to 8 spaces instead of the 2 spaces recommended by the developer guide:

e.g.:
https://github.com/ros2/rclcpp/blob/9be3e08cd4d04193fb76cb6dd8f5db11d7199e2f/rclcpp/src/rclcpp/node_interfaces/node_parameters.cpp#L438-L441

  if (!result.successful) {
    throw rclcpp::exceptions::InvalidParameterValueException(
            "parameter '" + name + "' could not be set: " + result.reason);
  }
@dirk-thomas
Copy link
Contributor

The package ament_uncrustify only provides the ability to invoke uncrustify in a convenient way. If this is not changable in the configuration you might want to report the problem in the upstream package instead: https://github.com/uncrustify/uncrustify

@rotu
Copy link
Contributor Author

rotu commented Aug 5, 2019

@dirk-thomas Please reopen. It doesn't seem to be a problem affecting uncrustify out of the box. I think it's a misconfiguration in ament_uncrustify.

@dirk-thomas
Copy link
Contributor

dirk-thomas commented Aug 5, 2019

@rotu
Copy link
Contributor Author

rotu commented Aug 5, 2019

@dirk-thomas, I was very nearly convinced I was wrong about this, but I turned out to be mistaken :-)

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 a pull request may close this issue.

2 participants