[DebugInfo] Limit the number of values that may be referenced by a dbg.value
[llvm-project.git] / clang / unittests / CMakeLists.txt
blob51fe5de9ce644838cc0c6beb2799df1250cb209c
1 add_custom_target(ClangUnitTests)
2 set_target_properties(ClangUnitTests PROPERTIES FOLDER "Clang tests")
4 if(CLANG_BUILT_STANDALONE)
5   # LLVMTestingSupport library is needed for some of the unittests.
6   if (EXISTS ${LLVM_MAIN_SRC_DIR}/lib/Testing/Support
7       AND NOT TARGET LLVMTestingSupport)
8     add_subdirectory(${LLVM_MAIN_SRC_DIR}/lib/Testing/Support
9       lib/Testing/Support)
10   endif()
11 endif()
13 # add_clang_unittest(test_dirname file1.cpp file2.cpp)
15 # Will compile the list of files together and link against the clang
16 # Produces a binary named 'basename(test_dirname)'.
17 function(add_clang_unittest test_dirname)
18   add_unittest(ClangUnitTests ${test_dirname} ${ARGN})
19 endfunction()
21 add_subdirectory(Basic)
22 add_subdirectory(Lex)
23 add_subdirectory(Driver)
24 if(CLANG_ENABLE_STATIC_ANALYZER)
25   add_subdirectory(Analysis)
26   add_subdirectory(StaticAnalyzer)
27 endif()
28 add_subdirectory(ASTMatchers)
29 add_subdirectory(AST)
30 add_subdirectory(CrossTU)
31 add_subdirectory(Tooling)
32 add_subdirectory(Introspection)
33 add_subdirectory(Format)
34 add_subdirectory(Frontend)
35 add_subdirectory(Rewrite)
36 add_subdirectory(Sema)
37 add_subdirectory(CodeGen)
38 add_subdirectory(Interpreter)
39 # FIXME: libclang unit tests are disabled on Windows due
40 # to failures, mostly in libclang.VirtualFileOverlay_*.
41 if(NOT WIN32 AND CLANG_TOOL_LIBCLANG_BUILD) 
42   add_subdirectory(libclang)
43 endif()
44 add_subdirectory(DirectoryWatcher)
45 add_subdirectory(Rename)
46 add_subdirectory(Index)
47 add_subdirectory(Serialization)