Skip to content

Commit 02e94ca

Browse files
authored
⏫ Update clang-format to 14.0, pin version (#266)
1 parent 8e0fb8e commit 02e94ca

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
clang-format:
11-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-22.04
1212
strategy:
1313
fail-fast: false
1414
matrix:
@@ -21,10 +21,10 @@ jobs:
2121
- "example/**/*.cpp"
2222
steps:
2323
- run: |
24-
sudo apt-get install clang-format
24+
sudo apt-get install clang-format-14
2525
shopt -s globstar
2626
- uses: actions/checkout@v2
27-
- run: clang-format -i ${{ matrix.files }}
27+
- run: clang-format-14 -i ${{ matrix.files }}
2828
- uses: ./.github/actions/process-linting-results
2929
with:
3030
linter_name: clang-format

include/jwt-cpp/jwt.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2039,8 +2039,8 @@ namespace jwt {
20392039
};
20402040

20412041
template<typename object_type, typename string_type>
2042-
using is_count_signature = typename std::is_integral<decltype(
2043-
std::declval<const object_type>().count(std::declval<const string_type>()))>;
2042+
using is_count_signature = typename std::is_integral<decltype(std::declval<const object_type>().count(
2043+
std::declval<const string_type>()))>;
20442044

20452045
template<typename object_type, typename string_type>
20462046
struct has_subcription_operator {

0 commit comments

Comments
 (0)