Skip to content

Commit

Permalink
Bump clang-format to version 11
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmadsen committed Jul 26, 2024
1 parent 1ae1993 commit aae951c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ jobs:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y clang-format-9 cmake
sudo apt-get install -y clang-format-11 cmake
- name: clang-format
run: |
cmake -B build-PTL -DPTL_USE_TBB=OFF .
cmake --build build-PTL --target format-source
rm -rf build-PTL
if [ $(git diff | wc -l) -gt 0 ]; then
echo -e "\nError! Source code not formatted. Run clang-format-9...\n"
echo -e "\nError! Source code not formatted. Run clang-format-11...\n"
echo -e "\nFiles:\n"
git diff --name-only
echo -e "\nFull diff:\n"
Expand Down
2 changes: 1 addition & 1 deletion cmake/Modules/PTLFormatting.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ if(PTL_CLANG_FORMATTER MATCHES ".*-6")
unset(PTL_CLANG_FORMATTER CACHE)
endif()

find_program(PTL_CLANG_FORMATTER NAMES clang-format-9 clang-format-mp-9.0 clang-format)
find_program(PTL_CLANG_FORMATTER NAMES clang-format-11 clang-format-mp-11.0 clang-format)
mark_as_advanced(PTL_CLANG_FORMATTER)

find_program(PTL_CMAKE_FORMATTER NAMES cmake-format)
Expand Down

0 comments on commit aae951c

Please sign in to comment.