mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
C++ atomic's fetch_sub returns the previous value, where we want to check the new value. This was causing massive memory leaks in SourceKit. For ThreadSafeRefCountedBase, just switch to the one in LLVM that's already correct. We should move the VPTR one to LLVM as well and then we can get rid of this header. rdar://problem/27358273
34 lines
728 B
CMake
34 lines
728 B
CMake
set(generated_tests UnicodeGraphemeBreakTest.cpp.gyb)
|
|
|
|
handle_gyb_sources(
|
|
gyb_dependency_targets
|
|
generated_tests
|
|
${SWIFT_HOST_VARIANT_ARCH})
|
|
|
|
add_swift_unittest(SwiftBasicTests
|
|
ADTTests.cpp
|
|
BlotMapVectorTest.cpp
|
|
ClusteredBitVectorTest.cpp
|
|
Demangle.cpp
|
|
EditorPlaceholderTest.cpp
|
|
EncodedSequenceTest.cpp
|
|
FileSystemTests.cpp
|
|
ImmutablePointerSetTests.cpp
|
|
PointerIntEnumTest.cpp
|
|
PrefixMapTest.cpp
|
|
SourceManager.cpp
|
|
StringExtrasTest.cpp
|
|
SuccessorMapTest.cpp
|
|
ThreadSafeRefCntPointerTests.cpp
|
|
TreeScopedHashTableTests.cpp
|
|
Unicode.cpp
|
|
${generated_tests}
|
|
)
|
|
|
|
add_dependencies(SwiftBasicTests "${gyb_dependency_targets}")
|
|
|
|
target_link_libraries(SwiftBasicTests
|
|
swiftBasic
|
|
clangBasic
|
|
)
|