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: disable column limit constraint #2255

Conversation

Snorch
Copy link
Member

@Snorch Snorch commented Aug 30, 2023

The "ColumnLimit: 120" is not only allowing lines to be longer than 80 characters but it also forces line wrapping at 120 characters. If total expression length is more than 120 characters, clang-format will try to wrap it as close to 120 as it can, it would not even allow to wrap at 80 characters if we really want it. But as we all know 80 characters is Linux kernel coding style default and as far as our coding style is based on it it is really strange to prohibit wrapping lines at 80 characters...

The "ColumnLimit: 120" is not only allowing lines to be longer than 80
characters but it also forces line wrapping at 120 characters. If total
expression length is more than 120 characters, clang-format will try to
wrap it as close to 120 as it can, it would not even allow to wrap at 80
characters if we really want it. But as we all know 80 characters is
Linux kernel coding style default and as far as our coding style is
based on it it is really strange to prohibit wrapping lines at 80
characters...

Signed-off-by: Pavel Tikhomirov <[email protected]>
@Snorch
Copy link
Member Author

Snorch commented Aug 30, 2023

@checkpoint-restore/maintainers I'm not sure about it, but as there seems to be no way to say "<120 is also ok" to clang-format, let's just disable it.

@Snorch Snorch requested a review from avagin August 30, 2023 04:52
@codecov-commenter
Copy link

Codecov Report

Patch coverage has no change and project coverage change: +0.01% 🎉

Comparison is base (a652c68) 70.68% compared to head (0333869) 70.69%.

❗ Current head 0333869 differs from pull request most recent head 96e723c. Consider uploading reports for the commit 96e723c to get more accurate results

Additional details and impacted files
@@             Coverage Diff              @@
##           criu-dev    #2255      +/-   ##
============================================
+ Coverage     70.68%   70.69%   +0.01%     
============================================
  Files           133      133              
  Lines         33328    33328              
============================================
+ Hits          23557    23561       +4     
+ Misses         9771     9767       -4     

see 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions
Copy link

A friendly reminder that this PR had no activity for 30 days.

@avagin avagin merged commit 5bf7652 into checkpoint-restore:criu-dev Oct 6, 2023
34 of 37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants