Skip to content

Commit 557d941

Browse files
committed
Bump clang-format version from 10 to 11
This commit bumps the version of clang-format used from 10 to 11 as this is the oldest version of clang-format which is readily available on Ubuntu 22.04.
1 parent ed19cf1 commit 557d941

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/pull-request-check-clang-format.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ set -e
77
echo "Pull request's base branch is: ${BASE_BRANCH}"
88
echo "Pull request's merge branch is: ${MERGE_BRANCH}"
99
echo "Pull request's source branch is: ${GITHUB_HEAD_REF}"
10-
clang-format-10 --version
10+
clang-format-11 --version
1111

1212
# The checkout action leaves us in detatched head state. The following line
1313
# names the checked out commit, for simpler reference later.
@@ -26,7 +26,7 @@ echo "Checking for formatting errors introduced since $MERGE_BASE"
2626

2727
# Do the checking. "eval" is used so that quotes (as inserted into $EXCLUDES
2828
# above) are not interpreted as parts of file names.
29-
eval git-clang-format --binary clang-format-10 $MERGE_BASE -- $EXCLUDES
29+
eval git-clang-format --binary clang-format-11 $MERGE_BASE -- $EXCLUDES
3030
git diff > formatted.diff
3131
if [[ -s formatted.diff ]] ; then
3232
echo 'Formatting error! The following diff shows the required changes'

.github/workflows/pull-request-checks.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,8 +611,8 @@ jobs:
611611
DEBIAN_FRONTEND: noninteractive
612612
run: |
613613
sudo apt-get update
614-
sudo apt-get install --no-install-recommends -yq clang-format
615-
- name: Check updated lines of code match clang-format-10 style
614+
sudo apt-get install --no-install-recommends -yq clang-format-11
615+
- name: Check updated lines of code match clang-format-11 style
616616
env:
617617
BASE_BRANCH: ${{ github.base_ref }}
618618
MERGE_BRANCH: ${{ github.ref }}

0 commit comments

Comments
 (0)