forked from intel/llvm
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "[libc++][CMake] Removes LIBCXX_ENABLE_CLANG_TIDY. (#85262)"
This reverts commit 4109b18. It looks like the automatic detection has false positives. This broke the following build llvm/llvm-project#85262
- Loading branch information
Showing
6 changed files
with
28 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
|
||
set(LIBCXX_TEST_TOOLS_PATH ${CMAKE_CURRENT_BINARY_DIR} PARENT_SCOPE) | ||
|
||
if(NOT CMAKE_CXX_COMPILER_ID STREQUAL "Clang") | ||
message(STATUS "Clang-tidy tests are disabled due to non-clang based compiler.") | ||
return() | ||
# TODO: Remove LIBCXX_ENABLE_CLANG_TIDY | ||
if(LIBCXX_ENABLE_CLANG_TIDY) | ||
if(NOT CMAKE_CXX_COMPILER_ID STREQUAL "Clang") | ||
message(STATUS "Clang-tidy can only be used when building libc++ with " | ||
"a clang compiler.") | ||
return() | ||
endif() | ||
add_subdirectory(clang_tidy_checks) | ||
endif() | ||
add_subdirectory(clang_tidy_checks) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters