forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libc++][CMake] Removes LIBCXX_ENABLE_CLANG_TIDY. (llvm#85262)
The clang-tidy selection in CMake was refactored in llvm#81362. During review it was suggested to remove this CMake option.
- Loading branch information
Showing
6 changed files
with
19 additions
and
28 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,12 +1,8 @@ | ||
|
||
set(LIBCXX_TEST_TOOLS_PATH ${CMAKE_CURRENT_BINARY_DIR} PARENT_SCOPE) | ||
|
||
# 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) | ||
if(NOT CMAKE_CXX_COMPILER_ID STREQUAL "Clang") | ||
message(STATUS "Clang-tidy tests are disabled due to non-clang based compiler.") | ||
return() | ||
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