[libc++] Look for Clang 17 when compiling clang-tidy checks
authorNikolas Klauser <nikolasklauser@berlin.de>
Tue, 31 Jan 2023 12:03:57 +0000 (13:03 +0100)
committerNikolas Klauser <nikolasklauser@berlin.de>
Wed, 1 Feb 2023 22:05:17 +0000 (23:05 +0100)
This allows compiling the clang-tidy checks when you only have ToT clang

Reviewed By: ldionne, #libc

Spies: libcxx-commits

Differential Revision: https://reviews.llvm.org/D142973

libcxx/test/tools/clang_tidy_checks/CMakeLists.txt

index 2ef1024..f5484fb 100644 (file)
@@ -3,7 +3,7 @@
 set(CMAKE_FIND_PACKAGE_SORT_ORDER NATURAL)
 set(CMAKE_FIND_PACKAGE_SORT_DIRECTION DEC)
 
-find_package(Clang 16)
+find_package(Clang 16...17)
 
 set(SOURCES
     abi_tag_on_virtual.cpp