From 02e94cafcba7d30203bdf88f2e3461a4c60fa376 Mon Sep 17 00:00:00 2001 From: Dominik Thalhammer Date: Sun, 23 Oct 2022 11:57:38 +0200 Subject: [PATCH] :arrow_double_up: Update clang-format to 14.0, pin version (#266) --- .github/workflows/lint.yml | 6 +++--- include/jwt-cpp/jwt.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 85fee6b..914297b 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -8,7 +8,7 @@ on: jobs: clang-format: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: @@ -21,10 +21,10 @@ jobs: - "example/**/*.cpp" steps: - run: | - sudo apt-get install clang-format + sudo apt-get install clang-format-14 shopt -s globstar - uses: actions/checkout@v2 - - run: clang-format -i ${{ matrix.files }} + - run: clang-format-14 -i ${{ matrix.files }} - uses: ./.github/actions/process-linting-results with: linter_name: clang-format diff --git a/include/jwt-cpp/jwt.h b/include/jwt-cpp/jwt.h index dae9263..5c622b6 100644 --- a/include/jwt-cpp/jwt.h +++ b/include/jwt-cpp/jwt.h @@ -2039,8 +2039,8 @@ namespace jwt { }; template - using is_count_signature = typename std::is_integral().count(std::declval()))>; + using is_count_signature = typename std::is_integral().count( + std::declval()))>; template struct has_subcription_operator {