[clang-tools-extra] 9ad0ace - [clang-tidy] Rename a local cmake variables to match the new tool name. NFC.
Martin Storsjö via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 18 04:28:37 PDT 2022
Author: Martin Storsjö
Date: 2022-08-18T14:27:45+03:00
New Revision: 9ad0ace2ba52b2194090a0ec4dd980d604ea74b0
URL: https://github.com/llvm/llvm-project/commit/9ad0ace2ba52b2194090a0ec4dd980d604ea74b0
DIFF: https://github.com/llvm/llvm-project/commit/9ad0ace2ba52b2194090a0ec4dd980d604ea74b0.diff
LOG: [clang-tidy] Rename a local cmake variables to match the new tool name. NFC.
This shouldn't have any externally visible effect.
This matches the new name from 18b4a8bcf3553174f770f09528c9bd01c8cebfe7.
Differential Revision: https://reviews.llvm.org/D130701
Added:
Modified:
clang-tools-extra/clang-tidy/misc/CMakeLists.txt
Removed:
################################################################################
diff --git a/clang-tools-extra/clang-tidy/misc/CMakeLists.txt b/clang-tools-extra/clang-tidy/misc/CMakeLists.txt
index de76b4b00c360..cb97858ab7005 100644
--- a/clang-tools-extra/clang-tidy/misc/CMakeLists.txt
+++ b/clang-tools-extra/clang-tidy/misc/CMakeLists.txt
@@ -7,14 +7,14 @@ set(CLANG_TIDY_CONFUSABLE_CHARS_GEN "clang-tidy-confusable-chars-gen" CACHE
STRING "Host clang-tidy-confusable-chars-gen executable. Saves building if cross-compiling.")
if(NOT CLANG_TIDY_CONFUSABLE_CHARS_GEN STREQUAL "clang-tidy-confusable-chars-gen")
- set(make_confusable_table ${CLANG_TIDY_CONFUSABLE_CHARS_GEN})
- set(make_confusable_table_target ${CLANG_TIDY_CONFUSABLE_CHARS_GEN})
+ set(clang_tidy_confusable_chars_gen ${CLANG_TIDY_CONFUSABLE_CHARS_GEN})
+ set(clang_tidy_confusable_chars_gen_target ${CLANG_TIDY_CONFUSABLE_CHARS_GEN})
elseif(LLVM_USE_HOST_TOOLS)
- build_native_tool(clang-tidy-confusable-chars-gen make_confusable_table)
- set(make_confusable_table_target "${make_confusable_table}")
+ build_native_tool(clang-tidy-confusable-chars-gen clang_tidy_confusable_chars_gen)
+ set(clang_tidy_confusable_chars_gen_target "${clang_tidy_confusable_chars_gen}")
else()
- set(make_confusable_table $<TARGET_FILE:clang-tidy-confusable-chars-gen>)
- set(make_confusable_table_target clang-tidy-confusable-chars-gen)
+ set(clang_tidy_confusable_chars_gen $<TARGET_FILE:clang-tidy-confusable-chars-gen>)
+ set(clang_tidy_confusable_chars_gen_target clang-tidy-confusable-chars-gen)
endif()
add_subdirectory(ConfusableTable)
@@ -22,8 +22,8 @@ add_subdirectory(ConfusableTable)
add_custom_command(
OUTPUT Confusables.inc
- COMMAND ${make_confusable_table} ${CMAKE_CURRENT_SOURCE_DIR}/ConfusableTable/confusables.txt ${CMAKE_CURRENT_BINARY_DIR}/Confusables.inc
- DEPENDS ${make_confusable_table_target} ConfusableTable/confusables.txt)
+ COMMAND ${clang_tidy_confusable_chars_gen} ${CMAKE_CURRENT_SOURCE_DIR}/ConfusableTable/confusables.txt ${CMAKE_CURRENT_BINARY_DIR}/Confusables.inc
+ DEPENDS ${clang_tidy_confusable_chars_gen_target} ConfusableTable/confusables.txt)
add_custom_target(genconfusable DEPENDS Confusables.inc)
More information about the cfe-commits
mailing list