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

clang-format in usage() #2701

Closed
Lestropie opened this issue Aug 30, 2023 · 1 comment
Closed

clang-format in usage() #2701

Lestropie opened this issue Aug 30, 2023 · 1 comment
Assignees
Labels

Comments

@Lestropie
Copy link
Member

On having to edit the contents of a command's usage() function for the first time following merge of #2652, I'm immediately repulsed by the formatting of particularly OPTIONS. It's become much harder to navigate.

One prospect that I don't recall discussing in the relevant threads was to simply explicitly disable clang-format via code comments (eg).

Alternatively we can try to find a different syntax that plays better with clang-format; but that would likely lead to a hard backward compatibility break.

@daljit46
Copy link
Member

daljit46 commented Aug 30, 2023

Yes, I think using // clang-format off and // clang-format on to achieve a custom style for a particular piece of code would be the most appropriate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants