From 09f46b4d5f0c8a3323526b70e944e84bcfcead14 Mon Sep 17 00:00:00 2001 From: Ryan Hechenberger Date: Fri, 3 Jul 2026 10:41:39 +1000 Subject: [PATCH 1/3] update clang-format c++23 and actions --- .clang-format | 2 +- .github/workflows/clang-format-apply.yml | 7 ++++--- .github/workflows/clang-format-test.yml | 7 ++++--- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.clang-format b/.clang-format index b05423f..a3daccc 100644 --- a/.clang-format +++ b/.clang-format @@ -1,6 +1,6 @@ --- Language: Cpp -Standard: c++20 +Standard: c++23 BasedOnStyle: GNU AccessModifierOffset: -4 PointerAlignment: Left diff --git a/.github/workflows/clang-format-apply.yml b/.github/workflows/clang-format-apply.yml index 194fff0..77c173f 100644 --- a/.github/workflows/clang-format-apply.yml +++ b/.github/workflows/clang-format-apply.yml @@ -9,12 +9,13 @@ jobs: contents: write steps: - - uses: actions/checkout@v4 - - uses: DoozyX/clang-format-lint-action@v0.18.1 + - uses: actions/checkout@v6 + - uses: DoozyX/clang-format-lint-action@v0.20 with: source: '.' exclude: './extern ./libs' - clangFormatVersion: 18.1.3 + extensions: 'h,cpp,c' + clangFormatVersion: 20 inplace: True - run: | git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" diff --git a/.github/workflows/clang-format-test.yml b/.github/workflows/clang-format-test.yml index 9fdac3c..2a9d327 100644 --- a/.github/workflows/clang-format-test.yml +++ b/.github/workflows/clang-format-test.yml @@ -9,9 +9,10 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: DoozyX/clang-format-lint-action@v0.18.1 + - uses: actions/checkout@v6 + - uses: DoozyX/clang-format-lint-action@v0.20 with: source: '.' exclude: './extern ./libs' - clangFormatVersion: 18.1.3 + extensions: 'h,cpp,c' + clangFormatVersion: 20 From f6b428f7e8977d8b51d1fe36ef9a9337268239f3 Mon Sep 17 00:00:00 2001 From: Ryan Hechenberger Date: Fri, 3 Jul 2026 11:23:28 +1000 Subject: [PATCH 2/3] change clang-format-test to new lint checker --- .github/workflows/clang-format-test.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/clang-format-test.yml b/.github/workflows/clang-format-test.yml index 2a9d327..c0ddf39 100644 --- a/.github/workflows/clang-format-test.yml +++ b/.github/workflows/clang-format-test.yml @@ -5,14 +5,19 @@ on: types: [opened, edited, reopened, synchronize] jobs: - build: + formatting-check: runs-on: ubuntu-latest + strategy: + matrix: + path: + - 'include' + - 'src' + - 'apps' + steps: - uses: actions/checkout@v6 - - uses: DoozyX/clang-format-lint-action@v0.20 + - uses: jidicula/clang-format-action@v4.18.0 with: - source: '.' - exclude: './extern ./libs' - extensions: 'h,cpp,c' - clangFormatVersion: 20 + clang-format-version: '22' + check-path: ${{ matrix.path }} From 2a037eebe845843616b25690f87bffa854343a3c Mon Sep 17 00:00:00 2001 From: Ryan Hechenberger Date: Fri, 3 Jul 2026 11:29:20 +1000 Subject: [PATCH 3/3] revert back and set standard to Latest --- .clang-format | 2 +- .github/workflows/clang-format-test.yml | 17 ++++++----------- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/.clang-format b/.clang-format index a3daccc..1d1d724 100644 --- a/.clang-format +++ b/.clang-format @@ -1,6 +1,6 @@ --- Language: Cpp -Standard: c++23 +Standard: Latest BasedOnStyle: GNU AccessModifierOffset: -4 PointerAlignment: Left diff --git a/.github/workflows/clang-format-test.yml b/.github/workflows/clang-format-test.yml index c0ddf39..2a9d327 100644 --- a/.github/workflows/clang-format-test.yml +++ b/.github/workflows/clang-format-test.yml @@ -5,19 +5,14 @@ on: types: [opened, edited, reopened, synchronize] jobs: - formatting-check: + build: runs-on: ubuntu-latest - strategy: - matrix: - path: - - 'include' - - 'src' - - 'apps' - steps: - uses: actions/checkout@v6 - - uses: jidicula/clang-format-action@v4.18.0 + - uses: DoozyX/clang-format-lint-action@v0.20 with: - clang-format-version: '22' - check-path: ${{ matrix.path }} + source: '.' + exclude: './extern ./libs' + extensions: 'h,cpp,c' + clangFormatVersion: 20