[llvm-branch-commits] [libcxx] [libc++] Use clang-tidy version that matches the compiler we use in the CI (PR #85305)

Louis Dionne via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Mar 14 13:20:37 PDT 2024


https://github.com/ldionne created https://github.com/llvm/llvm-project/pull/85305

This works around ODR violations in the clang-tidy plugin we use to perform the modules tests.

Fixes #85242

>From 810c55db5c92f5786a4c2b1b1336dd8b62f28f86 Mon Sep 17 00:00:00 2001
From: Louis Dionne <ldionne.2 at gmail.com>
Date: Thu, 14 Mar 2024 16:18:54 -0400
Subject: [PATCH] [libc++] Use clang-tidy version that matches the compiler we
 use in the CI

This works around ODR violations in the clang-tidy plugin we use to
perform the modules tests.

Fixes #85242
---
 libcxx/test/tools/clang_tidy_checks/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libcxx/test/tools/clang_tidy_checks/CMakeLists.txt b/libcxx/test/tools/clang_tidy_checks/CMakeLists.txt
index 978e7095216522..a52140e2b9938a 100644
--- a/libcxx/test/tools/clang_tidy_checks/CMakeLists.txt
+++ b/libcxx/test/tools/clang_tidy_checks/CMakeLists.txt
@@ -5,7 +5,7 @@
 set(LLVM_DIR_SAVE ${LLVM_DIR})
 set(Clang_DIR_SAVE ${Clang_DIR})
 
-find_package(Clang 18)
+find_package(Clang 18.1)
 if (NOT Clang_FOUND)
   find_package(Clang 17)
 endif()



More information about the llvm-branch-commits mailing list