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
uh ok, you're right ! It probably thinks it's an oneliner and it doesn't add newlines and the indentation is dependent on the previous brace close. Can you play with oneliner options as a workaround ?
I set all *_leave_one_liners options to false, but that line always remains unchanged. Probably I miss the right option (or I didn't understand your suggestion).
Anyway, it's not a great problem, I can manually change my code for the moment.
There seems to be a problem when there is nothing between closing brace and break. And when mod_move_case_break = true, the indentation of 'break' is the same, but inside the braces:
Activity
mihaipopescu commentedon Sep 2, 2016
Thanks for reporting. Can you clarify if this is before or after formatting ?
Yraine commentedon Sep 2, 2016
Sorry, you are right! :)
Before:
After:
mihaipopescu commentedon Sep 2, 2016
I guess you'll need to find the proper combination of options to achieve your wanted formatting. What is your expected formatting result ?
Yraine commentedon Sep 2, 2016
In my real configuration, I use those options:
Code before formatting (expected unchanged after formatting):
After formatting I obtain this:
It seems strange the position of the last 'break'.
mihaipopescu commentedon Sep 2, 2016
uh ok, you're right ! It probably thinks it's an oneliner and it doesn't add newlines and the indentation is dependent on the previous brace close. Can you play with oneliner options as a workaround ?
Yraine commentedon Sep 2, 2016
I set all *_leave_one_liners options to false, but that line always remains unchanged. Probably I miss the right option (or I didn't understand your suggestion).
Anyway, it's not a great problem, I can manually change my code for the moment.
PS: Thanks for your patience! :D
bugfix for #663
Merge pull request #881 from uncrustify/I-663
zeule commentedon Apr 5, 2017
I have a similar issue. My configuration is:
The following example:
uncrustify trasforms into:
There seems to be a problem when there is nothing between closing brace and
break. And whenmod_move_case_break = true, the indentation of 'break' is the same, but inside the braces:guy-maurel commentedon Apr 27, 2017
This is correct, as wished from invisible-clew.
break becomes the indentation of the opening brace if the previous is a closing brace.
zeule commentedon Apr 27, 2017
What can I do to disable this, please?
guy-maurel commentedon May 27, 2017
uncrustify cannot do disable.
mihaipopescu commentedon Jun 5, 2017
That doesn't mean that we should fix issues as per "first come first served". @evsh please state your case in another issue.
Krizai commentedon Jun 28, 2017
Experiencing the same issue
becomes
mihaipopescu commentedon Jun 28, 2017
I think it's time to create a new issue referencing back this one.