Skip to content

make sp_paren_paren active - #1348

Merged
gmaurel merged 1 commit into
uncrustify:masterfrom
guy-maurel:parenparen
Sep 22, 2017
Merged

gmaurel merged 1 commit into
uncrustify:masterfrom
guy-maurel:parenparen

Conversation

@guy-maurel

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread tests/config/new_op_r.cfg
sp_between_new_paren = remove
sp_after_newop_paren = remove
sp_inside_newop_paren = remove
sp_paren_paren = force

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

What is the reason for adding the sp_paren_paren option in all of those tests? I guess those newop examples also active for the sp_paren_paren option but I'd much rather see test with as few as possible options activated. This way tests are kept small, easy to read and understand.

It would be nice if you could make an extra config for the sp_paren_paren options and than reuse the examples.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Having the code for the option sp_paren_paren before (as proposed) we get the value ignore.
Which is a different run of uncrustify.
We need to define what we want to have for (( and )).

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I still don't quiet understand yet why this is necessary, I compile it and see for myself. It would be nice if you could remove this commit from #1350 to keep everything separated.

@gmaurel
gmaurel merged commit e32bca2 into uncrustify:master Sep 22, 2017
@guy-maurel
guy-maurel deleted the parenparen branch December 13, 2017 17:05
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.

3 participants