Skip to content

Commit

Permalink
Increase column limit to 100 for C code (#456)
Browse files Browse the repository at this point in the history
* Increase column limit & run make format

* Update section dividers

* Remove manual clangformat on/off lines & reformat

* Wrap comments to 100 chars

* Update dividers in batch cell verification

* Update comments in the test file too

* Use clang-format-18

* Exclude tinytest.h

* Update comments in header file

* Only run clang-format on ubuntu

* Update Rust binding's generated file
  • Loading branch information
jtraglia authored Jul 24, 2024
1 parent 1b5c3c8 commit 09628a4
Show file tree
Hide file tree
Showing 6 changed files with 445 additions and 812 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/c-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ jobs:

# Check formatting.
# Only need to check this once.
- name: Check formatting
- name: Run clang-format
if: matrix.os == 'ubuntu-latest'
run: |
make format
git diff --exit-code
uses: jidicula/[email protected]
with:
clang-format-version: '18'
check-path: 'src'
exclude-regex: 'tinytest.h'

# Build and test.
- name: Build
Expand Down
12 changes: 6 additions & 6 deletions bindings/rust/src/bindings/generated.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/.clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ BinPackArguments: False
BinPackParameters: False
PenaltyReturnTypeOnItsOwnLine: 1000
PenaltyBreakAssignment: 100
ColumnLimit: 100
Loading

0 comments on commit 09628a4

Please sign in to comment.