Skip to content

Commit 771ee19

Browse files
committed
Build clang-tidy with C++20
1 parent cb19cef commit 771ee19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libcxx/test/tools/clang_tidy_checks/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ set(Clang_DIR "${Clang_DIR_SAVE}" CACHE PATH "The directory containing a CMake c
3333

3434
message(STATUS "Found system-installed LLVM ${LLVM_PACKAGE_VERSION} with headers in ${LLVM_INCLUDE_DIRS}")
3535

36-
set(CMAKE_CXX_STANDARD 23)
36+
set(CMAKE_CXX_STANDARD 20)
3737

3838
# Link only against clangTidy itself, not anything that clangTidy uses; otherwise we run setup code multiple times
3939
# which results in clang-tidy crashing
@@ -58,7 +58,7 @@ add_library(cxx-tidy MODULE ${SOURCES})
5858
target_link_libraries(cxx-tidy clangTidy)
5959

6060
set_target_properties(cxx-tidy PROPERTIES
61-
CXX_STANDARD 23
61+
CXX_STANDARD 20
6262
CXX_STANDARD_REQUIRED YES
6363
CXX_EXTENSIONS NO)
6464

0 commit comments

Comments
 (0)