From 987f64c286401a495bf22d780c09bb4ec9e83962 Mon Sep 17 00:00:00 2001 From: jidicula Date: Mon, 11 Mar 2024 16:55:03 -0400 Subject: [PATCH] feat: Add clang-format-18 support --- .github/workflows/tests.yml | 2 ++ README.md | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ded9382..bd85411 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -37,6 +37,7 @@ jobs: - 15 - 16 - 17 + - 18 steps: - uses: actions/checkout@v4 - name: Build and test the Docker image @@ -63,6 +64,7 @@ jobs: - 15 - 16 - 17 + - 18 path: - check: 'test/known_fail' exclude: 'capi' diff --git a/README.md b/README.md index aad91e3..29b89ed 100644 --- a/README.md +++ b/README.md @@ -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? @@ -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/`.