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
C: The 3 expressions within a for loop do not align together on the three separate lines #1081
Additionally there is no version info that was displayed.
azhuang@pek2-office-04-dhcp52:~/test$ uncrustify --version
uncrustify
When the referenced commit is merged, building Uncrustify the usual way (inside uncrsutify/build, cmake .. && make && make test) will call make_version.py which generates a propper version string.
If you want to you can just manually call make_version.py and it will print out the version string.
I meant the PR I had done, this issue here stays open
(as contributor I don't have the rights for that anyways).
It would however be nice if you could instead of putting everything in the files you linked, open a new issue for every issue and feature request that you have, with nice markdown formatting and all that stuff and then close this issue yourself after you have done that.
changed the title [-]The 3 expressions within a for loop do not align together on the three separate lines[/-][+]C: The 3 expressions within a for loop do not align together on the three separate lines[/+]on Apr 5, 2017
# The continuation indent. If non-zero, this overrides the indent of '(' # and '=' continuation indents. For FreeBSD, this is set to 4. Negative # value is absolute and not increased for each ( level
indent_continue =4# number
Originally "indent_continue=4" is set to make the function definitions and prototypes use one indentation level. Now I changed it as below and the issue is gone.
indent_continue = 0
# True: indent continued function call parameters one indent level
# False: align parameters under the open paren
indent_func_call_param = false # false/true
# Same as indent_func_call_param, but for function defs
indent_func_def_param = true # false/true
# Same as indent_func_call_param, but for function protos
indent_func_proto_param = true # false/true
Activity
andrewhit commentedon Apr 2, 2017
Could you tell me what cmake command can be executed for your below statement?
"CMake calls make_version.py which now can generate the following version string formats:"
CDanU commentedon Apr 2, 2017
This is a fix for:
When the referenced commit is merged, building Uncrustify the usual way (inside uncrsutify/build,
cmake .. && make && make test) will callmake_version.pywhich generates a propper version string.If you want to you can just manually call make_version.py and it will print out the version string.
andrewhit commentedon Apr 2, 2017
azhuang@pek2-office-04-dhcp52:~/tmp/uncrustify$ ./scripts/make_version.py
current: 0.64.547-g4fdddba
release: 0.64
andrewhit commentedon Apr 2, 2017
Previously I downloaded uncrustify zip file directly so there is no .git file and no version info output when executing # uncrustify --version.
After checking make_version.py, I have to use git clone to download and .git exists under uncrustify directory. And # uncrustify --version works fine.
azhuang@pek2-office-04-dhcp52:~/test$ uncrustify --version
uncrustify 0.64.547-g4fdddba
CDanU commentedon Apr 2, 2017
Yes I did not thought about this, and personally I too think that this is a big drawback so I am closing that PR for now.
andrewhit commentedon Apr 5, 2017
@CDanU Please do not close this bug and I have verified and closed the bug of "uncrustify -c config".
Also please check ngx_http.c.exp within which I have described some other issue and several enhancement requests.
CDanU commentedon Apr 5, 2017
I meant the PR I had done, this issue here stays open
(as contributor I don't have the rights for that anyways).
It would however be nice if you could instead of putting everything in the files you linked, open a new issue for every issue and feature request that you have, with nice markdown formatting and all that stuff and then close this issue yourself after you have done that.
andrewhit commentedon Apr 5, 2017
Okay. I will use this PR to describe the 1st issue.
Line 641 of ngx_http.c
becomes line 639 of ngx_http.c.unc after uncrustification
It was observed the 2nd and 3rd lines do not align with the 1st line within ngx_http.c.unc. And these 3 lines are expected to be aligned together.
[-]The 3 expressions within a for loop do not align together on the three separate lines[/-][+]C: The 3 expressions within a for loop do not align together on the three separate lines[/+]CDanU commentedon Apr 5, 2017
This one is also caused (no bug) by:
andrewhit commentedon Apr 6, 2017
Many Thanks!
Originally "indent_continue=4" is set to make the function definitions and prototypes use one indentation level. Now I changed it as below and the issue is gone.