1 set(LLVM_LINK_COMPONENTS
6 setup_host_tool(clang-tidy-confusable-chars-gen CLANG_TIDY_CONFUSABLE_CHARS_GEN clang_tidy_confusable_chars_gen clang_tidy_confusable_chars_gen_target)
8 add_subdirectory(ConfusableTable)
10 include_directories(BEFORE "${CMAKE_CURRENT_SOURCE_DIR}/../../include-cleaner/include")
13 OUTPUT Confusables.inc
14 COMMAND ${clang_tidy_confusable_chars_gen} ${CMAKE_CURRENT_SOURCE_DIR}/ConfusableTable/confusables.txt ${CMAKE_CURRENT_BINARY_DIR}/Confusables.inc
15 DEPENDS ${clang_tidy_confusable_chars_gen_target} ConfusableTable/confusables.txt)
17 add_custom_target(genconfusable DEPENDS Confusables.inc)
19 add_clang_library(clangTidyMiscModule
20 ConstCorrectnessCheck.cpp
21 DefinitionsInHeadersCheck.cpp
22 ConfusableIdentifierCheck.cpp
23 HeaderIncludeCycleCheck.cpp
24 IncludeCleanerCheck.cpp
26 MisleadingBidirectional.cpp
27 MisleadingIdentifier.cpp
28 MisplacedConstCheck.cpp
29 NewDeleteOverloadsCheck.cpp
31 NonCopyableObjects.cpp
32 NonPrivateMemberVariablesInClassesCheck.cpp
33 RedundantExpressionCheck.cpp
35 ThrowByValueCatchByReferenceCheck.cpp
36 UnconventionalAssignOperatorCheck.cpp
37 UniqueptrResetReleaseCheck.cpp
38 UnusedAliasDeclsCheck.cpp
39 UnusedParametersCheck.cpp
40 UnusedUsingDeclsCheck.cpp
41 UseAnonymousNamespaceCheck.cpp
53 clang_target_link_libraries(clangTidyMiscModule
63 clangToolingInclusions
64 clangToolingInclusionsStdlib
66 target_link_libraries(clangTidyMiscModule