From 34ee35da5c2311f4380c2bec9bef283ca6275b9d Mon Sep 17 00:00:00 2001 From: Jan Strohbeck Date: Fri, 26 Apr 2019 13:22:09 +0200 Subject: [PATCH] [UPDATE] Allow more recent versions for clang-format and clang-tidy. --- FindClangFormat.cmake | 7 ++++++- FindClangTidy.cmake | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/FindClangFormat.cmake b/FindClangFormat.cmake index df0e14e..9765518 100644 --- a/FindClangFormat.cmake +++ b/FindClangFormat.cmake @@ -31,7 +31,12 @@ # endif() find_program(CLANG_FORMAT_EXECUTABLE - NAMES clang-format-6.0 clang-format clang-format-5.0 + NAMES + clang-format-9.0 clang-format-9 + clang-format-8.0 clang-format-8 + clang-format-7.0 clang-format-7 + clang-format-6.0 clang-format-6 + clang-format clang-format-5.0 clang-format-4.0 clang-format-3.9 clang-format-3.8 clang-format-3.7 clang-format-3.6 clang-format-3.5 diff --git a/FindClangTidy.cmake b/FindClangTidy.cmake index 121a1da..79e585f 100644 --- a/FindClangTidy.cmake +++ b/FindClangTidy.cmake @@ -31,7 +31,12 @@ # endif() find_program(CLANG_TIDY_EXECUTABLE - NAMES clang-tidy-6.0 clang-tidy clang-tidy-5.0 + NAMES + clang-tidy-9.0 clang-tidy-9 + clang-tidy-8.0 clang-tidy-8 + clang-tidy-7.0 clang-tidy-7 + clang-tidy-6.0 clang-tidy-6 + clang-tidy clang-tidy-5.0 clang-tidy-4.0 clang-tidy-3.9 clang-tidy-3.8 clang-tidy-3.7 clang-tidy-3.6 clang-tidy-3.5