Skip to content

Commit

Permalink
feat: Add clang-format-18 support (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
jidicula committed Mar 11, 2024
1 parent 38748e8 commit 914e674
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
- 15
- 16
- 17
- 18
steps:
- uses: actions/checkout@v4
- name: Build and test the Docker image
Expand All @@ -63,6 +64,7 @@ jobs:
- 15
- 16
- 17
- 18
path:
- check: 'test/known_fail'
exclude: 'capi'
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ You can define your own formatting rules in a `.clang-format` file at your repos
* 15: `clang-format-15`
* 16: `clang-format-16`
* 17: `clang-format-17`
* 18: `clang-format-18`

## Do you find this useful?

Expand All @@ -32,7 +33,7 @@ You can sponsor me [here](https://github.com/sponsors/jidicula)!
## Inputs
* `clang-format-version` [optional]: The major version of `clang-format` that you want to run on your codebase.
* Default: `13`
* Available versions: see [Versions supported](#versions-supported)
* Available versions: see [Versions supported](#major-versions-supported)
* `check-path` [optional]: The path to the directory in the repo that should be checked for C/C++/Protobuf formatting.
* Default: `.`
* For cleaner output (i.e. with no double-slashed paths), the final directory in this path should have no trailing slash, e.g. `src` and not `src/`.
Expand Down

0 comments on commit 914e674

Please sign in to comment.