Rename it to clang-tidy-confusable-chars-gen, to make its role
clearer in a wider context.
In cross builds, the caller might want to provide this tool
externally (to avoid needing to rebuild it in the cross build).
In such a case, having the tool properly namespaced makes its role
clearer.
This matches how the clang-pseudo-gen tool was renamed in
a43fef05d4fae32f02365c7b8fef2aa631d23628 / D126725.
Differential Revision: https://reviews.llvm.org/D129798
)
if(LLVM_USE_HOST_TOOLS)
- build_native_tool(make-confusable-table make_confusable_table)
+ build_native_tool(clang-tidy-confusable-chars-gen make_confusable_table)
set(make_confusable_table_target "${make_confusable_table}")
else()
- set(make_confusable_table $<TARGET_FILE:make-confusable-table>)
- set(make_confusable_table_target make-confusable-table)
+ set(make_confusable_table $<TARGET_FILE:clang-tidy-confusable-chars-gen>)
+ set(make_confusable_table_target clang-tidy-confusable-chars-gen)
endif()
add_subdirectory(ConfusableTable)
set(LLVM_LINK_COMPONENTS Support)
list(REMOVE_ITEM LLVM_COMMON_DEPENDS clang-tablegen-targets)
-add_llvm_executable(make-confusable-table
+add_llvm_executable(clang-tidy-confusable-chars-gen
BuildConfusableTable.cpp
)
-executable("make-confusable-table") {
+executable("clang-tidy-confusable-chars-gen") {
deps = [ "//llvm/lib/Support" ]
sources = [ "BuildConfusableTable.cpp" ]
}