Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always wrap kwargs for certain functions #39

Closed
wants to merge 2 commits into from

Conversation

adzenith
Copy link

@adzenith adzenith commented May 4, 2018

This turns this:

      always_wrap(HEADERS a.h b.h c.h SOURCES a.c b.c c.c)

into this:

      always_wrap(HEADERS a.h b.h c.h
                  SOURCES a.c b.c c.c)

Combined with max_subargs_per_line: 1, you can make it always put just one argument per line, which ends up with a nice consistent formatting regardless of argument number.
It also makes a new class, FnSpec, to hold more detail about functions if we want to format them specially.

This will let us do more complicated things with FnSpecs.
@adzenith adzenith deleted the always-wrap branch July 16, 2018 00:51
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.

1 participant