From 1d30ae9bf90794272312d6e13145b3099aeef445 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Wed, 12 Aug 2026 20:24:03 +1000 Subject: [PATCH] =?UTF-8?q?CI:=20upgrade=20clang-format=2015=20=E2=86=92?= =?UTF-8?q?=2022?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 4 ++-- libvimcat/src/term.c | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d469281..a23cb8c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -114,13 +114,13 @@ jobs: c_format: name: C format - runs-on: ubuntu-22.04 + runs-on: ubuntu-26.04 steps: - run: uname -rms - run: echo "cloning ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}" - run: git clone --no-checkout -- ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY} wd - run: cd wd && git fetch -- origin ${{ github.event.pull_request.head.sha }} && git checkout FETCH_HEAD - - run: cd wd && git ls-files -z '**/*.c' '**/*.h' | xargs -0 -- clang-format-15 --dry-run --style=file --Werror + - run: cd wd && git ls-files -z '**/*.c' '**/*.h' | xargs -0 -- clang-format-22 --dry-run --style=file --Werror c_analysis: name: C analysis diff --git a/libvimcat/src/term.c b/libvimcat/src/term.c index 1257554..d37485b 100644 --- a/libvimcat/src/term.c +++ b/libvimcat/src/term.c @@ -628,8 +628,7 @@ static int process_csi(term_t *t, const char *csi) { #endif // check we have a known CSI - int (*handler)(term_t * t, size_t index, bool is_default, size_t entry) = - NULL; + int (*handler)(term_t *t, size_t index, bool is_default, size_t entry) = NULL; switch (final) { case 'A': // Cursor Up handler = process_A;