Replies: 2 comments 2 replies
-
You don't need to try to guess which space-options are available for your source. The second areas is very difficult. uncrustify doesn't have yet any algorithm to detect the structure of aggregates, which might be very complicated. It is a known problem. |
Beta Was this translation helpful? Give feedback.
1 reply
-
tracking_nl is not yet useable, it is a project |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Hope this isn't a FAQ, but I'm new to uncrustify (0.76) and finding the number of settings and dependencies slightly overwhelming at the moment. Having fiddled around with some of them, there are two things, at the moment, that stick out that I'm finding difficult to work out the settings for.
Firstly, in constructor initializer lists, we're using braced initialization, so may have something like:
In pretty much all the places where the space settings related to braces are configured, I've set them to put spaces in such that I'd expect the layout to be as above, but it's being changed to:
does anyone know if there's something obvious I may have missed?
The second areas is aggregates. Let's say I have (originally) something like:
This is being converted to:
I'm not sure which settings might let me revert to the original version? Presumably there may be an 'ignore' one (or two), but I'd quite like that indentation to be actually applied where the layout doesn't match like that, e.g. if someone wrote the code like that latter one, it could be converted to the former.
Any help would be very gratefully appreciated.
Beta Was this translation helpful? Give feedback.
All reactions