Skip to content

Adds options for empty parens after functions - #1226

Merged
gmaurel merged 2 commits into
uncrustify:masterfrom
brmqk3:newline
Jul 11, 2017
Merged

gmaurel merged 2 commits into
uncrustify:masterfrom
brmqk3:newline

Conversation

@brmqk3

@brmqk3 brmqk3 commented Jul 7, 2017

Copy link
Copy Markdown
Contributor

Adds options that override the normal behavior of newlines
between function names and opening parentheses when there
are no parameters in the function

Adds options that override the normal behavior of newlines
between function names and opening parentheses when there
are no parameters in the function
@brmqk3

brmqk3 commented Jul 7, 2017

Copy link
Copy Markdown
Contributor Author

This last issue is the same thing where there needs to be a space at the end of the line in help.txt, and should be resolved when my other patch gets merged.

@guy-maurel

Copy link
Copy Markdown
Contributor

Run the script ./scripts/Test_more_Options.sh localy
Use diff ./results/help.txt ./scripts/More_Options_to_Test/help.txt
or meld ./results/help.txt ./scripts/More_Options_to_Test/help.txt
to check the problem. It might be a space which cannot displayed directly.

@gmaurel
gmaurel merged commit d723b92 into uncrustify:master Jul 11, 2017
Comment thread src/newlines.cpp
else if (pc->type == CT_BYREF)
{
newline_iarf(pc, AV_REMOVE);
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This inserted block seems to be responsible for the regression described in #1360.

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 this pull request may close these issues.

4 participants