Skip to content

Commit

Permalink
Move to clang-format-14 for code formatting
Browse files Browse the repository at this point in the history
14 is the latest version of clang-format that is included in Ubuntu
22.04 which is a Long term Release.
  • Loading branch information
egli committed Nov 25, 2022
1 parent a16ab08 commit 112c1c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check-format.yml
Expand Up @@ -14,12 +14,12 @@ jobs:
check-format:
name: Check the code formatting

runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt-get update -qq && sudo apt-get install -y clang-format-9
run: sudo apt-get update -qq && sudo apt-get install -y clang-format-14
- name: Autogen && configure
run: |
./autogen.sh
Expand Down
6 changes: 3 additions & 3 deletions configure.ac
Expand Up @@ -115,9 +115,9 @@ done
# define an additional recursive make target to format the sources.
# Also check if clang-format is installed
AM_EXTRA_RECURSIVE_TARGETS([format-sources])
# prefer version 9 of clang-format as it is part of any release since ubuntu 20.04
AC_CHECK_PROGS([SOURCE_FORMATTER], [clang-format-9 clang-format])
AM_CONDITIONAL([HAVE_SOURCE_FORMATTER], [test x$SOURCE_FORMATTER = xclang-format -o x$SOURCE_FORMATTER = xclang-format-9])
# prefer version 14 of clang-format as it is part of Ubuntu 22.04 LTS
AC_CHECK_PROGS([SOURCE_FORMATTER], [clang-format-14 clang-format])
AM_CONDITIONAL([HAVE_SOURCE_FORMATTER], [test x$SOURCE_FORMATTER = xclang-format -o x$SOURCE_FORMATTER = xclang-format-14])

# GNU help2man creates man pages from --help output; in many cases,
# this is sufficient, and obviates the need to maintain man pages
Expand Down

0 comments on commit 112c1c9

Please sign in to comment.