Skip to content

Commit

Permalink
MAIN: Update c,c++ line length to 88
Browse files Browse the repository at this point in the history
This makes the c/c++ line length the same as the modern Python defaults.
Note that linux has dropped the hard 80 character limit, it is now only
preferred. I don't know how to configure a linter for "preferred", so
just make the hard limit 88.
  • Loading branch information
charris committed Feb 14, 2025
1 parent 0fac692 commit 932da94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ AllowShortEnumsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: false
AlwaysBreakAfterReturnType: TopLevel
BreakBeforeBraces: Stroustrup
ColumnLimit: 79
ColumnLimit: 88
ContinuationIndentWidth: 8
DerivePointerAlignment: false
IndentWidth: 4
Expand Down
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ root = true
# https://numpy.org/neps/nep-0045-c_style_guide.html
indent_size = 4
indent_style = space
max_line_length = 80
max_line_length = 88
trim_trailing_whitespace = true

[*.{py,pyi,pxd}]
Expand Down

0 comments on commit 932da94

Please sign in to comment.