[AMDGPU][AsmParser][NFC] Translate parsed MIMG instructions to MCInsts automatically.
[llvm-project.git] / clang-tools-extra / clang-tidy / misc / CMakeLists.txt
blob348f3fa6402ec299960e400c519795446d038b1c
1 set(LLVM_LINK_COMPONENTS
2   FrontendOpenMP
3   Support
4   )
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")
12 add_custom_command(
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
25   MiscTidyModule.cpp
26   MisleadingBidirectional.cpp
27   MisleadingIdentifier.cpp
28   MisplacedConstCheck.cpp
29   NewDeleteOverloadsCheck.cpp
30   NoRecursionCheck.cpp
31   NonCopyableObjects.cpp
32   NonPrivateMemberVariablesInClassesCheck.cpp
33   RedundantExpressionCheck.cpp
34   StaticAssertCheck.cpp
35   ThrowByValueCatchByReferenceCheck.cpp
36   UnconventionalAssignOperatorCheck.cpp
37   UniqueptrResetReleaseCheck.cpp
38   UnusedAliasDeclsCheck.cpp
39   UnusedParametersCheck.cpp
40   UnusedUsingDeclsCheck.cpp
41   UseAnonymousNamespaceCheck.cpp
43   LINK_LIBS
44   clangAnalysis
45   clangTidy
46   clangTidyUtils
48   DEPENDS
49   omp_gen
50   genconfusable
51   )
53 clang_target_link_libraries(clangTidyMiscModule
54   PRIVATE
55   clangAnalysis
56   clangAST
57   clangASTMatchers
58   clangBasic
59   clangFormat
60   clangLex
61   clangSerialization
62   clangTooling
63   clangToolingInclusions
64   clangToolingInclusionsStdlib
65   )
66 target_link_libraries(clangTidyMiscModule
67   PRIVATE
68   clangIncludeCleaner
69   )