Skip to content

Commit

Permalink
raise minimum required version of clang-format and extend search to n…
Browse files Browse the repository at this point in the history
…ewer versions
  • Loading branch information
akohlmey committed Jul 31, 2024
1 parent 5dff36a commit 8bc3870
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ endif()
include(Testing)
include(CodeCoverage)
include(CodingStandard)
find_package(ClangFormat 8.0)
find_package(ClangFormat 11.0)

if(ClangFormat_FOUND)
add_custom_target(format-src
Expand Down
3 changes: 3 additions & 0 deletions cmake/Modules/FindClangFormat.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Find clang-format
find_program(ClangFormat_EXECUTABLE NAMES clang-format
clang-format-20.0
clang-format-19.0
clang-format-18.0
clang-format-17.0
clang-format-16.0
clang-format-15.0
Expand Down

0 comments on commit 8bc3870

Please sign in to comment.