add_subdirectory(Lex)
add_subdirectory(Parse)
add_subdirectory(AST)
-if(CLANG_ENABLE_REWRITER)
- add_subdirectory(ASTMatchers)
-endif()
+add_subdirectory(ASTMatchers)
add_subdirectory(Sema)
add_subdirectory(CodeGen)
add_subdirectory(Analysis)
list(APPEND CLANG_TEST_DEPS
clang clang-headers
c-index-test diagtool
- clang-check clang-format
clang-tblgen
)
+if (CLANG_ENABLE_REWRITER)
+ list(APPEND CLANG_TEST_DEPS
+ clang-check
+ clang-format
+ )
+endif ()
+
if (CLANG_ENABLE_ARCMT)
list(APPEND CLANG_TEST_DEPS
arcmt-test
list(APPEND CLANG_TEST_DEPS
clang-interpreter
PrintFunctionNames
+ )
+endif ()
+
+if (ENABLE_CLANG_STATIC_ANALYZER AND ENABLE_CLANG_EXAMPLES)
+ list(APPEND CLANG_TEST_DEPS
SampleAnalyzerPlugin
)
endif ()