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

Never consider vertical layout if a command can be put in one line #309

Open
guoang opened this issue Jan 19, 2023 · 0 comments
Open

Never consider vertical layout if a command can be put in one line #309

guoang opened this issue Jan 19, 2023 · 0 comments

Comments

@guoang
Copy link

guoang commented Jan 19, 2023

For example, This command:

set(SOME_VARIABLE "some value" CACHE STRING "some description")

will be formatted to

set(SOME_VARIABLE
    "some value"
    CACHE STRING "some description")

with config max_subgroups_hwrap = 2.

I think maybe we should keep a command in one line if it is shorter than line_width. This rule should have higher priority than any other hwrap rules. Or at least provide a config option to enable/disable this rule.

@LecrisUT LecrisUT mentioned this issue Jan 27, 2023
8 tasks
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

No branches or pull requests

1 participant