Skip to content

Commit

Permalink
🐛 Order clang-tidy from highest to lowest (#20)
Browse files Browse the repository at this point in the history
This way, clang-tidy of the latest version is used then down to the
lowest version being the wild card `clang-tidy`. If I can guarantee
that `clang-tidy-17` is a command that is always available, I'll go with
that.
kammce authored Dec 9, 2024
1 parent 8d23c5d commit a774173
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmake/build.cmake
Original file line number Diff line number Diff line change
@@ -42,7 +42,7 @@ if(WIN32)
else()
# Find clang-tidy "clang-tidy"
find_program(LIBHAL_CLANG_TIDY_PROGRAM
NAMES "clang-tidy" "clang-tidy-17" "clang-tidy-18"
NAMES "clang-tidy-18" "clang-tidy-17" "clang-tidy"
DOC "Path to clang-tidy executable")

if(NOT LIBHAL_CLANG_TIDY_PROGRAM)
2 changes: 1 addition & 1 deletion conanfile.py
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@

class libhal_cmake_util_conan(ConanFile):
name = "libhal-cmake-util"
version = "4.1.3"
version = "4.1.4"
license = "Apache-2.0"
homepage = "https://libhal.github.io/libhal-armcortex"
description = ("A collection of CMake scripts for ARM Cortex ")

0 comments on commit a774173

Please sign in to comment.