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)
18 set_target_properties(genconfusable PROPERTIES FOLDER "Clang Tools Extra/Sourcegenning")
20 add_clang_library(clangTidyMiscModule STATIC
21 ConstCorrectnessCheck.cpp
22 CoroutineHostileRAIICheck.cpp
23 DefinitionsInHeadersCheck.cpp
24 ConfusableIdentifierCheck.cpp
25 HeaderIncludeCycleCheck.cpp
26 IncludeCleanerCheck.cpp
28 MisleadingBidirectional.cpp
29 MisleadingIdentifier.cpp
30 MisplacedConstCheck.cpp
31 NewDeleteOverloadsCheck.cpp
33 NonCopyableObjects.cpp
34 NonPrivateMemberVariablesInClassesCheck.cpp
35 RedundantExpressionCheck.cpp
37 ThrowByValueCatchByReferenceCheck.cpp
38 UnconventionalAssignOperatorCheck.cpp
39 UniqueptrResetReleaseCheck.cpp
40 UnusedAliasDeclsCheck.cpp
41 UnusedParametersCheck.cpp
42 UnusedUsingDeclsCheck.cpp
43 UseAnonymousNamespaceCheck.cpp
44 UseInternalLinkageCheck.cpp
56 clang_target_link_libraries(clangTidyMiscModule
66 clangToolingInclusions
67 clangToolingInclusionsStdlib
69 target_link_libraries(clangTidyMiscModule