[ELF] Make SyntheticSection parameter order match InputSection
[llvm-project.git] / clang-tools-extra / unittests / clang-tidy / CMakeLists.txt
blob3304924d39757540bed3eef4daa5843d11522a05
1 set(LLVM_LINK_COMPONENTS
2   FrontendOpenMP
3   Support
4   )
6 if(CLANG_BUILT_STANDALONE)
7   # LLVMTestingSupport library is needed for clang-tidy tests.
8   if (EXISTS ${LLVM_MAIN_SRC_DIR}/lib/Testing/Support
9       AND NOT TARGET LLVMTestingSupport)
10     add_subdirectory(${LLVM_MAIN_SRC_DIR}/lib/Testing/Support
11       lib/Testing/Support)
12   endif()
13 endif()
15 get_filename_component(CLANG_LINT_SOURCE_DIR
16   ${CMAKE_CURRENT_SOURCE_DIR}/../../clang-tidy REALPATH)
17 include_directories(${CLANG_LINT_SOURCE_DIR})
18 include_directories(BEFORE "${CMAKE_CURRENT_SOURCE_DIR}/../../include-cleaner/include")
20 add_extra_unittest(ClangTidyTests
21   AddConstTest.cpp
22   ClangTidyDiagnosticConsumerTest.cpp
23   ClangTidyOptionsTest.cpp
24   DeclRefExprUtilsTest.cpp
25   IncludeCleanerTest.cpp
26   IncludeInserterTest.cpp
27   GlobListTest.cpp
28   GoogleModuleTest.cpp
29   LLVMModuleTest.cpp
30   ModernizeModuleTest.cpp
31   NamespaceAliaserTest.cpp
32   ObjCModuleTest.cpp
33   OptionsProviderTest.cpp
34   OverlappingReplacementsTest.cpp
35   UsingInserterTest.cpp
36   ReadabilityModuleTest.cpp
37   TransformerClangTidyCheckTest.cpp
38   )
40 clang_target_link_libraries(ClangTidyTests
41   PRIVATE
42   clangAST
43   clangASTMatchers
44   clangBasic
45   clangFrontend
46   clangLex
47   clangSerialization
48   clangTooling
49   clangToolingCore
50   clangTransformer
51   clangIncludeCleaner
52   )
53 target_link_libraries(ClangTidyTests
54   PRIVATE
55   clangTidy
56   clangTidyAndroidModule
57   clangTidyGoogleModule
58   clangTidyMiscModule
59   clangTidyLLVMModule
60   clangTidyModernizeModule
61   clangTidyObjCModule
62   clangTidyReadabilityModule
63   clangTidyUtils
64   LLVMTestingAnnotations
65   LLVMTestingSupport
66   )