You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Option for no newline at the end of struct definition #1848
Hi CDanU I added a main() to the source file, resulting in the same result. See the attached log file, containing commands, original file (xx,c) and converted file (xx,c.uncrustify), I want to avoid the additional new line, after hide" since I want to push the results of the uncrustify conversion to a git repository with "ignore-spaces" option.
I could verify it now, I didn't know you where using C.
I have set all nl_*iarf options to remove and the brace is still newlined (by default). Either we don't have an option for that or something is broken, I'll look in to that soon.
Hello again, I would not mind setting the -l option to something else as C, if that solves my problem.
My minimum requirement is to replace tabs by spaces, so if changing from C to something else avoids the new line, that would be helpful right now too.
The problem is having a struct initializer inside a struct initializer inside something.
uncrustify can't yet deal with that.
The output are not predictable.
Activity
altairsystems commentedon Jul 1, 2018
my config file
altairsystems commentedon Jul 1, 2018
config file ;
uncrustify.txt
altairsystems commentedon Jul 1, 2018
Hi CDanU I added a main() to the source file, resulting in the same result. See the attached log file, containing commands, original file (xx,c) and converted file (xx,c.uncrustify), I want to avoid the additional new line, after hide" since I want to push the results of the uncrustify conversion to a git repository with "ignore-spaces" option.
log.txt
altairsystems commentedon Jul 1, 2018
Hi CDanU .. or upload your config file, so that i can check it too
CDanU commentedon Jul 1, 2018
I could verify it now, I didn't know you where using C.
I have set all
nl_*iarf options to remove and the brace is still newlined (by default). Either we don't have an option for that or something is broken, I'll look in to that soon.altairsystems commentedon Jul 2, 2018
Hello again, I would not mind setting the -l option to something else as C, if that solves my problem.
My minimum requirement is to replace tabs by spaces, so if changing from C to something else avoids the new line, that would be helpful right now too.
CDanU commentedon Jul 3, 2018
Try
-l cppuntil I start working on thisguy-maurel commentedon Apr 1, 2019
I need some more informations.
Please define MAX_KEY
Which compiler command do you use?
guy-maurel commentedon Apr 4, 2019
The problem is having a struct initializer inside a struct initializer inside something.
uncrustify can't yet deal with that.
The output are not predictable.
Related to #967, #1293, #1349, #1601, #1727