add_subdirectory(clang-apply-replacements)
add_subdirectory(clang-modernize)
add_subdirectory(clang-query)
add_subdirectory(clang-tidy)
add_subdirectory(modularize)
add_subdirectory(module-map-checker)
add_subdirectory(pp-trace)
add_subdirectory(remove-cstr-calls)
add_subdirectory(tool-template)

# Add the common testsuite after all the tools.
add_subdirectory(test)
add_subdirectory(unittests)

if(CLANG_ENABLE_REWRITER)
add_subdirectory(clang-apply-replacements)
add_subdirectory(clang-modernize)
add_subdirectory(modularize)
add_subdirectory(module-map-checker)
add_subdirectory(remove-cstr-calls)
endif()
if(CLANG_ENABLE_STATIC_ANALYZER)
add_subdirectory(clang-tidy)
endif()

add_subdirectory(clang-query)
add_subdirectory(pp-trace)
add_subdirectory(tool-template)

# Add the common testsuite after all the tools.
# TODO: Support tests with more granularity when features are off?
if(CLANG_ENABLE_REWRITER AND CLANG_ENABLE_STATIC_ANALYZER)
add_subdirectory(test)
add_subdirectory(unittests)
endif()

Fix build when various clang feature flags are enabled/disabled
Fix build when various clang feature flags are enabled/disabled

git-svn-id: a34e9779ed74578ad5922b3306b3d80a0c825546@212994 91177308-0d34-0410-b5e6-96231b3b80d8
