Skip to content

clang-format: Extend default line length #142

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

billpittman
Copy link
Contributor

Line length of 80 characters is too short in several cases where nested statements are used and long variable names cause the line to be wrapped and makes the code less readable. Additionally, most tools (vscode, etc) allow for showing far more than 80 characters per line.

Line length of 80 characters is too short in several cases where nested
statements are used and long variable names cause the line to be wrapped
and makes the code less readable.  Additionally, most tools (vscode, etc)
allow for showing far more than 80 characters per line.

Signed-off-by: Bill Pittman <[email protected]>
@gregmedd
Copy link
Contributor

gregmedd commented Jun 5, 2024

We are not making format changes until a publicly available style guide has been published and approved.

@billpittman
Copy link
Contributor Author

We are not making format changes until a publicly available style guide has been published and approved.

Please treat this as merely a suggestion/proposal that matches my preferences.

@gregmedd
Copy link
Contributor

gregmedd commented Jun 5, 2024

Personally, I often end up working in windows that are <100 columns wide, so I tend to prefer an 80 column limit.

When we work on the style guide, I would be open to reviewing specific code examples where 80 columns is making the code harder to read, alongside comparisons of other column width limits for the same code.

@gregmedd gregmedd marked this pull request as draft June 18, 2024 18:01
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.

2 participants